Skip to content

Instantly share code, notes, and snippets.

@d-oderbolz
Created June 9, 2018 08:56
Show Gist options
  • Save d-oderbolz/74790f4d908dbabb652e0013540f1842 to your computer and use it in GitHub Desktop.
Save d-oderbolz/74790f4d908dbabb652e0013540f1842 to your computer and use it in GitHub Desktop.
0 22 * * * root flock -n /var/services/homes/admin/lock/backup.lock /var/services/homes/admin/bin/backup.sh
@d-oderbolz
Copy link
Author

This is my crontab entry om my synology NAS for the backup script

@d-oderbolz
Copy link
Author

Note how I use flock to make sure just a single instance is running. Also note that the lock file is not located in /tmp

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