IgnoreFileByType
From RdiffBackupWiki
It would be useful to be able to ignore all files with some type, as is returned by the `file` command.
I.e. Ignore compiled object files in a source directory, regardless of their extension. Also, compiled binaries do not have an extension at all so it is impossible to define them only by their file names.
Unix file(1) can be quite expensive, and I think it always reads the entire file to do a complete analysis. It might be enough to just pipe the first, say, 4kB through to file(1). Most filetypes that you might want to filter should be identified by something in their first page.
This would also be wonderfull to prevent rdiff-backup from compressing certain filetypes e.g. gzipping a bzip2 packed file might not be the most wonderfull idea.
My impression is that it would be nice to have this capability, but it isn't necessarily best to build it directly into the program. Couldn't this be done using --exclude-filelist and some external scripting?
--BenEscoto
Back to SuggestedFeatures
