This commit is contained in:
Your Name 2023-01-20 19:19:49 -07:00
parent be6d80969c
commit 586ee6afa0

View File

@ -66,7 +66,7 @@ auto_login(){
create-smb-snapshots(){
echo;echo "[Creating new snapshots.....]";echo
time tar cvpf $TARGET/$ROOT_NAME-$1.tgz --exclude=/volumes/* --exclude=/mnt/* --exclude=/var/tmp/* --exclude=/tmp/* --exclude=/raid/* --exclude=/root/* --exclude=/var/cache/apt/archives/* --exclude=/proc/* --exclude=/.snapshots/* --exclude=$TARGET/* --exclude=/var/lib/libvirt/* --exclude=/dev/* --exclude=/sys/* --exclude=/home/* --exclude=/var/lib/postgresql --exclude=/var/lib/containers /
time tar cvpzf $TARGET/$1.tgz --exclude=/volumes/* --exclude=/mnt/* --exclude=/var/tmp/* --exclude=/tmp/* --exclude=/raid/* --exclude=/root/* --exclude=/var/cache/apt/archives/* --exclude=/proc/* --exclude=/.snapshots/* --exclude=$TARGET/* --exclude=/var/lib/libvirt/* --exclude=/dev/* --exclude=/sys/* --exclude=/home/* --exclude=/var/lib/postgresql --exclude=/var/lib/containers /
}
homeBackup() {
@ -93,7 +93,7 @@ net-backup() {
net-restore() {
partitions
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 $2.tgz -C $TARGET/
if [ "$3" = "home" ]; then
rsync -av --progress --delete home/ $TARGET/home/