5
4
Currently I am trying to imagine a way of backing up all the file attributes and permissions of a certain directory, i.e. /volatile, for later restore. The procedere I have in mind would be:
- backing up all the file attributes in /volatile
- update /volatile (cloned from a git repo)
- restore the file attributes to the new files
File attributes which should be preserved are for example, ownership and access rights as well as setuid-bits, etc ...
How would I do that if the file and directory structure is always completly identical and how would I do that if there are minor changes (i.e. one file deleted).
Any ideas are greatly appreciated.
Thanks in advance
1Which filesystem (FAT/NTFS/ext3...)? – schnaader – 2011-02-19T01:21:37.263
filesystem is ext3 – ftiaronsem – 2011-02-19T21:17:26.383