The save_bundles script (that I mentioned in "How do I connect a COPY (an archive, not a clone) of a git repository to its remote?" and "Transferring changes made to multiple branches using git-bundle") requires some settings to work.

$H should be set to a folder where:


repositories (the folder where all your bare repos reside) is
backup_xxx (the folder where the bundles are stored) will be above $H


See sources:

repos="${H}/repositories"
bkp="${H}/../backups"


(make sure to consider the latest version of that script)

Sourcing the .bashrc (done in line 8) is not mandatory (it is in my environment, but not in yours)

You would also need the utility functions get_fqn and get_hostname ins $H/sbin/usrcmd.

Daily and weekly backup strategies
I set up my ssh stuff with the help of this guide, and it used to work well (I could run hg push without being asked for a passphrase). What could have happened between then and now, considering that I'm still using the same home directory.

$ cat .hg/hgrc 
[paths]
default = ssh://hg@bitbucket.org/tshepang/bloog

$ hg push
Enter passphrase for key '/home/wena/.ssh/id_rsa': 
pushing to ssh://hg@bitbucket.org/tshepang/bloog
searching for changes
...

