[linux-l] Rechte / Attribute sichern und wiederherstellen - stat

Ivan F. Villanueva B. iv at artificialidea.com
Mi Dez 6 16:04:36 CET 2006


Am Mi, Dez 06, 2006 05:20:34 +0100, Steffen Schulz schrieb:
> On 061206 at 01:00, Boris Kirkorowicz wrote:
> > Hallo,
> > ich möchte -möglichst per Script- die Rechte bzw. Attribute von Dateien
> > und Verzeichnissen sichern und wiederherstellen. Wie geht das, und falls
> > es nicht mit Standardmitteln geht: was brauche ich dafür?
> 
> stat koennte dein Freund sein.
> 
> 
> find ./ -exec stat "\"%a %n\"" {} \; > chmod.lst
> 
> cat chmod.lst|xargs -L 1 chmod
> 
> Same for chown/mactimes.

Bei mir muss:
    ... stat -c "%a %n" ...
-- 
Iván F. Villanueva B.
A.I. library:   http://www.artificialidea.com
<<<          The European Patent Litigation Agreement (EPLA)          >>>
<<<            will bring Software patents by the backdoor            >>>
<<<                     http://epla.ffii.org/                         >>>



Mehr Informationen über die Mailingliste linux-l