Skip to content

Timezone capability option for logging, directory naming, etc..#168

Open
cognoquest wants to merge 1 commit intolamw:masterfrom
cognoquest:timezone
Open

Timezone capability option for logging, directory naming, etc..#168
cognoquest wants to merge 1 commit intolamw:masterfrom
cognoquest:timezone

Conversation

@cognoquest
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant