Fix long filenames to satisfy the 143-byte limit of eCryptFS.
This tool is designed only for people who know what they are doing, incorrect using of this tool may cause data damage.
find /path/to/directory | sort > input.txt
./ecryptfs-filename-fixer < input.txt > output.sh
- Read output.sh to make sure everything is correct.
- Read output.sh again to make sure no file would be overwritten.
bash output.sh