This commit is contained in:
Your Name 2023-02-21 08:26:52 -07:00
parent 6b53bac1d4
commit 2193bcde99

View File

@ -140,13 +140,13 @@ os-restore() {
BACKUP_DISK_IMAGES="/var/backups"
fi
if [ "${3}" ]; then
BACKUP_DISK_IMAGES="${3}"
if [ "${4}" ]; then
BACKUP_DISK_IMAGES="${4}"
fi
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
echo "[Restoring OS tarfile from $BACKUP_DISK_IMAGES/$1.tgz]"
echo "[Restoring OS tarfile from $BACKUP_DISK_IMAGES/$2.tgz]"
echo
tar xfp $BACKUP_DISK_IMAGES/$2.tgz -C $TARGET/