Restore backup permissions

Hello, everyone.

I have a somewhat unusual scenario and a problem that I am not sure how to resolve.

When restoring a backup with v-restore-user, the script creates a temporary directory in /backup/ where it attempts to change the owner and date of the files before copying them to their destination.

In my case, I have mounted the /backup/ path with sshfs on an NTFS-formatted disk that prevents the owner from being changed. When v-restore-user tries to execute the chown command (for example, in the mail settings), the script stops and exits with an error. This does not happen when restoring web directories, for example, which are copied to their destination without any problems.

Currently, the only solution in my case is to copy the backup file to a local directory and restore from there, with the loss of time that this entails and sometimes with space limitations.

Is there any way to prevent v-restore-user from changing the permissions in /backup/? Does the v-restore-user script have any option to prevent this?

Thank you all for your attention and apologies for the length of this post.

Only possibility would be to rewrite the restore script, but this is currently out of scope for the dev team.

1 Like

Thanks for the reply.

In case it helps anyone, most permission issues disappear when avoiding the use of ‘user_exec’ in the ‘v-restore-user’ and ‘v-extract-fs-archive’ scripts.
I haven’t looked into the technical implications of removing ‘user_exec’, but in my case, the restoration went smoothly and everything works perfectly after modifying the scripts in this way.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.