Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicity doesn't like max open files setting on Mavericks

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 :(

like image 576
Gazza Avatar asked Jun 24 '14 08:06

Gazza


2 Answers

I had the exact same problem. Turns out this works under bash, but not in tcsh.

like image 71
Norbert S Avatar answered Sep 19 '22 12:09

Norbert S


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.

like image 36
Mauricio Avatar answered Sep 19 '22 12:09

Mauricio