86 lines
2.1 KiB
Markdown
Raw Normal View History

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