Skip to content

Instantly share code, notes, and snippets.

@dpvpro
Last active January 9, 2019 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpvpro/968e9e1612c0728f22d3f2b075b28464 to your computer and use it in GitHub Desktop.
Save dpvpro/968e9e1612c0728f22d3f2b075b28464 to your computer and use it in GitHub Desktop.
crontab_exemple_with_variable
TIME="date +%Y%m%d_%H%M"
2 6 * * * rsync -av --delete ~/Code /home/backup/ > /home/backup/backup_log_$($TIME) 2>&1
9 9 * * 1-6 cd /home/dp/Code/mashtab/veil-repo/devops/veil-vagrantfile; vagrant box update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment