I use fsarchiver for creating backups before any major changes I do to my CentOS 7 box. The advantage of fsarchiver is, its file based. So it can be restored on any partition which has a different size and it can be restored on a different file-system (ex: from xfs to ext4 etc).
I have this partition configuration:
Code:
# df -h /boot/efi / /home
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 500M 34M 466M 7% /boot/efi
/dev/mapper/vol-svr 20G 4.5G 16G 23% /
/dev/mapper/vol-hom 150G 689M 150G 1% /home
These are the commands I use to backup,view and restore partitions.
Code:
fsarchiver savefs -A -v -j4 -o cent-2016120601.fsa /dev/sda1 /dev/vol/svr /dev/vol/hom
fsarchiver archinfo cent-2016120601.fsa
fsarchiver restfs -v cent-2016120601.fsa id=0,dest=/dev/sda1 id=1,dest=/dev/vol/svr id=2,dest=/dev/vol/hom
You can get latest fsarchiver compiled rpm for CentOS 7 from
here (Scroll to bottom of page).
If there are any other good methods, I too am interested to know.
