Skip to content

Commit

Permalink
feat(backups): execute cleanup on each related vm dir after a backup …
Browse files Browse the repository at this point in the history
…deletion
  • Loading branch information
fbeauchamp committed Jan 12, 2022
1 parent bffb8b3 commit 23a5dc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions @xen-orchestra/backups/RemoteAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ class RemoteAdapter {
delta !== undefined && this.deleteDeltaVmBackups(delta),
full !== undefined && this.deleteFullVmBackups(full),
])

const dirs = new Set(files.map(file => dirname(file)))
for(const dir of dirs){
await this.cleanVm(dir, {remove: true, onLog: warn })
}
}

#getCompressionType() {
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
### Bug fixes

> Users must be able to say: “I had this issue, happy to know it's fixed”
- [Backup] : delete backups immediatly after selecting them instead of waiting for the next backup successfull execution (PR [#6081](https://github.com/vatesfr/xen-orchestra/pull/6081))

### Packages to release

Expand Down

0 comments on commit 23a5dc6

Please sign in to comment.