fix
This commit is contained in:
parent
be6d80969c
commit
586ee6afa0
@ -66,7 +66,7 @@ auto_login(){
|
|||||||
|
|
||||||
create-smb-snapshots(){
|
create-smb-snapshots(){
|
||||||
echo;echo "[Creating new snapshots.....]";echo
|
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() {
|
homeBackup() {
|
||||||
@ -93,7 +93,7 @@ net-backup() {
|
|||||||
net-restore() {
|
net-restore() {
|
||||||
partitions
|
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
|
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
|
if [ "$3" = "home" ]; then
|
||||||
rsync -av --progress --delete home/ $TARGET/home/
|
rsync -av --progress --delete home/ $TARGET/home/
|
||||||
|
Loading…
Reference in New Issue
Block a user