Permalink
Browse files

Run backups as root so we can back up /etc

  • Loading branch information...
1 parent b923934 commit 19be156e5f7356175e9971a0ea7a8477afc441c0 @autarch autarch committed Mar 6, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 bin/vg-backup
  2. +1 −1 system/etc/cron.d/vegguide
View
@@ -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";
}
}
@@ -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

0 comments on commit 19be156

Please sign in to comment.