Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Others => Miscellaneous => Topic started by: ivo10 on May 06, 2008, 09:42:42 PM

Title: restoring all data from backup excluding an FS
Post by: ivo10 on May 06, 2008, 09:42:42 PM
i want to exclude /sys directory...would this command work? coz its seems that when the untarring is already in /sys, it is hanging. this is the command i used.

tar xvzPf /dev/st0 --exclude /sys
Title: Re: restoring all data from backup excluding an FS
Post by: gauravbajaj on May 07, 2008, 08:40:10 AM
I m not sure wheather give exclude options with restoration or not

On thing more if you don't want to restore /sys , then its better to not to backed up at time of creation of tar file
tar -cvzf file.tar.gz / --exclude /sys