Permalink
Browse files

Add example crontab file

  • Loading branch information...
1 parent 07088da commit c94ce5a2712a3167a3c19a0da3e981ad65640979 @Gregable committed Mar 6, 2011
Showing with 7 additions and 7 deletions.
  1. +1 −7 backup.py
  2. +6 −0 example_crontab.txt
View
@@ -3,13 +3,7 @@
Mounts an encfs directory and rsyncs a series of files to that path. Also
makes periodic snapshots of the encfs directory for reverting changes.
Configurable based on file located at $HOME/.backuprc. Triggered by cron
-commands, for example:
- * * * * * date > /home/greg/.heartbeat
- */15 * * * * python /home/greg/bin/backup.py snapshot
- 0 * * * * python /home/greg/bin/backup.py hourly
- 0 0 * * * python /home/greg/bin/backup.py daily
- 0 0 * * 0 python /home/greg/bin/backup.py weekly
- 0 0 1 * * python /home/greg/bin/backup.py monthly
+commands, see example_crontab.txt for an example:
"""
import logging
import os
View
@@ -0,0 +1,6 @@
+* * * * * date > /home/greg/.heartbeat
+*/15 * * * * python /home/greg/bin/backup.py snapshot
+0 * * * * python /home/greg/bin/backup.py hourly
+0 0 * * * python /home/greg/bin/backup.py daily
+0 0 * * 0 python /home/greg/bin/backup.py weekly
+0 0 1 * * python /home/greg/bin/backup.py monthly

0 comments on commit c94ce5a

Please sign in to comment.