From f2375511935010a1aeee5683c30b3efb928bef2e Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sat, 28 Aug 2021 21:01:39 +0200 Subject: [PATCH] borg backup --- .../borg-backup/images/borg-backup-logo.png | Bin 0 -> 15832 bytes content/posts/borg-backup/index.md | 131 ++++++++++++++++++ 2 files changed, 131 insertions(+) create mode 100644 content/posts/borg-backup/images/borg-backup-logo.png create mode 100644 content/posts/borg-backup/index.md diff --git a/content/posts/borg-backup/images/borg-backup-logo.png b/content/posts/borg-backup/images/borg-backup-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..502966bc4b95cc052c260a4f8733894d90c9ef10 GIT binary patch literal 15832 zcmeIYXH*l+_AgBDp!D8CXhI;N_uhh3r721ey#}Or5kZ;;K{_ZR7ODbD6{&($sRANW z6r~9W2ngIs@I2=^@B9C9*1C7y`{9X8lbPB3x6AC=vu7_8O^kG@DcC6R@bIXSdRiCo z@QAAL@bDj!k$@Rqo0%m%Jo=naGpm3L_CY+pXdh=cPZUo;h%br<73}7WhZj6mp5un* zkjLCOSzw4DT7Bn-Cub)ko3*gFcl%+(L(EjyBWqEKp0|BuafjP4dEVup92Kq{zj;05 zA5dRoqg!4O6|zVx_&VTZU-r}B-1g!AG3?~{{U=qyuSr`JvousHIaDXw-RlO5nT1<(#rB$skLHZ zcjaDGZ|lpEw8N|EyCJ`JHfA0dFjk~HC<#Lc2eYkvrQI-7$qpm!g!8cY}pqi?@XFAHT~OImW+P zm^#SSR{3)KD5COO(8m7E$G!~AcxCQEOXnWDI0MZ{nDx@L&8xqfn=9W~1{DR3ptsqF z#3H$Q-)FL;tKjX_UzOLZE;*zM%5XW(Na=Tny8CtHHx^Vsm`F#h6x0 zP+Pg!5kaajJBp9TIVSl@Q%8GLVW%(ct=ZkT=aO<9)j5l=@5fnr{~B(Ly0%{0QlEEH z+|s!*AYZ%wdRV@6{OG=a)W)<=gY$*lwe&E~_bg8zs~{qO%Q_a)*3EzZ5@BCwRNdR~ zWkuzthZ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&N1M=;D==7hJ+~6C3p=^Kh z`^uPq`Q4*3c1_(>gDojXp)Yk%TdOU{!t6y;9XW~#&^#-mOw-#cBN;qQg<8V)tBnnx zm%qu5km*@FeoOVG2)qI{O;56d!PaLOMId@klIP@3#Ck>|Rv5RppoN##HHoqJW|1L* z#U&9UQBdiD(f^B`)1w0mjJWv8XHYkT&rv;p&u-YsYjEJfC^~Wmv$zQTWVJQ|&MEi= zY>Y!o1@{lW7lK3u#zodI`Q`b0`agy%oHDG>WPaFaYN&5C7RL38hf=ua%`u*cOMuv_ zZM=``jzd!_Jl5!AjuAKe%rv&~8HcSh)Xx}i5j#dhdx9hyx4(NFg@>Mctg30l8T1?` z4i4!~6?~Ts&e6e<#OWvroGSLilM8=F^?W_q!gQ5%r@Cmb8lW#@*n1<8r{fe>9vl8s zO7?2Wo^Qws@skqVF5&I^fU2AQ%RBIP1E1Atko=vhg0cNB?C@O$XxB6ZPPT*BD)-uPmr%9HHia5Aeiep{RK+**(uGUMN=Rk4-pQ&p>&abz>e{VQ5vT?dL{CnWpvlUgd zAgp6sCA^K%i3s=wRlTjPWXK=8L^tN48$*srJBzm6LCZK>0zNk*#Ux42NzebWeJG!j&%v~in?D4FiDKOl z##uO2LYe+M8)1^jjoMYLRFPaC!TF`ggBkk4o{GwotMWMHcPVIu0#mtX(-)7rTGb-+ zdOA*xj6QBs>{;qkv!@3hhz9j0-ce`}MkF~#BQkH%9I2vQJ_4ExAhe8Ekh2Ag`o%>q zjp%tV+tuyHj z#rUU(zZF`3yAG{9zm@1#_~?|pTrk7~bB3K*WGa7g2dScRbdeD!v}OnDgWRGmwnGB+ zGhTTWIC4!Z + +The [documentation](https://borgbackup.readthedocs.io/en/stable/) is a nice starting point, beside that, you find plenty of useful tutorial online. + +On Linux or FreeBSD some usable BorgBackup version is available with the usual package managers. +In my case I am using the version available on FreeBSD 13 via "pkg install py38-borgbackup". + +### BorgBackup & Synology + +For me, the primary backup target is my old Synology NAS. + +Fortunately, you can install BorgBackup on the NAS itself via the package center if you add [SynoCommunity](https://synocommunity.com/#easy-install) as an additional source. +There you will find the "Borg" package in a reasonable fresh version. +No need to fiddle around with the internals of the Synology distribution on your own. + +I then activated ssh access & enabled the home directory service to be able to add some authorized_keys & have my backup repository in the home. + +### Cloud backup + +Given I now start to setup my backup from scratch anyways, I decided to fix a second issue: All my backups are in my flat ;=) + +Given either "fire, fire" or "we steal just all stuff, even your crappy NAS", perhaps nobody might really access my data even if stolen, still I could easily loose it all. + +As BorgBackup like duplicity works nicely over ssh, no reason not to use it to push all the data encrypted to some random virtual server somewhere. + +There are several companies that even promote their BorgBackup compatibility. +But I will not start to promote here cloud/virtual server hosting companies, your search machine will tell you what is available. + +### BorgBackup repository initialization + +I recommend their [quick start](https://borgbackup.readthedocs.io/en/stable/quickstart.html) documentation for the initial setup. + +For me, it was e.g. for the NAS (see the --remote-path to let it find the borg binary on the Synology): + +{{< highlight bash >}} +borg init --remote-path /usr/local/bin/borg \ + --encryption=repokey thecooluser@nas-name-here:borg +{{< / highlight >}} + +and for the cloud server: + +{{< highlight bash >}} +borg init --encryption=repokey \ + thecooluser@server-name-here:borg +{{< / highlight >}} + +That command will query some passphrase, use a good one, that is the sole protection of your data. +And keep it somewhere you have it, even in the "fire, fire" case ;=) + +### BorgBackup usage + +After you did initialize the repositories like above, you will have on your NAS and/or server some borg directory in the home of the matching user. + +You can create a new backup archive of e.g. your home (excluding the .cache directory you might not want) via: + +{{< highlight bash >}} +borg create --compression zstd --progress --stats \ + -e "/home/your-user/.cache" \ + "thecooluser@server-name-here:borg::name-of-backup-archive" \ + "/home/your-user" +{{< / highlight >}} + +On the NAS you will need an additional "--remote-path /usr/local/bin/borg" like for the init command. + +### Does this work? + +So far it seems so, but time must tell. +As with any backup solution, I will need to test restore again and again and must see how the incremental backups work in practice over time. +At least the initial full backup seems to work more fluent than I was used with duplicity. + +Naturally, BorgBackup [had already bugs in the past](https://borgbackup.readthedocs.io/en/stable/changes.html#) and for sure still has some. +The [cryptography isn't perfect either](https://borgbackup.readthedocs.io/en/stable/internals.html), on the other side, I want to protect my personal data against the normal thief, not some government agency. + +### Shall I use that? + +If this post did spark your interest to try this, please do your own research if it really fits your bill. +In any case, I still have a plain rsync copy around on a second machine, just in case it doesn't work like expected. +Not that I again loose a decade of flame war mails .-)