delete snapshot on failure path

This commit is contained in:
Girish Ramakrishnan
2016-04-02 17:57:15 -07:00
parent 357f6f0552
commit a21a913f34

View File

@@ -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