Skip to content

Instantly share code, notes, and snippets.

@oliworx
Created March 25, 2016 11:57
Show Gist options
  • Save oliworx/9c69b26bf84fbe93d50f to your computer and use it in GitHub Desktop.
Save oliworx/9c69b26bf84fbe93d50f to your computer and use it in GitHub Desktop.
very fast full backup of XFS partition with xfdump and lzo compression
sudo xfsdump -L KW12 -M FullBackup -J - / |lzop > /media/oli/465GB/Backup/Oli/Vostro/Linux-xfsdump-2016-03-26.lzo
## Explanation:
# sudo xfsdump
# -> start the xfsdump programm with root privileges
# -L KW12
# -> gives the Backup the label KW12
# -M FullBackup
# -> gives the backup medium (the new backup file) the name FullBackup
# -J
# -> tells it not to record it in the local dump inventory
# -
# -> write to standard out
# /
# -> the xfs filesystem to backup
# |lzop
# -> pipe the dump to the lzop compression programm
# > /media/oli/465GB/Backup/Oli/Vostro/Linux-xfsdump-2016-03-26.lzo
# -> write the backup file to an external hard drive
@jiamliang
Copy link

How to restore Linux-xfsdump-2016-03-26.lzo ?
thanks!

@jiamliang
Copy link

Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment