Settings:
• Backup retention: on
• Advanced options. all-versions: on Bug:
Backup folder with 1 file.
Delete that file.
Copy any other file to the same folder.
Backup the same folder again.
Delete the second file.
When you try to restore 2 of these files at once, only the last one is restored, although both are marked for recovery.
“[Warning-Duplicati.Library.Main.Operation.RestoreHandler-MetadataWriteFailed]: Failed to apply metadata to file: “E:\aa”, message: The process cannot access the file ‘E:\aa’ because it is being used by another process.”
How are you doing that? In your scenario it seems that file A exists in one backup snapshot and file B exists in a separate one. Duplicati requires you to pick a backup snapshot and then pick from the files contained within - you cannot submit a backup job that lets you pick files from different backup snapshots.
If you have E:\aa folder open in Explorer or elsewhere, it can cause this error message. From what I’ve seen it means only the metadata on that folder wasn’t restored. Actual data should have been restored though.
Yes, each file is obtained in a separate snapshot. But then this setting and the possibility of selecting all the files from all previous snapshots at once is misleading.
A Google search for “all-versions” at site:duplicati.readthedocs.io supports my hunch, which is that “search” means the FIND command, which is how one searches. You can try that at Commandline.
“Use this option to show all previous versions too” text suggests a find, which is also called list.
The RESTORE command also has a syntax which seems to say multi-version restore isn’t allowed:
--version=<int>
Restore files from a specific backup.
mmh… I never try a multiple-version restore and I don’t know if it’s possible too but when one try to restore a file duplicati ask what it should do in case exist a file whit same name yet: overwrite file or add a timestamp in the name…
I use duplicati so far only through the web interface. The function to recover all files from different snapshots at the same time does not seem to work. So this is a bug. Hope to fix it.
Concerning the CLI: While I can FIND several versions of a file with --version1,2,3, I cannot RESTORE these versions in one go, only the first one of my versions is restored. Is this expected behaviour?
I want to restore several versions in one go and then compare them. When I individually restore them it works: I get a time stamp at the end, which is great.
According to earlier documentation clues, this only works with the find command.
That makes two people (including you) who confirm that restore lacks this ability.
For a small number of versions, doing what you tried seems a workaround for this.
Files that are already as they should be won’t even get downloaded again, but the
dating of file version is available if it’s necessary to have two versions sitting there.
The timestamps here are those of the backup version though (should match what restore offers), not file.
The above result fits especially well with all-versions short description in the options selector, which says
There’s probably no getting away from a manual exam of the files after the time of corruption is narrowed, however this sort of survey seems like it will cut time ranges down to where a few samples can be tested.