When restoring files backed up by Duplicity, is there a way to keep the original permissions on the files extracted? I need to run the restore as root, and it seems that makes all the files restored owned by root.
How can I keep permissions on original files when restoring backups with Duplicity?
backup;restore;duplicity
Duplicity can and does restore permissions and owner of your files/folders as they were before the backup. To restore the owner two prerequisites have to be met:The restore command has to be run as root, as only root is allowed to chown.A user named the same needs to exist on the target machine.During the restore process the files and folders will be owned by root, but once it finishes Duplicity will set the owner to reflect the original if the above demands are met...ede/duply.net