This commit is contained in:
Your Name 2022-12-26 10:59:45 -07:00
parent 3bc88b0aa2
commit c248bce558

View File

@ -70,7 +70,7 @@ create-smb-snapshots(){
homeBackup() { homeBackup() {
echo;echo "[Copying USER data....]";echo echo;echo "[Copying USER data....]";echo
rsync --progress -avz --delete /home/ --exclude=.cache --exclude=.local/share/containers $HOME_BACKUP rsync --progress -avz --delete /home/ --exclude=.cache --exclude=.local/share/containers $HOME_BACKUP/
} }
net-backup() { net-backup() {
@ -95,8 +95,8 @@ net-restore() {
rm -rf $TARGET/usr $TARGET/sbin $TARGET/lib32 $TARGET/libx32 $TARGET/lib $TARGET/vmlinuz* $TARGET/initrd* $TARGET/bin $TARGET/var $TARGET/root $TARGET/opt $TARGET/etc $TARGET/run rm -rf $TARGET/usr $TARGET/sbin $TARGET/lib32 $TARGET/libx32 $TARGET/lib $TARGET/vmlinuz* $TARGET/initrd* $TARGET/bin $TARGET/var $TARGET/root $TARGET/opt $TARGET/etc $TARGET/run
tar xfpv ../$ROOT_NAME-$2.tgz -C $TARGET/ tar xfpv ../$ROOT_NAME-$2.tgz -C $TARGET/
if [ "$2" = "home" ]; then if [ "$3" = "home" ]; then
rsync -av --progress --delete $HOME_BACKUP $TARGET/home/ rsync -av --progress --delete $HOME_BACKUP/ $TARGET/home/
fi fi
fstab fstab
@ -425,7 +425,7 @@ elif [ "$1" = "grub-snapshots" ]; then
elif [ "$1" = "btrfs-tweaks" ]; then elif [ "$1" = "btrfs-tweaks" ]; then
btrfs-tweaks btrfs-tweaks
elif [ "$1" = "restore" ]; then elif [ "$1" = "restore" ]; then
net-restore "$2" "$3" net-restore "$2" "$3" "$4"
elif [ "$1" = "remove-snapshot" ]; then elif [ "$1" = "remove-snapshot" ]; then
remove-snapshots remove-snapshots
elif [ "$1" = "help" ]; then elif [ "$1" = "help" ]; then