Commit 08b5978
committed
Checking that the local backup hasn't already been deleted by the create_remote step in watch
If backups_to_keep_local=-1 then RemoveOldBackupsLocal will remove any local backups
RemoveOldBackupsLocal is called on every call to Upload (so whenever CreateToRemote is called, so is RemoveOldBackupsLocal)
This causes an issue when --watch-delete-source=false since Watch will also try to delete the new local backup after the CreateToRemote call finishes
By adding a check that BackupsToKeepLocal is greater than zero we make sure that we do not get duplicate deletes which error out and cause Watch to abort erroneously1 parent b1b23ac commit 08b5978
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
0 commit comments