Skip to content

Commit

Permalink
Run backups as root so we can back up /etc
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Mar 6, 2012
1 parent b923934 commit 19be156
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/vg-backup
Expand Up @@ -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";
}
}
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit 19be156

Please sign in to comment.