1 |
On Sunday 04 November 2007, Roger Mason wrote: |
2 |
> Did you have to do anything special to make it work from cron? |
3 |
|
4 |
No, but then the crontab entry is simply: |
5 |
> 47 4 * * * /root/backup.sh |
6 |
The backup.sh is essentially: |
7 |
|
8 |
rdiff-backup \ |
9 |
--print-statistics \ |
10 |
--exclude /mnt \ |
11 |
--exclude /dev \ |
12 |
--exclude /proc \ |
13 |
--exclude /tmp \ |
14 |
--exclude /var/tmp \ |
15 |
--exclude /var/cache/squid/ \ |
16 |
--exclude /var/lib/mysql/ \ |
17 |
--exclude /var/lib/postgresql/data/base/ \ |
18 |
--exclude /var/lib/postgresql/data/global/ \ |
19 |
--exclude /var/lib/postgresql/data/pg_clog/ \ |
20 |
--exclude /var/lib/postgresql/data/pg_subtrans/ \ |
21 |
--exclude /var/lib/postgresql/data/pg_tblspc/ \ |
22 |
--exclude /var/lib/postgresql/data/pg_xlog/ \ |
23 |
--exclude /sys \ |
24 |
--exclude /usr/portage \ |
25 |
--exclude /usr/portage/distfiles \ |
26 |
--exclude /var/run \ |
27 |
/ backups@backuphost::/home/backups/hostname/ |
28 |
-- |
29 |
gentoo-user@g.o mailing list |