From 19be156e5f7356175e9971a0ea7a8477afc441c0 Mon Sep 17 00:00:00 2001 From: Dave Rolsky Date: Tue, 6 Mar 2012 08:36:25 -0700 Subject: [PATCH] Run backups as root so we can back up /etc --- bin/vg-backup | 3 ++- system/etc/cron.d/vegguide | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/vg-backup b/bin/vg-backup index 490696a..9a4aeb2 100755 --- a/bin/vg-backup +++ b/bin/vg-backup @@ -54,7 +54,8 @@ for my $host (@hosts) { @v, '-e', 'ssh -i /home/autarch/.ssh/id_rsa.backups', '-r', '--links', - $source, $host . ':/home/autarch/backup/vegguide.org/' + $source, + 'autarch@' . $host . ':/home/autarch/backup/vegguide.org/' ) and die "Cannot rsync $source to $host"; } } diff --git a/system/etc/cron.d/vegguide b/system/etc/cron.d/vegguide index b46518d..827e1cc 100644 --- a/system/etc/cron.d/vegguide +++ b/system/etc/cron.d/vegguide @@ -1,6 +1,6 @@ 30 10 * * * www-data /opt/perl5.14.2-no-threads/bin/perl /opt/perl5.14.2-no-threads/bin/vg-regen-data-feed-rss 15 12 * * 7 www-data /opt/perl5.14.2-no-threads/bin/perl /opt/perl5.14.2-no-threads/bin/vg-send-watch-list-emails -37 3 * * * autarch /opt/perl5.14.2-no-threads/bin/perl /opt/perl5.14.2-no-threads/bin/vg-backup +37 3 * * * root /opt/perl5.14.2-no-threads/bin/perl /opt/perl5.14.2-no-threads/bin/vg-backup 2 15 * * * autarch /opt/perl5.14.2-no-threads/bin/perl /opt/perl5.14.2-no-threads/bin/vg-delete-old-sessions # All of the VegXX sites are either down or no longer generating feeds