new cron job for backing up a git account that serves the git revision subsystem...
authorChris Koeritz <fred@gruntose.com>
Wed, 6 Jul 2016 13:59:05 +0000 (09:59 -0400)
committerChris Koeritz <fred@gruntose.com>
Wed, 6 Jul 2016 13:59:05 +0000 (09:59 -0400)
infobase/configuration/cron/git_account_backup.crontab [new file with mode: 0644]

diff --git a/infobase/configuration/cron/git_account_backup.crontab b/infobase/configuration/cron/git_account_backup.crontab
new file mode 100644 (file)
index 0000000..77036ad
--- /dev/null
@@ -0,0 +1,10 @@
+
+SHELL=/bin/bash
+
+# m h dom mon dow command
+
+USER=fred
+
+34 20 * * 5 tar -czf /z/stuffing/archives/git_archive_$(date +"\%Y_\%m_\%d_\%H\%M_\%S" | tr -d '/\n/').tar.gz /home/git >/home/git/archiving_log.txt 
+
+# archives the whole ~git folder with all account databases into a compressed tar file.