Open NabiKAZ opened 4 years ago
Yes, file attributes are not preserved.
@fdupoux What do you think about adding a TODO file with reasonable RFEs?
Feature | API | New archive format? |
Bug |
---|---|---|---|
File attributes (chattr(1)) |
ioctl(fd, FS_IOC_GETFLAGS, &attr) ioctl(fd, FS_IOC_SETFLAGS, &attr) |
yes | #85 |
Sparse files | lseek(fd, offset, SEEK_DATA) lseek(fd, offset, SEEK_HOLE) |
yes | #70 |
We already have GitHub isses to track both bugs and enhancements. I see no real value in having these tracked in files.
The other issue about sparse files will require some work and it may not be easy to fix.
This enhancement should be easy to implement. The archive format would not be imcompatible, it would just introduce new attributes in the dictionaries that old versions would ignore. So basically it takes one piece of code to capture the attributes at save time and once piece of code to restore these are restore time.
How can get backup with keep all flag files; for example
Immutable
,Append_Only
,...I tested, but
fsarchiver
doesn't backup from flags files.See my testing:
I create an immutable file: (
chattr +ia /a/immutable_file
) and can seeia
flag.Now I backup partition:
Now restore it:
Now you can see remove flags(
-ia-
) file afterlsattr
command: