Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to limit the amount of data my Deja dup backup will try to put on its corresponding Dropbox folder, say limit it only to 500MB? Is it possible to set a disk quota on a file folder?

share|improve this question

3 Answers 3

Aside from a loop mount as arhimed suggests, the only way I know of doing this would be to use XFS, which supports "project quotas": quotaa for specified directory trees, not just entire filesystems.

share|improve this answer

Install quota Install quota. It will help you to set limit amount of memory.

sudo apt-get install quota
share|improve this answer
1  
That's for limiting how much a user can use, not how large a directory can be. –  psusi Jul 20 '12 at 20:04
1  
Than I know only one way: create file and mount it as folder. Sth like dd if=/dev/zero of=/userdisk.fs bs=1024 count= 100000, mkfs.ext3 /userdisk.fs, mount -t ext3 -o loop /userdisk.fs /home/user –  arhimed Jul 20 '12 at 20:18

The granularity of quotas depends on the filesystem you are using.

  • XFS implements project quotas (already mentioned by grifferz)
  • ZFS implements quotas and reservations, and, since with proper planning at the layout stage it is able to handle any directory as nested filesystem, it is able to apply a quota to a specific directory. For a brief explanation of quotas in ZFS, I recommend the BSD Documentation, for the complete treatment, check Oracle.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.