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.

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

2 Answers 2

up vote 3 down vote accepted

From bup's manpage:

GLOBAL OPTIONS

    [...]

    -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

 
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.