fix
This commit is contained in:
parent
8bf84084d0
commit
d173af3c08
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user