HashBackup setup

From Notes to self
Revision as of 02:35, 11 April 2025 by Verbovet (talk | contribs)
Jump to navigation Jump to search
destname fbsd
type s3
host example.com
location loc
accesskey ...
secretkey ...
bucket fbsd
class ia
secure
  • # chmod 400 /var/hashbackup/dest.conf
  • Customize /compat/linux/hashbackup/inex.conf
ex /hb/boot/

ex /hb/home/*/.sh_history
ex /hb/home/*/.bash_history
ex /hb/home/*/.cache
ex /hb/home/*/.gvfs

ex /hb/root/.sh_history
ex /hb/root/.bash_history
ex /hb/root/.cache
ex /hb/root/.gvfs
...
  • Set configuration options:
hb config cache-size-limit ...
hb config dedup-mem ...GB
hb config copy-executable True
hb config no-backup-tag .nobackup,CACHEDIR.TAG
hb config pack-age-days 0
hb config pack-download-limit 10TB
hb config pack-percent-free 10
  • Crontab:
m h * * * /usr/bin/touch /root/npbin/.hb-daily-marker
  • /usr/local/etc/profile
export HASHBACKUP_DIR=/hashbackup