On Tuesday 07 June 2011 17:31:59 Rick Phillips wrote:
> I removed the /sys folder from the script that I wrote and everything
> went fine.  I have not tried your script rewrite fully yet as we had a
> number of other disasters today and time was against me but I will try
> it as soon as I can.

Using "faubackup" (disk to disk), I use the following to exclude any non 
ext2/ext3 mounts:

ignorefs=`mount | grep -v ' type ext[23] ' | cut -d' ' -f 3 | sed -e s/.// -e 
's/^/--ignore=/'`

$ignorefs is then included in the arguments to faubackup.

The approach here is to figure out what file system types need to be backed up, 
and exclude everything else. That way you don't need to worry about new 
virtual file systems that get added into later revisions of the kernel. A few 
things to take into account if you decide to go down this route:

1. You might be using other file systems than ext2 and ext3;
2. For tar, --ignore= would be --exclude=;
3. While a quick test suggests the resulting exclusions will do the right 
thing with tar, testing that this is in fact so is your responsibility.


Regards, 
Troy Rollo 
Solicitor 
Parry Carroll 
Commercial Lawyers 
Direct: (02) 8257 3177 
Fax: (02) 9221 1375 
Switch: (02) 9221 3899 
E-mail: [email protected] 
Web: www.parrycarroll.com.au 

Liability limited by a scheme approved under Professional Standards 
Legislation 

This message and any attachments are confidential to Parry Carroll. If you 
have received it my mistake, please let us know by reply and then delete it 
from your system. You must not copy the message, alter it or disclose its 
contents to anyone. Thank you.


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to