Forum archive
TKLBAM restore error: Duplicity complaining about "too many open files"
A user contacted me over e-mail with a problem he was having with TKLBAM and I'm posting the answer to the forums in case it happens to anyone else. In general support issues are best asked here on the support forum. That way if anyone else runs into an issue and we find a solution they can benefit from the answer.
Very long backup chains consisting of hundreds or thousands of incremental backups are problematic. Even when everything works they're inefficient. So if you backup very frequently (e.g., hourly cron job) we recommend changing the full backup frequency configured in /etc/tklbam/conf from 1M (one month) to 1W (one week) or below.
Otherwise you're going to get very long backup chains (720 volumes in a month) and may run into file descriptor limits on your system when you restore.
If you've already created such a backup, you can temporarily increase the file descriptor limit from 1024 to 65536 like this:
ulimit -n 65536 tklbam-restore 1