| Media | Price | Capacity | Rewritable |
|---|---|---|---|
| CD-R | 59¢/GB | Low (700MB/ea) | No |
| DVD-R | 21¢/GB | Med (4.7GB/ea) | No |
| Tape | 36¢/GB | Med-High (36GB-160GB) | Yes |
| Hard Drive(s) | 80¢/GB | High (200GB+) | Yes |
Note that dump simply won't work reliably at all even in 2.4.x: the buffer cache and the page cache (where all the actual data is) are not coherent. This is only going to get even worse in 2.5.x, when the directories are moved into the page cache as well.
So anybody who depends on "dump" getting backups right is already playing Russian roulette with their backups. It's not at all guaranteed to get the right results - you may end up having stale data in the buffer cache that ends up being "backed up".
Linus Torvalds
#!/bin/sh
BACKUPS=7
# Remount in R/W mode
mount /backup -o remount,rw
# Delete old backup
rm -rf /backup/backup.$(($BACKUPS-1))
# Increment backup ID
for i in $(seq $(($BACKUPS-2)) -1 0); do
mv /backup/backup.$i /backup/backup.$(($i+1))
done
# Make next backup
rsync -a --delete --link-dest=../backup.1 /home/ /backup/backup.0/
# Remount in R/O mode
mount /backup -o remount,ro