Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

bup defaults to saving backups to ~/.bup. How can I tell it to save backups to my external drive (/media/backups) instead?

share|improve this question
up vote 4 down vote accepted

From bup's manpage:



    -d, --bup-dir=BUP_DIR
          use  the given BUP_DIR parameter as the bup repository location,
          instead of reading it from the $BUP_DIR environment variable  or
          using the default ~/.bup location.

So either start it with the -d switch or set the $BUP_DIR variable.

share|improve this answer
Thanks. I'd been looking in the manuals for bup-index and bup-save — the commands I'm actually using — and neither one mentions --bup-dir, $BUP_DIR, or the existence of global options. – ændrük May 24 '11 at 13:29

One way would be to symlink .bup there:

ln -s /media/backups ~/.bup
share|improve this answer

Your Answer


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.