Restore exits/fails when file has gid system

Restoring a directory which has a file with gid system. This is on macOS.

Either a) the file should be restored correctly, b) the file should be restored but without gid set, or c) if it must throw an error, for the restore to continue.

  1. This error in the log:
    2020-09-21 18:16:18.840 ERROR RESTORE_CHOWN Failed to change uid or gid: lchown : operation not permitted
  2. The restore terminates without restoring further files.

You can either run restore -ignore-owner ... to ignore uid/gid or sudo restore ... to have the permission to set uid/gid.

1 Like

Would the sudo part work if I run the container as privileged?

Yes, I think so…

It didn’t, at least for me

So, what do I do on the WEB version to solve this?

The restore command encountered an error:
Failed to change uid or gid: lchown /home/lance/restored/.duplicacy-web/logs/backup-20221104-000001.log: operation not permitted

Exit code: 100
1 Like

one solution is to add ‘-ignore-owner’ to the options section in restore (GUI)

2 Likes

This is a bit frustrating. I used duplicacy to backup some docker containers and restored with -ignore-owner because even with duplicacy elevated in the shell it fails to restore without that flag. Now the containers perms are all messed up. I think I’ll be able to fix manually but still kinda a pain.