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

Re: backup script modification help



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.
> 
How about:
find / -print | egrep -v "^/media/mirror|^/proc|^/sys" | cpio -pdmuv \
/media/mirror/"$1" 2>&1 | cat -vt 



Reply to: