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.
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.
hi, i have 5 version of backups. following your guide, I use --version=1-4 and it delete some backups (seems so from the logs) and show success. but in the home page. it still always show 5 version even if I restart the docker or run delete for few more times.
I hope nobody minds me jumping in on this thread, but it seems the knowledge I need is here.
I have moved to a new computer (Ubuntu Linux from Windows). I have a directory on an external HDD called Duplicati Backup. It will have loads of old versions of the backups I used to do on my old Win10 machine.
Is there a way I can identify and then delete some of the old backup, to free up space on the drive?
I would prefer to use the GUI, but currently that lists no backups, obviously, because it is a new install. I could also use the command line. I have found I can restore files from the backup location on the external HDD, but it doesn’t give me any options or show versions that are present on the drive.
Doing it on Windows would have been far more routine. Is old system still around?
Above posts get you around need of a backup, but not around your change of OS.
Note that a backup only uploads changes, so size growth may be small, but it also
means that delete of versions might not reduce size a lot. It does depend on use…
Are you low on space? If you can migrate the backup, it shouldn’t take much more.
Migration is kind of technical. Read first link on OS change for some of the options.
Going with full Windows and full Linux backup versions could use a lot more space.
Reusing at least current source file contents in the backup might use only what the
metadata (file attributes) need, because those are very different due to OS change.
EDIT:
Each one has a dlist file, and previous methods such as linked above seem to be
editing (maybe manually) each one, if the goal is to make them fit new Linux layout.
Although all of this internal surgery is poorly charted, I found another that might help
solve the too-many-dlist-to-edit pain. It uses DB Browser for SQLite on Windows DB
to search and replace in Prefix column in PathPrefix table to change to new way.
Duplicati Repair knows how to reupload dlist files that vanish, so I hid them and a Repair replaced them with the versions with Linux paths. Very experimental though.
Before trying this, you’ll have to decide how much risk you want to take with backup.
You might have built a database tied to the location, which could be used in the GUI as well.
You could look for your destination in text file ~user./config/Duplicati/dbconfig.json.
GUI database would initially have a database assigned, but no database yet, as seen by the Delete button being unavailable (greyed out). You can save new path to CLI’s if you like that
and if you think sharing database is good. For independent GUI, Repair button will build DB.
You’ll then be able to do GUI Restore to specified folder, but more backups won’t be allowed.
The message will be as in earlier post in Changing source OS, and you decide how far to go.
Google search found some other examples of the message, if you’d like to see related topics.