]> git.wh0rd.org - dump.git/blame - examples/cron_dump_to_disk/README
More improvements from Aaron S. Hawley <aaron.s.hawley@gmail.com>.
[dump.git] / examples / cron_dump_to_disk / README
CommitLineData
1733496b
SP
1Here is how to use these backup scripts:
2
31. Create a separate backup partition big enough to hold all the filesystems you want to backup + any changes. Preferably, get a big inexpensive ide drive, and dedicate it as a backup drive.
4
52. Create the mount point for the partition as /backup (otherwise, modify the config parameters at the top of the scripts).
6
73. Mount the partition read-write, cd into /backup, and extract the backupskel.tar.gz there. This will create the directory structure needed by the scripts.
8
94. Set the partition to be mounted as read-only in your /etc/fstab. This will protect your precious backup from software crashes.
10
115. Copy the backup scripts "backup" and "backup_rotate" to a suitable directory in cron's path; "/usr/bin" is a good location. alternatively, you can place them anywhere, and modify the crontab entries to match, or run it manually.
12
136. Modify your /etc/crontab file to add these entries, and be sure to modify the times to suit your preferences, and the performance of your machine:
14
15----------%<---------------------------------%<--------------------------------
16
17# Perform Nightly Backup (nightly incremental + weekly full + monthly full)
1802 06 * * 1-6 root backup_rotate ; nice -1 backup inc
1902 06 * * sun root backup_rotate ; nice -1 backup full
2007 00 01 * * root backup_rotate monthly ; backup full nodumpdate
21
22----------%<---------------------------------%<--------------------------------
23
24Any questions? Send me and email to getnito@yahoo.com.
25
26And that is it. Have fun!
27
28--
29nito
30
31getnito@yahoo.com