diff --git a/gentoo.sh b/gentoo.sh index 67df496..8d49345 100644 --- a/gentoo.sh +++ b/gentoo.sh @@ -129,14 +129,14 @@ autoLogin() { osSnapshots() { echo mkdir $2 - echo "[Creating new OS snapshot to $2/$3.tgz]" + echo "[Creating new OS snapshot to $1/$2.tgz]" echo echo - NEW_TAR_EXCLUDES="$TAR_EXCLUDES --exclude=/minio --exclude=$TARGET/* --exclude=/var/lib/docker " + NEW_TAR_EXCLUDES="$TAR_EXCLUDES --exclude=/var/lib/gitea --exclude=/minio --exclude=/var/lib/akkoma --exclude=/var/lib/pleroma --exclude=$TARGET/* --exclude=/var/lib/docker " echo - rm -f $2/$3.tgz - time tar cpzvf $2/$3.tgz $NEW_TAR_EXCLUDES / - chown $USER:$USER $2/$3.tgz + rm -f $1/$2.tgz + time tar cpzvf $1/$2.tgz $NEW_TAR_EXCLUDES / + chown $USER:$USER $1/$2.tgz } homeBackup() { @@ -169,7 +169,7 @@ osBackup() { echo echo "Aborting Install, $TARGET/@$ROOT_MAPPER_NAME/usr/bin/bash not found!" echo - echo + echo exit 1 fi