18 lines
868 B
Markdown
18 lines
868 B
Markdown
Inspired by the [blog](https://www.ericbette.com/configuring-a-remote-backup-solution-using-restic-and-rclone)
|
|
|
|
# List of commands:
|
|
|
|
## Installation
|
|
- Install restic and rclone baremetal
|
|
|
|
## Setting up rclone:
|
|
- run: rclone config or follow the instructions on the provider (infomaniak in my case)
|
|
- run: rclone listremotes to confirm the server link creation
|
|
|
|
## Setting up backup repository with restic
|
|
- Save password in env variable, by running: echo export RESTIC_PASSWORD=my_password >> ~/.zshrc
|
|
- Initialize repository: restic -r rclone:example-remote:example-repo init
|
|
- Run the backup: restic -r rclone:example-remote:example-repo --verbose backup /path/to/backup
|
|
- List the snapshots: restic -r rclone:example-remote:example-repo snapshots
|
|
- Restore the backup: restic -r rclone:example-remote:example-repo restore latest --target /target --path "/target"
|