configs/arch-config/Dokumente/restic.md

104 lines
2.4 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-12-26 11:46:04 +01:00
## Local backups
2020-12-28 19:42:20 +01:00
### arco-pc-backup home
2020-12-26 11:46:04 +01:00
2020-12-28 19:42:20 +01:00
There is currently a problem in go that makes this command fail. Run the following command before retrying: `export GODEBUG=asyncpreemptoff=1`
2020-12-26 11:46:04 +01:00
```
restic init --repo /mnt/backups/arco-pc/home/marc
```
```
restic -r /mnt/backups/arco-pc/home/marc backup --verbose "/home/marc/" --exclude-file=/home/marc/GitProjects/config/Dokumente/home-exclude.txt
```
```
restic -r /mnt/backups/arco-pc/home/marc snapshots
```
```
restic -r /mnt/backups/arco-pc/home/marc restore --target "/home/marc" (snapshot)
```
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-12-26 11:46:04 +01:00
restic -r b2:arco-pc-backup:/home/marc restore --target "/home/marc/" (snapshot)
```
### arco-pc-backup 3tb toshiba
2020-06-01 21:37:19 +02:00
```
restic -r b2:arco-pc-backup:/mnt/harddrive init
```
```
2021-02-09 19:31:03 +01:00
sudo -E restic -r b2:arco-pc-backup:/mnt/harddrive backup --verbose "/mnt/storage" --exclude="/mnt/storage/.Trash-1000" --exclude="/mnt/storage/MediaLibrary/Handbrake/" --exclude="/mnt/storage/SteamLibrary" --limit-upload=2048
```
```
restic -r b2:arco-pc-backup:/mnt/harddrive snapshots
```
```
restic -r b2:arco-pc-backup:/mnt/harddrive restore --target "/mnt/storage" (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>
```
2021-01-15 20:06:08 +01:00
### nextcloud-realstickman-backup var
```
restic -r b2:nextcloud-realstickman-backup:var init
```
```
restic -r b2:nextcloud-realstickman-backup:var backup --verbose "/var"
```
```
restic -r b2:nextcloud-realstickman-backup:var snapshots
```
```
restic -r b2:nextcloud-realstickman-backup:var restore --target "/var" <snapshot>
```