Add backup of /etc/nginx for hydra server

This commit is contained in:
RealStickman 2021-02-09 20:15:53 +01:00
parent 112ceb23a1
commit 7571ccb1a4

View File

@ -3,7 +3,6 @@
## Local backups ## Local backups
### arco-pc-backup home ### arco-pc-backup home
There is currently a problem in go that makes this command fail. Run the following command before retrying: `export GODEBUG=asyncpreemptoff=1` There is currently a problem in go that makes this command fail. Run the following command before retrying: `export GODEBUG=asyncpreemptoff=1`
``` ```
restic init --repo /mnt/backups/arco-pc/home/marc restic init --repo /mnt/backups/arco-pc/home/marc
@ -19,7 +18,6 @@ restic -r /mnt/backups/arco-pc/home/marc restore --target "/home/marc" (snapshot
``` ```
## B2 backups ## B2 backups
```bash ```bash
export B2_ACCOUNT_ID= export B2_ACCOUNT_ID=
``` ```
@ -28,7 +26,6 @@ export B2_ACCOUNT_KEY=
``` ```
### arco-pc-backup home ### arco-pc-backup home
```bash ```bash
restic -r b2:arco-pc-backup:/home/marc init restic -r b2:arco-pc-backup:/home/marc init
``` ```
@ -43,7 +40,6 @@ restic -r b2:arco-pc-backup:/home/marc restore --target "/home/marc/" (snapshot)
``` ```
### arco-pc-backup 3tb toshiba ### arco-pc-backup 3tb toshiba
``` ```
restic -r b2:arco-pc-backup:/mnt/harddrive init restic -r b2:arco-pc-backup:/mnt/harddrive init
``` ```
@ -57,8 +53,22 @@ restic -r b2:arco-pc-backup:/mnt/harddrive snapshots
restic -r b2:arco-pc-backup:/mnt/harddrive restore --target "/mnt/storage" (snapshot) restic -r b2:arco-pc-backup:/mnt/harddrive restore --target "/mnt/storage" (snapshot)
``` ```
### realstickman-xyz-backup root ### hydra-server-backup /etc/nginx
```bash
restic -r b2:hydra-server-backup:/etc/nginx init
```
```bash
restic -r b2:hydra-server-backup:/etc/nginx backup --verbose "/etc/nginx"
```
```bash
restic -r b2:hydra-server-backup:/etc/nginx snapshots
```
```bash
restic -r b2:hydra-server-backup:/etc/nginx restore --target "/etc/nginx" <snapshot>
```
### realstickman-xyz-backup root
```bash ```bash
restic -r b2:realstickman-xyz-backup:root init restic -r b2:realstickman-xyz-backup:root init
``` ```
@ -73,7 +83,6 @@ restic -r b2:realstickman-xyz-backup:root restore --target "/root" <snapshot>
``` ```
### realstickman-xyz-backup etc ### realstickman-xyz-backup etc
```bash ```bash
restic -r b2:realstickman-xyz-backup:etc init restic -r b2:realstickman-xyz-backup:etc init
``` ```
@ -88,7 +97,6 @@ restic -r b2:realstickman-xyz-backup:etc restore --target "/etc" <snapshot>
``` ```
### nextcloud-realstickman-backup var ### nextcloud-realstickman-backup var
``` ```
restic -r b2:nextcloud-realstickman-backup:var init restic -r b2:nextcloud-realstickman-backup:var init
``` ```