mxsr revised this gist 9 months ago. Go to revision
1 file changed, 9 insertions, 8 deletions
resticprofile.md
| @@ -1,19 +1,20 @@ | |||
| 1 | 1 | ```bash | |
| 2 | - | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" forget --password-file ./password.key --tag nextcloud --keep-last 1 | |
| 3 | - | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" forget --password-file ./password.key --tag nextcloud --unsafe-allow-remove-all | |
| 2 | + | restic -r "REPO_URL" forget --password-file ./password.key --tag nextcloud --keep-last 1 | |
| 3 | + | restic -r "REPO_URL" forget --password-file ./password.key --tag nextcloud --unsafe-allow-remove-all | |
| 4 | 4 | ``` | |
| 5 | 5 | ||
| 6 | 6 | ```bash | |
| 7 | - | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" prune --password-file ./password.key --max-unused 0 | |
| 8 | - | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" repair index --password-file ./password.key | |
| 9 | - | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" check --password-file ./password.key | |
| 7 | + | restic -r "REPO_URL" prune --password-file ./password.key --max-unused 0 | |
| 8 | + | restic -r "REPO_URL" repair index --password-file ./password.key | |
| 9 | + | restic -r "REPO_URL" check --password-file ./password.key | |
| 10 | + | restic -r "REPO_URL" check --password-file ./password.key --read-data | |
| 10 | 11 | ``` | |
| 11 | 12 | ||
| 12 | 13 | ```bash | |
| 13 | - | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" snapshots --password-file ./password.key --group-by tags | |
| 14 | - | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" snapshots --password-file ./password.key --tag immich-data --latest 2 | |
| 14 | + | restic -r "REPO_URL" snapshots --password-file ./password.key --group-by tags | |
| 15 | + | restic -r "REPO_URL" snapshots --password-file ./password.key --tag immich-data --latest 2 | |
| 15 | 16 | ``` | |
| 16 | 17 | ||
| 17 | 18 | ```bash | |
| 18 | - | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" mount --password-file ./password.key /tmp/restic/ | |
| 19 | + | restic -r "REPO_URL" mount --password-file ./password.key /tmp/restic/ | |
| 19 | 20 | ``` | |
mxsr revised this gist 9 months ago. Go to revision
1 file changed, 8 insertions, 8 deletions
resticprofile.md
| @@ -1,19 +1,19 @@ | |||
| 1 | 1 | ```bash | |
| 2 | - | resticprofile -c config.yml forget --password-file ./password.key --tag nextcloud --keep-last 1 | |
| 3 | - | resticprofile -c config.yml forget --password-file ./password.key --tag nextcloud --unsafe-allow-remove-all | |
| 2 | + | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" forget --password-file ./password.key --tag nextcloud --keep-last 1 | |
| 3 | + | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" forget --password-file ./password.key --tag nextcloud --unsafe-allow-remove-all | |
| 4 | 4 | ``` | |
| 5 | 5 | ||
| 6 | 6 | ```bash | |
| 7 | - | resticprofile -c config.yml prune --password-file ./password.key --max-unused 0 | |
| 8 | - | resticprofile -c config.yml repair index --password-file ./password.key | |
| 9 | - | resticprofile -c config.yml check --password-file ./password.key | |
| 7 | + | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" prune --password-file ./password.key --max-unused 0 | |
| 8 | + | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" repair index --password-file ./password.key | |
| 9 | + | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" check --password-file ./password.key | |
| 10 | 10 | ``` | |
| 11 | 11 | ||
| 12 | 12 | ```bash | |
| 13 | - | resticprofile -c config.yml snapshots --password-file ./password.key --group-by tags | |
| 14 | - | resticprofile -c config.yml snapshots --password-file ./password.key --tag immich-data --latest 2 | |
| 13 | + | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" snapshots --password-file ./password.key --group-by tags | |
| 14 | + | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" snapshots --password-file ./password.key --tag immich-data --latest 2 | |
| 15 | 15 | ``` | |
| 16 | 16 | ||
| 17 | 17 | ```bash | |
| 18 | - | TARGET_REPOSITORY="rest:https://asdb:defdg@migpdojv.repo.borgbase.com" resticprofile -c config.yml mount --password-file ./password.key /tmp/restic/ | |
| 18 | + | restic -r "rest:https://asdb:defdg@migpdojv.repo.borgbase.com" mount --password-file ./password.key /tmp/restic/ | |
| 19 | 19 | ``` | |
mxsr revised this gist 9 months ago. Go to revision
1 file changed, 11 insertions, 7 deletions
resticprofile.md
| @@ -1,15 +1,19 @@ | |||
| 1 | 1 | ```bash | |
| 2 | - | resticprofile -c config.yml forget --tag nextcloud --keep-last 1 | |
| 3 | - | resticprofile -c config.yml forget --tag nextcloud --unsafe-allow-remove-all | |
| 2 | + | resticprofile -c config.yml forget --password-file ./password.key --tag nextcloud --keep-last 1 | |
| 3 | + | resticprofile -c config.yml forget --password-file ./password.key --tag nextcloud --unsafe-allow-remove-all | |
| 4 | 4 | ``` | |
| 5 | 5 | ||
| 6 | 6 | ```bash | |
| 7 | - | resticprofile -c config.yml prune --max-unused 0 | |
| 8 | - | resticprofile -c config.yml repair index | |
| 9 | - | resticprofile -c config.yml check | |
| 7 | + | resticprofile -c config.yml prune --password-file ./password.key --max-unused 0 | |
| 8 | + | resticprofile -c config.yml repair index --password-file ./password.key | |
| 9 | + | resticprofile -c config.yml check --password-file ./password.key | |
| 10 | 10 | ``` | |
| 11 | 11 | ||
| 12 | 12 | ```bash | |
| 13 | - | resticprofile -c config.yml snapshots --group-by tags | |
| 14 | - | resticprofile -c config.yml snapshots --tag immich-data --latest 2 | |
| 13 | + | resticprofile -c config.yml snapshots --password-file ./password.key --group-by tags | |
| 14 | + | resticprofile -c config.yml snapshots --password-file ./password.key --tag immich-data --latest 2 | |
| 15 | + | ``` | |
| 16 | + | ||
| 17 | + | ```bash | |
| 18 | + | TARGET_REPOSITORY="rest:https://asdb:defdg@migpdojv.repo.borgbase.com" resticprofile -c config.yml mount --password-file ./password.key /tmp/restic/ | |
| 15 | 19 | ``` | |
mxsr revised this gist 9 months ago. Go to revision
1 file changed, 15 insertions
resticprofile.md(file created)
| @@ -0,0 +1,15 @@ | |||
| 1 | + | ```bash | |
| 2 | + | resticprofile -c config.yml forget --tag nextcloud --keep-last 1 | |
| 3 | + | resticprofile -c config.yml forget --tag nextcloud --unsafe-allow-remove-all | |
| 4 | + | ``` | |
| 5 | + | ||
| 6 | + | ```bash | |
| 7 | + | resticprofile -c config.yml prune --max-unused 0 | |
| 8 | + | resticprofile -c config.yml repair index | |
| 9 | + | resticprofile -c config.yml check | |
| 10 | + | ``` | |
| 11 | + | ||
| 12 | + | ```bash | |
| 13 | + | resticprofile -c config.yml snapshots --group-by tags | |
| 14 | + | resticprofile -c config.yml snapshots --tag immich-data --latest 2 | |
| 15 | + | ``` | |