This commit is contained in:
Your Name 2023-04-04 23:15:11 -06:00
parent 8bf84084d0
commit d173af3c08

View File

@ -80,13 +80,14 @@ create-os-snapshots() {
echo "[Creating new OS snapshot to $BACKUP_DISK_IMAGES/$1.tgz]"
echo
echo
TAR_EXCLUDES="$TAR_EXCLUDES --exclude=$TARGET/*"
time tar cpzf $BACKUP_DISK_IMAGES/$1.tgz $TAR_EXCLUDES /
chown $USER:$USER $BACKUP_DISK_IMAGES/$1.tgz
else
echo "[Creating new OS snapshot to $2/$1.tgz]"
echo
echo
time tar cpzf $2/$1.tgz --exclude=/snapshots $TAR_EXCLUDES /
time tar cpzf $2/$1.tgz $TAR_EXCLUDES /
chown $USER:$USER $2/$1.tgz
fi
}