2.4 KiB
Backup Strategy
Laptop Backup
Cloud directory: syncthing
Backup using syncthing on the homelab.
home directory: restic
restic-backup systemd service (here).
It backups all the home directory, except for the Cloud directory (taken care by syncthing).
This is in the homelab in /srv/storage/Backups/esrf-laptop.
How to access backed up data ?
restic mount ~/mnt/backup/
Then go to ~/mnt/backup/snapshots, and look for the wanted files.
Homelab Backup
Backup Strategy
The following directories are backup on the Odroid HC4 machine:
/home/thomasthat mainly contains the docker configurationUsersthat contains the Cloud of all usersCloudthat contains my own cloudMusicthat contains all the music library
What is not backed up:
- Most of multimedia content:
Animes,Books,Conferences,Documentaries,Games,Scans,StandUp,LiveMusic,Movies,Trainings,TVShows - The
Downloadsdirectory
How to access backed up data ?
First, the Odroid HC4 server needs to be powered on.
To list backups:
docker exec restic-hc4 restic snapshots
Force backup of folder:
docker exec restic-hc4 restic backup /data/documents/manuals
Find the path to the file within the snapshot:
docker exec restic-hc4 restic find file_name
Find files only for a specific snapshot:
docker exec restic-hc4 restic find -s latest file_name
Restore files/folders (replace file/folders):
docker exec restic-hc4 restic restore --include /data/documents/manuals --target / 088e31a4
You can use latest instead of the ID.
If indeed, we want to make a copy of the file, we can use the backup folder
docker exec restic-hc4 restic restore --include /data/documents/manuals --target /backup 088e31a4