Linux Backup while persisting permissions

Status
Not open for further replies.

MrRobot

Cadet
Joined
Jun 18, 2015
Messages
6
Hey guys,

I want to backup my linux system while persisting my permissions.

The method i used on my second hdd was rsync with the -a option, but of course this does not work with the FreeNAS box, because the uid+guid are not the same as on the FreeNAS (i would have to sync all uids+guids from the local machine and the server).

Is there a way of mounting the drive, so only my local uids+guids are used?
What other options do i have? I am that tars have the potential of persisting permissions, but i'd prefer a uncompressed backup which i can browse in.

If the question is unclear please tell me.

Thank you very much
MrRobot
 

MrRobot

Cadet
Joined
Jun 18, 2015
Messages
6
To answer my own question:

The user+group of the user accessing the NFS share should be the same on the client as on the server. I am accessing the share via the root user so the owner of the volume is root and the group is wheel. On the share the maproot user should be root and the maproot group wheel. By default everything should work fine now(if the uids+guids match: by default 0).

So some of the stuff i said in my first post was just plain wrong and rsync with the -a option does preserver permissions now.
 
Status
Not open for further replies.
Top