Liking cljdoc? Tell your friends :D

puppetlabs.puppetdb.cli.time-shift-export

Timestamp shift utility

This simple command-line tool updates all the timestamps inside a PuppetDB export. It does this by calculating the period between the newest timestamp inside the export and the provided date. Then, every timestamp is shifted with that period. It accepts three parameters:

  • [Mandatory] -i / --input Path to the .tgz pdb export, which will be shifted.
  • [Optional] -o / --output Path to the where the shifted export will be saved. If no path is given, the shifted export is sent as a stream to standard output. You may use it like this: lein time-shift-export -i export.tgz -o > shifted.tgz
  • [Optional]-t / --shift-to-time Timestamp to which all the export timestamp will be shifted. If it's not provided, the system's current timestamp will be used.

!!! All timestamps are converted to a Zero timezone format. e.g timestamps like: 2015-03-26T10:58:51+10:00 will become 2015-03-26T11:58:51Z !!!

Timestamp shift utility

This simple command-line tool updates all the timestamps inside a PuppetDB export.
It does this by calculating the period between the newest timestamp inside the export and the provided date.
Then, every timestamp is shifted with that period.
It accepts three parameters:
 - [Mandatory] -i / --input
   Path to the .tgz pdb export, which will be shifted.
 - [Optional] -o / --output
   Path to the where the shifted export will be saved.
   If no path is given, the shifted export is sent as a stream to standard output. You may use it like this:
   lein time-shift-export -i export.tgz -o > shifted.tgz
 - [Optional]-t / --shift-to-time
   Timestamp to which all the export timestamp will be shifted.
   If it's not provided, the system's current timestamp will be used.

 !!! All timestamps are converted to a Zero timezone format. e.g timestamps like: 2015-03-26T10:58:51+10:00
 will become 2015-03-26T11:58:51Z !!!
raw docstring

-mainclj

(-main & args)
source

check-command-versionsclj

(check-command-versions json-data)
source

command-type-versionsclj

source

compare-command-versionsclj

(compare-command-versions command-type actual-version)
source

counterclj

source

entry-producer-timestampclj

(entry-producer-timestamp json-data)
source

file-exists?clj

(file-exists? file_path)
source

get-newest-timestampclj

(get-newest-timestamp first-timestamp second-timestamp)
source

get-newest-timestamp-from-entryclj

(get-newest-timestamp-from-entry tar-reader tar-entry)
source

get-resources-timestampsclj

(get-resources-timestamps resources)
source

newest-timestamp-from-archiveclj

(newest-timestamp-from-archive archive-path)
source

newest-timestamp-from-reportclj

(newest-timestamp-from-report json-data)
source

next-command-indexclj

(next-command-index)
source

parse-time-shift-parameterclj

(parse-time-shift-parameter time-string)
source

(print-progress index)
source

rename-filenameclj

(rename-filename tar-entry format shifted-data)
source

time-shift-exportclj

(time-shift-export args)
source

time-shift-export-wrapperclj

(time-shift-export-wrapper args)
source

time-shift-input-archiveclj

(time-shift-input-archive args)
source

time-shift-logsclj

(time-shift-logs logs shift-period)
source

time-shift-producer-timestampclj

(time-shift-producer-timestamp json-data shift-period)
source

time-shift-report-timestampsclj

(time-shift-report-timestamps json-data shift-period)
source

time-shift-resourcesclj

(time-shift-resources resources shift-period)
source

time-shift-timestampclj

(time-shift-timestamp timestamp-string shift-period)
source

time-shift-timestamps-from-entryclj

(time-shift-timestamps-from-entry shift-period tar-reader tar-entry)
source

validate-optionsclj

(validate-options options)
source

write-archiveclj

(write-archive tar-writer tar-entry format data)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close