[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Questions with rsync



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/03/2009 05:02 AM, GMS S wrote:
> Will this command do the job for backup?
> 
> rsync -vpa / /home/user/backup
> 
> How would I exclude these files below:
> 
> /lost+found
> /media
> /mnt
> 
> and others which I do not need.
> 
> And what is the compression lever by rsync (using -a option)?
> 
> 
>       
> 
Here's my full-system rsync backup script. It goes to an external USB drive.

#! /bin/sh
cd /media/MyBookLX/sds-desk
rm -fr backup.9
mv backup.8 backup.9
mv backup.7 backup.8
mv backup.6 backup.7
mv backup.5 backup.6
mv backup.4 backup.5
mv backup.3 backup.4
mv backup.2 backup.3
mv backup.1 backup.2
cp -al backup backup.1

touch /last_backup_ts
rsync -va --exclude-from /usr/local/bin/do-backup-excludes --delete /
/media/MyBookLX/sds-desk/backup/

The exclude list is

/home/*/.gvfs/
/home/*/.google/
/home/*/.dbus/
/home/*/.fonts/
/proc
/tmp
/var/tmp
/media
/sys
/dev

- --

  Steve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkonEYIACgkQeERILVgMyvCQqQCfV/WADSIZrSdAgMeXxqjYsr6/
xuQAn23AzsdFxsMPEnnLHtEobCuxfuLx
=WJx/
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]