rsync or replacement backup

John K Masters johnmasters at oxtedonline.net
Mon May 19 20:47:25 UTC 2008


On 13:36 Mon 19 May     , Mike Bird wrote:
> On Mon May 19 2008 12:58:01 Karl Larsen wrote:
> > karl at karl-desktop:~$ cat /root/bin/backup
> > # This file is designed to backup my Ubuntu to the USB Hard Drive using
> > rsync
> > # Karl Larsen, 26 Feb 08
> > rsync -avz /boot /media/disk/
> 
> Here's a one-liner.  You might want to adjust the exclusions
> to suit your needs.  Make sure the correct disk is mounted on
> /media/disk before starting.  [With rsync v3 you can add "-X" :-) ]
> 
> rsync -va -SHA --partial --delete --delete-excluded --exclude=/media --exclude=/proc --exclude=/sys --exclude=/tmp --exclude=/var/spool/squid --exclude=/var/tmp --exclude=/mnt --exclude='/home/*/.mozilla/firefox/*/Cache' / /media/disk/
> 
> --Mike Bird
> 
Or put the excludes in a file and use --exclude-from=FILE to make it a
short one-liner :)

Regards, John
-- 
I wish I was young enough to know everything.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080519/aeed3f3f/attachment.sig>


More information about the ubuntu-users mailing list