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

Re: backup script modification help



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.

Doug.



Reply to: