LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 03-16-2004, 08:05 AM   #1
cfgert
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Rep: Reputation: 0
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
 
Old 03-16-2004, 09:26 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,276

Rep: Reputation: 170Reputation: 170
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
 
Old 03-16-2004, 10:41 AM   #3
cfgert
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 03-16-2004, 10:53 AM   #4
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,276

Rep: Reputation: 170Reputation: 170
You want to change the permissions to backup, then
change them back?

billy
 
Old 03-16-2004, 03:02 PM   #5
cfgert
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 08-23-2004, 08:36 AM   #6
cfgert
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
I have found the solution in the meanwhile :

getfacl / setfacl

can backup and restore the permissions in a very simple way.

Christian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
user backup permissions wmorrow Linux - Security 3 10-26-2005 09:22 AM
backup recovery file permissions problem SlipAway172 Ubuntu 1 06-17-2005 11:10 AM
permissions on tar backup files durden2.0 Linux - Newbie 4 08-03-2004 11:50 PM
Backup, directory, permissions. linuxgamer Linux - Distributions 0 11-19-2003 06:07 PM
backup directory with root only permissions? hobylinux Linux - Newbie 3 08-22-2003 12:25 AM


All times are GMT -5. The time now is 06:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration