commit 78e7585e658a86232eebd3bf853cc1d8a84990b7
parent 75e00e03d9cdb0366532b6494d3bd26e864b8334
Author: oscarbenedito <oscar@obenedito.org>
Date:   Sun, 24 Nov 2019 22:33:46 +0100

Added entry: backups

Diffstat:
Massets/css/style.scss | 2++
Acontent/blog/2019-11-24-backups.md | 16++++++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/assets/css/style.scss b/assets/css/style.scss @@ -571,6 +571,8 @@ article { } .post-content code { + border: 1px solid var(--border); + background-color: var(--code-bg); margin-left: 4px; margin-right: 4px; padding: 4px 6px; diff --git a/content/blog/2019-11-24-backups.md b/content/blog/2019-11-24-backups.md @@ -0,0 +1,16 @@ +--- +title: "Backing up my computer" +categories: technology +tags: ["FOSS", "Software", "Privacy", "Backup", "Offline", "Local"] +--- +If you have important information on your computer, you probably back it up somehow. I used to save all my important files on Google Drive, which was convenient not only because it would make backups automatically, but because I could access my files from any computer, or even my phone without much effort. + +Since reducing my dependency on Google, that isn't an option anymore, so I had to find an alternative. I have an account in a server running Nextcloud, so I could use it the way I used Google Drive—and I could access it as easily from other computers or my phone—, but I am also trying to reduce the amount of private information I put online (whether it is behind a password or not), so I decided that I should have offline backups for my computer[^note]. + +[^note]: Regardless of the existence of an online backup, making an offline one is an interesting option, as you have full control over it. + +The main problem with backups is the effort/time spent doing them, so the process had to be as automated as possible, as well as fast and efficient. I decided to use the `rsync` tool, as it efficiently copies files from one directory to another, skipping the ones that are already up to date (it is also preinstalled and easy to run from the terminal). I use a bunch of options that make the transfer behave as I want to, and I created an alias for the command, so I only need to type `backup_all` to back up my computer. + +On top of my ordinary backup, I do a secondary backup (just in case!), which is made on my everyday USB drive. Having a backup of my `home` folder there is a little risky, as I have private information on my computer, so that is why I encrypt the backups. The software I use is [VeraCrypt](https://www.veracrypt.fr/en/Home.html), and this obviously makes the backup process a little more complicated. However, I created another alias that mounts the VeraCrypt volumes (there are two because I need more than 4GiB and the USB drive uses the FAT format), synchronizes the files and unmounts the volumes. So the only remaining thing for me to do is type in the passwords—although actually, KeePassXC does that for me. I might even automate that part in the future, so I only have to type in my master password. + +So backing up my files is a pretty smooth process again, plus I now know exactly what I am doing when running the command and the backups are made to hardware that I have access to.