first commit
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
# ============================================================
|
||||
# RESTIC RECOVERY CREDENTIALS
|
||||
# Store this file on TrueNAS at:
|
||||
# /mnt/pool/backups/recovery.txt
|
||||
# chmod 600 /mnt/pool/backups/recovery.txt
|
||||
# ============================================================
|
||||
|
||||
## Restic repository
|
||||
RESTIC_REPOSITORY=rest:http://oliver:oli1oli1@nas.box:30248/netcup
|
||||
|
||||
## Restic encryption password ← fill this in before storing
|
||||
RESTIC_PASSWORD=xxx
|
||||
|
||||
## REST server
|
||||
Host: nas.box:30248
|
||||
Username: oliver
|
||||
Password: oli1oli1
|
||||
|
||||
## Retention policy
|
||||
keep-daily: 5
|
||||
keep-weekly: 3
|
||||
keep-monthly: 3
|
||||
|
||||
## Backup paths (for reference when rebuilding)
|
||||
/etc
|
||||
/home/oliver
|
||||
/opt
|
||||
/var/data
|
||||
/var/spool/cron
|
||||
/root
|
||||
|
||||
## To restore on a fresh server:
|
||||
##
|
||||
## 1. Install restic
|
||||
## apt install restic
|
||||
##
|
||||
## 2. Restore all files
|
||||
## RESTIC_PASSWORD=<password above> \
|
||||
## restic -r rest:http://oliver:oli1oli1@nas.box:30248/netcup \
|
||||
## restore latest --target /
|
||||
##
|
||||
## 3. Reinstall packages
|
||||
## dpkg --set-selections < /etc/backup-package-list.txt
|
||||
## apt-get dselect-upgrade
|
||||
##
|
||||
## 4. Reload systemd
|
||||
## systemctl daemon-reload
|
||||
Reference in New Issue
Block a user