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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-16-2004, 08: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, 09:26 AM
|
#2
|
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,211
Rep: 
|
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, 10: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, 10:53 AM
|
#4
|
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,211
Rep: 
|
You want to change the permissions to backup, then
change them back?
billy
|
|
|
|
03-16-2004, 03: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, 08: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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:24 AM.
|
|
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
|
|