Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-16-2004, 09:05 AM
|
#1
|
LQ Newbie
Registered: Mar 2004
Posts: 7
Rep:
|
Backup Permissions
Hello,
I'm looking for a possibility to backup the file permissions for a directory tree (and not the files itself) and restoring them if necessary. Is there any tool/script to do this?
Thx
Christian
|
|
|
03-16-2004, 10:26 AM
|
#2
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
You could do it with a script.
It could be quite complex though.
Better idea(?)
why not decide what the permissions *should* be in advance and write a script to set them correctly? That would be very simple.
billy
|
|
|
03-16-2004, 11:41 AM
|
#3
|
LQ Newbie
Registered: Mar 2004
Posts: 7
Original Poster
Rep:
|
Hi,
the problem is, that e.g. rsync can't manage the permissions with an unprivileged account. So I would like to write users/groups etc. in a file for later restore. I don't want a root service on the backup system and no root login information on the other. So I backup without those informations at the moment but this is suboptimal.
Christian
|
|
|
03-16-2004, 11:53 AM
|
#4
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
You want to change the permissions to backup, then
change them back?
billy
|
|
|
03-16-2004, 04:02 PM
|
#5
|
LQ Newbie
Registered: Mar 2004
Posts: 7
Original Poster
Rep:
|
Hi,
no, this is a external backupserver (over the Inet) and the owner/group information gets lost in this process. Nevertheless I would need to backup the owner/group information and a possiblility to restore it back. The other permission informations can be transfered (if it is a Linux backupserver)
Christian
|
|
|
08-23-2004, 09:36 AM
|
#6
|
LQ Newbie
Registered: Mar 2004
Posts: 7
Original Poster
Rep:
|
I have found the solution in the meanwhile :
getfacl / setfacl
can backup and restore the permissions in a very simple way.
Christian
|
|
|
All times are GMT -5. The time now is 02:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|