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
You could try "find -xdev" which prevents find from entering other
mounted filesystems. This should at least prevent find from entering the
/media/mirror-directory, though you still have to grep it out since it
prints the directory-name.
Greetings,
Mike
--
Michael Hansen - http://www.pfna.de/
Monheim / Germany
Reply to: