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