3 ms·
Is there a way to save and revert such metadata? I can’t think of anything that stores just FS metadata.
by ianai 7y ago
Is there a way to save and revert such metadata? I can’t think of anything that stores just FS metadata.
- BenjiWiebe 7y agoI think rsync has an option to copy everything but file contents. Couple that with 'find' running 'touch' and it should be fine. (create blank files, copy attributes to them)
- Lammy 7y agoFreeBSD does! You can rescue yourself from this with mtree. Something like: > cd / > mtree -U -f /etc/mtree/BSD.root.dist > mtree -U -f /etc/mtree/BSD.var.dist > mtree -U -f /etc/mtree/BSD.include.dist > mtree -U -f /etc/mtree/BSD.sendmail.dist > mtree -U -f /etc/mtree/BSD.usr.dist