• Home
  • Linux
  • Backing up and restoring a complete mount point/partition

Backing up and restoring a complete mount point/partition

sudo sh
tar cvpzf backup.tgz –exclude=/proc –exclude=/lost+found –exclude=/backup.tgz –exclude=/mnt –exclude=/sys /

Restoring:
tar xvpzf backup.tgz -C /

x=eXtract
c=Compress
v=Verbose
p=Preserve Permissions
z=gZip
f=archive File