[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] Restoring only permissions?
From: |
devzero |
Subject: |
Re: [rdiff-backup-users] Restoring only permissions? |
Date: |
Thu, 01 Jun 2006 01:41:21 +0200 |
Hi Micah,
this should be not too hard, imho. (in theory)
> everything? I tried to parse some of the meta-files but found that it
> was not that straight forwards.
could you describe your problem with this?
do a zcat mirror_metadata.{date}.snapshot.gz |egrep "File|Uid|Gid" and you will
see each file/directory followed by owner/group
(btw - question to rdiff-backup authors: why is permission stored in decimal ?
is this to save space?)
so - what you basically need is a script which reads this file, moves the lines
into variables and do the appropriate "chmod $Uid:$Gid $File" then.
indeed, this could be nice additional "restore-options" for rdiff-backup
(--restore-file-owner, --restore-file-permissions, --restore-file-metadata....)
regards
roland
> -----Ursprüngliche Nachricht-----
> Von: Micah Anderson <address@hidden>
> Gesendet: 31.05.06 23:05:27
> An: address@hidden
> Betreff: [rdiff-backup-users] Restoring only permissions?
> Some evil process went and did a chown -R user:user / on a server, and
> I am trying to figure out if there is a way to pull the permissions
> out of rdiff-backup to fix this, without needing to restore
> everything? I tried to parse some of the meta-files but found that it
> was not that straight forwards.
>
> Thanks,
> micah
>
>
>
> _______________________________________________
> rdiff-backup-users mailing list at address@hidden
> http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
> Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000071