March 28, 2024, 02:06:33 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: restoring all data from backup excluding an FS  (Read 3451 times)

Offline ivo10

  • New Member
  • Posts: 1
restoring all data from backup excluding an FS
« 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

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: restoring all data from backup excluding an FS
« Reply #1 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