Changed everything to look like code blocks

This commit is contained in:
RealStickman 2020-09-30 18:27:21 +02:00
parent de803745ce
commit 459788fdbe

View File

@ -2,44 +2,84 @@
## B2 backups ## B2 backups
```bash
export B2_ACCOUNT_ID= export B2_ACCOUNT_ID=
```
```bash
export B2_ACCOUNT_KEY= export B2_ACCOUNT_KEY=
```
### arco-pc-backup home: ### arco-pc-backup home
```bash
restic -r b2:arco-pc-backup:/home/marc init restic -r b2:arco-pc-backup:/home/marc init
```
```bash
restic -r b2:arco-pc-backup:/home/marc backup --verbose "/home/marc/" --exclude-file=/home/marc/Dokumente/home-exclude.txt restic -r b2:arco-pc-backup:/home/marc backup --verbose "/home/marc/" --exclude-file=/home/marc/Dokumente/home-exclude.txt
```
```bash
restic -r b2:arco-pc-backup:/home/marc snapshots restic -r b2:arco-pc-backup:/home/marc snapshots
```
```bash
restic -r b2:arco-pc-backup:/home/marc restore --target "/home/marc/" <snapshot> restic -r b2:arco-pc-backup:/home/marc restore --target "/home/marc/" <snapshot>
```
#arco-pc-backup timeshift: ### arco-pc-backup timeshift
```bash
restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots init restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots init
#sudo chmod -Rv 777 /mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/ ```
```bash
sudo -E restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots backup --verbose "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/snapshots/" sudo -E restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots backup --verbose "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/snapshots/"
```
```bash
restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots snapshots restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots snapshots
```
```bash
restic -r b2:arco-pc-backup:/mnt/harddrive/timeshift/snapshots restore --target "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/timeshift/snapshots/" <snapshot> 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: ### arco-pc-backup consoles
```bash
restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles init restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles init
```
```bash
restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles backup --verbose "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/Consoles" restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles backup --verbose "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/Consoles"
```
```bash
restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles snapshots restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles snapshots
```
```bash
restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles restore --target "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/Consoles" <snapshot> restic -r b2:arco-pc-backup:/mnt/harddrive/Consoles restore --target "/mnt/1d90c4d5-21d2-4455-bb4a-814de8496744/Consoles" <snapshot>
```
#rpi3-backup ### realstickman-xyz-backup root
restic -r b2:rpi3-backup:timeshift/snapshots init
sudo chmod -Rv 777 /run/timeshift/backup/timeshift
restic -r b2:rpi3-backup:timeshift/snapshots backup --verbose "/run/timeshift/backup/timeshift/snapshots"
restic -r b2:rpi3-backup:timeshift/snapshots snapshots
restic -r b2:rpi3-backup:timeshift/snapshots restore --target "/run/timeshift/backup/timeshift/snapshots" <snapshot>
#realstickman-xyz-backup root ```bash
restic -r b2:realstickman-xyz-backup:root init restic -r b2:realstickman-xyz-backup:root init
```
```bash
restic -r b2:realstickman-xyz-backup:root backup --verbose "/root" restic -r b2:realstickman-xyz-backup:root backup --verbose "/root"
```
```bash
restic -r b2:realstickman-xyz-backup:root snapshots restic -r b2:realstickman-xyz-backup:root snapshots
```
```bash
restic -r b2:realstickman-xyz-backup:root restore --target "/root" <snapshot> restic -r b2:realstickman-xyz-backup:root restore --target "/root" <snapshot>
```
#realstickman-xyz-backup etc ### realstickman-xyz-backup etc
```bash
restic -r b2:realstickman-xyz-backup:etc init restic -r b2:realstickman-xyz-backup:etc init
```
```bash
restic -r b2:realstickman-xyz-backup:etc backup --verbose "/etc" restic -r b2:realstickman-xyz-backup:etc backup --verbose "/etc"
```
```bash
restic -r b2:realstickman-xyz-backup:etc snapshots restic -r b2:realstickman-xyz-backup:etc snapshots
```
```bash
restic -r b2:realstickman-xyz-backup:etc restore --target "/etc" <snapshot> restic -r b2:realstickman-xyz-backup:etc restore --target "/etc" <snapshot>
```