2020-09-30 18:19:49 +02:00
|
|
|
# Restic repos:
|
2020-05-16 11:47:54 +02:00
|
|
|
|
2020-09-30 18:19:49 +02:00
|
|
|
## B2 backups
|
2020-05-31 13:10:45 +02:00
|
|
|
|
2020-09-30 18:27:21 +02:00
|
|
|
```bash
|
2020-09-30 18:19:49 +02:00
|
|
|
export B2_ACCOUNT_ID=
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-09-30 18:19:49 +02:00
|
|
|
export B2_ACCOUNT_KEY=
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
2020-06-03 18:20:39 +02:00
|
|
|
|
2020-09-30 18:27:21 +02:00
|
|
|
### arco-pc-backup home
|
|
|
|
|
|
|
|
```bash
|
2020-05-31 13:10:45 +02:00
|
|
|
restic -r b2:arco-pc-backup:/home/marc init
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-08-10 21:49:48 +02:00
|
|
|
restic -r b2:arco-pc-backup:/home/marc backup --verbose "/home/marc/" --exclude-file=/home/marc/Dokumente/home-exclude.txt
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-06-03 18:20:39 +02:00
|
|
|
restic -r b2:arco-pc-backup:/home/marc snapshots
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-08-10 21:49:48 +02:00
|
|
|
restic -r b2:arco-pc-backup:/home/marc restore --target "/home/marc/" <snapshot>
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
### arco-pc-backup timeshift
|
2020-06-01 21:37:19 +02:00
|
|
|
|
2020-09-30 18:27:21 +02:00
|
|
|
```bash
|
2020-06-01 21:37:19 +02:00
|
|
|
restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots init
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-09-30 18:17:22 +02:00
|
|
|
sudo -E restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots backup --verbose "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/snapshots/"
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-06-03 18:20:39 +02:00
|
|
|
restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots snapshots
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-08-10 21:49:48 +02:00
|
|
|
restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots restore --target "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/snapshots/" <snapshot>
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
### arco-pc-backup consoles
|
2020-05-31 13:10:45 +02:00
|
|
|
|
2020-09-30 18:27:21 +02:00
|
|
|
```bash
|
2020-06-28 23:05:36 +02:00
|
|
|
restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles init
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-06-28 23:05:36 +02:00
|
|
|
restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles backup --verbose "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/Consoles"
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-06-28 23:05:36 +02:00
|
|
|
restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles snapshots
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-08-10 21:49:48 +02:00
|
|
|
restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles restore --target "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/Consoles" <snapshot>
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
2020-06-28 23:05:36 +02:00
|
|
|
|
2020-09-30 18:27:21 +02:00
|
|
|
### realstickman-xyz-backup root
|
2020-06-09 18:13:07 +02:00
|
|
|
|
2020-09-30 18:27:21 +02:00
|
|
|
```bash
|
2020-07-17 11:24:37 +02:00
|
|
|
restic -r b2:realstickman-xyz-backup:root init
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-07-17 11:24:37 +02:00
|
|
|
restic -r b2:realstickman-xyz-backup:root backup --verbose "/root"
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-07-17 11:24:37 +02:00
|
|
|
restic -r b2:realstickman-xyz-backup:root snapshots
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-08-10 21:49:48 +02:00
|
|
|
restic -r b2:realstickman-xyz-backup:root restore --target "/root" <snapshot>
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
2020-07-17 11:24:37 +02:00
|
|
|
|
2020-09-30 18:27:21 +02:00
|
|
|
### realstickman-xyz-backup etc
|
|
|
|
|
|
|
|
```bash
|
2020-07-17 11:24:37 +02:00
|
|
|
restic -r b2:realstickman-xyz-backup:etc init
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-07-17 11:24:37 +02:00
|
|
|
restic -r b2:realstickman-xyz-backup:etc backup --verbose "/etc"
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-08-10 21:49:48 +02:00
|
|
|
restic -r b2:realstickman-xyz-backup:etc snapshots
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|
|
|
|
```bash
|
2020-09-30 18:17:22 +02:00
|
|
|
restic -r b2:realstickman-xyz-backup:etc restore --target "/etc" <snapshot>
|
2020-09-30 18:27:21 +02:00
|
|
|
```
|