Change restic to generalised versions
This commit is contained in:
parent
bcbd6df4ff
commit
f07e15a130
@ -2,20 +2,25 @@
|
||||
|
||||
## Local backups
|
||||
|
||||
### Generalised version
|
||||
|
||||
#### Initialise repository
|
||||
`restic -r (storage path) init`
|
||||
|
||||
#### Create backup
|
||||
`restic -r (storage path) backup --verbose "(backup path)" --exclude-file=(exclude file)`
|
||||
|
||||
#### Show snapshots
|
||||
`restic -r (storage path) snapshots`
|
||||
|
||||
#### Restore snapshot
|
||||
`restic -r (storage path) restore --target "(backup path)" (snapshot)`
|
||||
|
||||
### lupusregina-backup home
|
||||
There is currently a problem in go that makes this command fail. Run the following command before retrying: `export GODEBUG=asyncpreemptoff=1`
|
||||
```
|
||||
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)
|
||||
```
|
||||
Storage path: `/mnt/backups/arco-pc/home/marc`
|
||||
Backup path: `/home/marc`
|
||||
Exclude file: `/home/marc/GitProjects/config/Dokumente/home-exclude.txt`
|
||||
|
||||
## B2 backups
|
||||
```bash
|
||||
@ -48,62 +53,23 @@ Clean up unreferenced data. "-n" for dry run
|
||||
`restic -r b2:(bucket):(path) prune`
|
||||
|
||||
### lupusregina-backup home
|
||||
```bash
|
||||
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/GitProjects/config/Dokumente/home-exclude.txt
|
||||
```
|
||||
```bash
|
||||
restic -r b2:arco-pc-backup:/home/marc snapshots
|
||||
```
|
||||
```bash
|
||||
restic -r b2:arco-pc-backup:/home/marc restore --target "/home/marc/" (snapshot)
|
||||
```
|
||||
Bucket: `arco-pc-backup`
|
||||
Path: `/home/marc`
|
||||
Exclude file: `/home/marc/GitProjects/config/Dokumente/home-exclude.txt`
|
||||
|
||||
### lupusregina-backup 3tb toshiba
|
||||
```
|
||||
restic -r b2:arco-pc-backup:/mnt/harddrive init
|
||||
```
|
||||
```
|
||||
restic -r b2:arco-pc-backup:/mnt/harddrive backup --verbose "/mnt/storage" --exclude-file=/home/marc/GitProjects/config/Dokumente/storage-exclude.txt --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)
|
||||
```
|
||||
Bucket: `arco-pc-backup`
|
||||
Path: `/mnt/harddrive`
|
||||
Exclude file: `/home/marc/GitProjects/config/Dokumente/storage-exclude.txt`
|
||||
|
||||
### albedo-server-backup var/www
|
||||
```
|
||||
restic -r b2:hydra-server-backup:var/www init
|
||||
```
|
||||
```
|
||||
restic -r b2:hydra-server-backup:var/www backup --verbose "/var/www"
|
||||
```
|
||||
```
|
||||
restic -r b2:hydra-server-backup:var/www snapshots
|
||||
```
|
||||
```
|
||||
restic -r b2:hydra-server-backup:var/www restore --target "/var/www" <snapshot>
|
||||
```
|
||||
Bucket: `hydra-server-backup`
|
||||
Path: `/var/www`
|
||||
|
||||
### albedo-server-backup etc
|
||||
```
|
||||
restic -r b2:hydra-server-backup:etc init
|
||||
```
|
||||
```
|
||||
restic -r b2:hydra-server-backup:etc backup --verbose "/etc"
|
||||
```
|
||||
```
|
||||
restic -r b2:hydra-server-backup:etc snapshots
|
||||
```
|
||||
```
|
||||
restic -r b2:hydra-server-backup:etc restore --target "/etc" <snapshot>
|
||||
```
|
||||
Bucket: `hydra-server-backup`
|
||||
Path: `/etc`
|
||||
|
||||
### aura-server-backup etc
|
||||
```
|
||||
restic -r b2:aura-server-backup:etc snapshots
|
||||
```
|
||||
Bucket: `aura-server-backup`
|
||||
Path: `/etc`
|
||||
|
Loading…
Reference in New Issue
Block a user