HashBackup set up: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 26: | Line 26: | ||
* Customize <code>/var/hashbackup/inex.conf</code> | * Customize <code>/var/hashbackup/inex.conf</code> | ||
<pre> | <pre> | ||
ex /home/ | ex /home/user/.bash_history | ||
ex /home/ | ex /home/user/.cache | ||
ex /home/ | ex /home/user/.dvdcss | ||
ex /home/ | ex /home/user/.ccache | ||
ex /home/ | ex /home/user/.emacs.d | ||
ex /home/ | ex /home/user/.fontconfig | ||
ex /home/ | ex /home/user/.gvfs | ||
ex /home/ | ex /home/user/.local/share/Trash | ||
ex /home/ | ex /home/user/.local/share/bashrun*/history | ||
ex /home/ | ex /home/user/.local/tmp | ||
ex /root/.bash_history | ex /root/.bash_history | ||
Revision as of 20:36, 20 November 2022
groupadd -g 329 hb useradd -u 329 -g 329 -s /sbin/nologin -M hb
- Download
hbfrom https://www.hashbackup.com/hashbackup/download.html to/usr/local/sbin/hb# chown root:hb /usr/local/sbin/hb# chmod 750 /usr/local/sbin/hb# setcap cap_dac_read_search=+ep /usr/local/sbin/hb
# mkdir /var/hashbackup# chown hb:hb /var/hashbackup# chchmod 700 /var/hashbackup
$ sudo -u hb /usr/local/sbin/hb init -c /var/hashbackup- Create
/var/hashbackup/dest.conf
destname slack type s3 host example.com accesskey ... secretkey ... bucket hb-slack class ia secure
# chmod 400 /var/hashbackup/dest.conf
- Customize
/var/hashbackup/inex.conf
ex /home/user/.bash_history ex /home/user/.cache ex /home/user/.dvdcss ex /home/user/.ccache ex /home/user/.emacs.d ex /home/user/.fontconfig ex /home/user/.gvfs ex /home/user/.local/share/Trash ex /home/user/.local/share/bashrun*/history ex /home/user/.local/tmp ex /root/.bash_history ex /root/.cache ex /root/.ccache ex /root/.dvdcss ex /root/.emacs.d ex /root/.fontconfig ex /root/.gvfs ex /root/.local/share/Trash ex /root/.local/share/bashrun*/history ex /root/.local/tmp ex /var/tmp/ ex /var/cache ex /var/run ex /var/spool/cron/cron.* ex /var/lib/dhcpcd ...