configs/arch-config/Dokumente/restic.md

86 lines
2.1 KiB
Markdown
Raw Normal View History

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