A typical way to restore files to previous states is
duplicacy restore -r 1234 -overwrite -delete
If here are files and folders with read-only attribute or mode, it will fail with “Access is denied” errors.
While
restore permission of file while restoring, it’s funny that
restore → read-only bit restored → subsequent restore failed
by the way, -deleteing read-only files also fails, what’s more, errors from deletion are silently ignored, leaving unwanted files without any warning.
To solve this, I have made a PR
Which
- Try to grant write permission or remove read-only attribute before overwriting or deleting files during restoring
- Display warnings when files can’t be deleted by
-delete
Hope this helps.