Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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