On Tue, Apr 18, 2006 at 07:41:59PM +0200, Andreas Rippl wrote: > > #!/bin/bash > > /bin/rm -rf /mnt/sda1/backup/daily.6/ > mv /mnt/sda1/backup/daily.5/ /mnt/sda1/backup/daily.6/ > mv /mnt/sda1/backup/daily.4/ /mnt/sda1/backup/daily.5/ > mv /mnt/sda1/backup/daily.3/ /mnt/sda1/backup/daily.4/ > mv /mnt/sda1/backup/daily.2/ /mnt/sda1/backup/daily.3/ > mv /mnt/sda1/backup/daily.1/ /mnt/sda1/backup/daily.2/ > /bin/cp -al /mnt/sda1/backup/daily.0/ /mnt/sda1/backup/daily.1/ > /usr/bin/rsync -avx --delete /home/ /mnt/sda1/backup/daily.0/home/ > /usr/bin/rsync -avx --delete --exclude=/swap / > /mnt/sda1/backup/daily.0/root/ > touch /mnt/sda1/backup/daily.0/ > Andreas, why the touch above? just curious. A > The above backs up my /home and / partitions to a USB disk and rotates > the last seven backups. Another big advantage is the reduced space > consumption as only _changed_ files get backed up, unchanged files are > just hardlinks. Would something like this be useful to you? > > Hth > -- > Andreas Rippl -- GPG messages preferred > Key-ID: 0x81073379
Attachment:
signature.asc
Description: Digital signature