delete snapshot on failure path
This commit is contained in:
@@ -46,6 +46,7 @@ done
|
||||
|
||||
if [[ ${try} -eq 5 ]]; then
|
||||
echo "Backup failed uploading backup tarball"
|
||||
btrfs subvolume delete "${app_data_snapshot}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user