Update rclone.sh
This commit is contained in:
@@ -33,7 +33,7 @@ function gzipVMbackups {
|
||||
# create the tar and pipe into pigz for multi-threaded gzip
|
||||
tar cf - "${base}" | pigz > "${dir%/}.gz"
|
||||
# if the tar/gzip was successful, delete the backup directory
|
||||
if [[ $? -eq 0 ]] && [[ -f "${dir%/}.gz" ]]; then
|
||||
if [ $? -eq 0 ] && [ -f "${dir%/}.gz" ]; then
|
||||
rm -rf "${dir}"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user