I use duplicity to backup some files. I'm now trying to restore to my Mac to test the backup, but get the following error:
> duplicity [email protected]/backup_dr ~/restored_files
Max open files of 256 is too low, should be >= 1024.
Use 'ulimit -n 1024' or higher to correct.
So I try:
sudo ulimit -n 1024
And it seems fine, then run:
> ulimit -a
...
open files (-n) 256
...
How do you actually get the limit to change? I've Google'd with no luck :(
I had the exact same problem. Turns out this works under bash, but not in tcsh.
Try ulimit -n 1024
without sudo. For some reason it didn't work with sudo for me.
If it says Operation not permitted
try closing and opening another terminal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With