|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
Title: My Backup Strategy |
|
|
|
|
Date: 2021-04-08 |
|
|
|
|
Category: Writing |
|
|
|
|
Summary: Details about the backup system for my data. |
|
|
|
|
Summary: Details about the backup system for all of my data. |
|
|
|
|
Wide: true |
|
|
|
|
|
|
|
|
|
[TOC] |
|
|
|
@ -32,7 +32,7 @@ the destination for all my backup sources. All scheduled automatic backups write |
|
|
|
|
to their own subfolder inside of it. |
|
|
|
|
|
|
|
|
|
This backup folder is then synced to encrypted 2.5" 1 TB hard drives which I |
|
|
|
|
rotate between my bag, offsite, and my parent's house. |
|
|
|
|
rotate between my bag, offsite, and my parents' house. |
|
|
|
|
|
|
|
|
|
## Backup Sources |
|
|
|
|
|
|
|
|
@ -127,6 +127,8 @@ Telegram Messenger is my main app for communication. My parents, most of my |
|
|
|
|
friends, and friend groups are on there so I don't want to lose those messages |
|
|
|
|
in case Telegram disappears or my account gets banned. |
|
|
|
|
|
|
|
|
|
<span class="aside">Saves the messages to a sqlite db</span> |
|
|
|
|
|
|
|
|
|
Telegram includes a data export feature, but it can't be automated. Instead I |
|
|
|
|
run the deprecated software |
|
|
|
|
[telegram-export](https://github.com/expectocode/telegram-export) hourly with |
|
|
|
@ -197,9 +199,9 @@ I run `rdiff-backup` on the remote server with cron: |
|
|
|
|
55 14 1 * * rdiff-backup --remove-older-than 12B --force tbotbak@remotebackup::/mnt/backup/remote/tbotbak/monthly/t0txt/ |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
The user `tbotbak` has write access only to the `/mnt/backup/remote/tbotbak` |
|
|
|
|
directory. It has its own passwordless SSH key that's only permitted to run the |
|
|
|
|
`rdiff-backup --server` command for security. |
|
|
|
|
The `tbotbak` user has write access to the `/mnt/backup/remote/tbotbak` |
|
|
|
|
directory only. It has its own passwordless SSH key that's only permitted to run |
|
|
|
|
the `rdiff-backup --server` command for security. |
|
|
|
|
|
|
|
|
|
### Protospace |
|
|
|
|
|
|
|
|
@ -217,7 +219,7 @@ an archive I download daily: |
|
|
|
|
https://api.my.protospace.ca/backup/ |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
The main website and [wiki](https://wiki.protospace.ca) that I sysadmin gets |
|
|
|
|
The website and [wiki](https://wiki.protospace.ca) that I sysadmin get |
|
|
|
|
backed up weekly: |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|