Timezone capability option for logging, directory naming, etc.. #168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I recently started using ghettoVCB, my first modification to the backup script was the following #167 . But I quickly got confused with the naming of the backups and its use of UTC for the date/time format in the script, especially if I was doing a few consecutive backups in one day. My remedy was to add the option: TIMEZONE to the configuration file options.
For its use: let’s say you live in Ottawa Canada then you could configure the TIMEZONE as such:
TIMEZONE=EST+5
Voila that simple. One last item, if you wish to have similar approach to your log option: ‘-l’ File to output logging. Here is one example that could be used:
./ghettoVCB.sh -l /vmfs/volume/local-storage/$(TZ=EST+5 date +%F_%H-%M-%S)-$$.log