vbagaev
4/15/2017 - 6:19 PM

root_backup.sh

root_backup.sh

mkdir /tmp/root-for-backup && mount / /tmp/root-for-backup -o bind && tar cvpzf /tmp/my_root.tar.gz --exclude=/tmp/root-for-backup/tmp/my_root.tar.gz /tmp/root-for-backup/*

tar -xzpfv /tmp/my_root.tar.gz

umount /tmp/root-for-backup