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