Re: backup script modification help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Douglas Allan Tutty wrote:
> On Mon, Jun 04, 2007 at 07:15:49AM -0400, Haines Brown wrote:
>> I use cron to do a periodic full backup to an external USB drive that
>> I've named "mirror". The script used is:
>>
>> find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv
>> /media/mirror/"$1" 2>&1 | cat -vt
>>
>> Since installing Etch, this script has not worked well because it does
>> not like to backup the /sys directory. Actually, backing up /sys
>> dangerous). So I'd like to modify the script to block cpio from doing
>> /sys as it avoids /proc, but not sure how. Help would be appreciated.
>
> That's why I use tar. I have an include file and an exclude file and
> changing things like this is very easy.
That's why I use rsync. I have an include file and an exclude file and
changing things like this is very easy. Besides it is faster and more
flexible than tar.
YNMV,
Johannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGZBePC1NzPRl9qEURAnS0AJ0Zn38KqQq1bENJed7T2hBjxRKbngCfY9w3
l8i2cpAf1XZkhM1o3VcBWCw=
=fnka
-----END PGP SIGNATURE-----
Reply to: