chattr
Steven W. Orr
steveo at syslang.net
Tue Jan 28 11:52:44 EST 2003
On Tue, 28 Jan 2003, Marc Evans wrote:
=>Hello -
=>
=>I am trying to find a program, ideally rsync, that preserves attributes
=>set by chattr, when a file is copied. For example, consider the following:
=>
=> cd /var/tmp
=> touch foo
=> chattr +i foo
=> rsync foo bar
=> lsattr foo bar
=>
=>I have experimented with several different programs, but have not found
=>anything that seems to archive those file attributes. Have any of you
=>encountered this and if so, how do you address it?
=>
=>Thanks - Marc
You're going to have to write it yourself. Doesn't look too hard. Here's a
scheme. Have your backup create a file called fn.chattr by running lsattr
for every file you copy. Then process the .chattr file by running a set of
chattr commands. Clean up by removing the .chattr files.
--
-Time flies like the wind. Fruit flies like a banana. Stranger things have -
-happened but none stranger than this. Does your driver's license say Organ
-Donor?Black holes are where God divided by zero. Listen to me! We are all-
-individuals! What if this weren't a hypothetical question?
-steveo+sig at syslang.net
More information about the gnhlug-discuss
mailing list