HashBackup setup: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 44: | Line 44: | ||
<pre> | <pre> | ||
m h * * * /usr/bin/touch /root/npbin/.hb-daily-marker | m h * * * /usr/bin/touch /root/npbin/.hb-daily-marker | ||
</pre> | |||
* <code>/usr/local/etc/profile</code> | |||
<pre> | |||
export HASHBACKUP_DIR=/hashbackup | |||
</pre> | </pre> | ||
[[Category: FreeBSD]] | [[Category: FreeBSD]] | ||
Revision as of 02:35, 11 April 2025
- Start Linuxulator
# pkg install linux_base-rl9- Download
hbfrom https://www.hashbackup.com/hashbackup/download.html to/root/bin/hb - # hb init -c /hashbackup
- Create
/compat/linux/hashbackup/dest.conf
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