Delete old versions of backup without running a new backup

I have an old backup configuration from a former laptop. When I started using a new laptop it was time to clean up some stuff and to rearrange things. I kept de old backups on my remote storage space (Stack) because they could contain files I might need some day. But one of those backups contains 14 versions (it was configured with the smart retention option). I want to save space on my remote storage so I want to delete the 13 oldest versions of the backup and just keep the last one. But I cannot run the backup one last time because the source has been rearranged or removed. I just want to delete the older versions.

Is that possible? And if so, how can I do that?

Hello and welcome!

Yes you can delete versions without running a new backup. In the main Web UI, click on your backup job to expand options. Click the blue “Commandline …” link. Change the dropdown to “delete”. Replace the contents of the “Commandline arguments” box with --version=1-13 (the most recent backup is version 0, so this would select the older 13 versions for deletion). Finally, click the blue “Run delete command now” button at the bottom right of the page.

Hope this helps!

2 Likes

Thanks for your clear explanation. It works!

2 Likes

All right, that works great.

Now, is there also a way to delete, let’s say, nine versions out of ten in one go?

I tried this:

–version=11-19
–version=21-29

As a result, versions 21 to 29 were deleted. The first line was ignored.

I thought of trying this (but didn’t dare):

–version=11-19;21-29

Would this work?

I did a quick test with multiple ranges and using a comma appeared to work fine. In my test I used:

--version=0-1,3

and this was the result:

  Listing remote folder ...
  Deleting file duplicati-20220227T044518Z.dlist.zip (1.22 KB) ...
  Deleting file duplicati-20220227T044527Z.dlist.zip (1.31 KB) ...
  Deleting file duplicati-20220227T044530Z.dlist.zip (1.34 KB) ...
  Deleting file duplicati-b65f1345548e147b396414ad5e3b24872.dblock.zip (792 bytes) ...
  Deleting file duplicati-i3c832b974b0c4662bed7eabb946d051b.dindex.zip (605 bytes) ...
  Deleting file duplicati-b3ea6e8ec5ff24aaa9cc389080ab793b5.dblock.zip (792 bytes) ...
  Deleting file duplicati-ibc82f1c271244e0d951ba8e47c99f8b2.dindex.zip (606 bytes) ...
These filesets were deleted:
0: 2/26/2022 8:45:30 PM
1: 2/26/2022 8:45:27 PM
3: 2/26/2022 8:45:18 PM
Return code: 0

1 Like

Wow! Great! It works! What an incredibly flexible program. :brain:

Thank you!