fix
This commit is contained in:
parent
6b53bac1d4
commit
2193bcde99
@ -140,13 +140,13 @@ os-restore() {
|
|||||||
BACKUP_DISK_IMAGES="/var/backups"
|
BACKUP_DISK_IMAGES="/var/backups"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${3}" ]; then
|
if [ "${4}" ]; then
|
||||||
BACKUP_DISK_IMAGES="${3}"
|
BACKUP_DISK_IMAGES="${4}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
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
|
||||||
echo "[Restoring OS tarfile from $BACKUP_DISK_IMAGES/$1.tgz]"
|
echo "[Restoring OS tarfile from $BACKUP_DISK_IMAGES/$2.tgz]"
|
||||||
echo
|
echo
|
||||||
tar xfp $BACKUP_DISK_IMAGES/$2.tgz -C $TARGET/
|
tar xfp $BACKUP_DISK_IMAGES/$2.tgz -C $TARGET/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user