How do I set the backup destination directory of bup?
bup defaults to saving backups to ~/.bup
. How can I tell it to save backups to my external drive (/media/backups
) instead?
Solution 1:
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.
Solution 2:
One way would be to symlink .bup there:
ln -s /media/backups ~/.bup