1$wget -qO - https://raw.githubusercontent.com/CupCakeArmy/autorestic/master/install.sh | bash
See installation for alternative options.
For a quick overview:
locationscan be seen as the inputs and
backendsthe output where the data is stored and backed up.
locationcan have one or multiple
backendcan also be the target for multiple
⚠️ WARNING ⚠️
Note that the data is automatically encrypted on the server. The key will be generated and added to your config file. Every backend will have a separate key. You should keep a copy of the keys or config file somewhere in case your server dies. Otherwise DATA IS LOST!
.autorestic.yml1version: 223locations:4 home:5 from: /home6 # Or multiple7 # from:8 # - /foo9 # - /bar10 to: remote1112 important:13 from: /path/to/important/stuff14 to:15 - remote16 - hdd1718backends:19 remote:20 type: s321 path: 's3.amazonaws.com/bucket_name'22 key: some-random-password-198rc79r8y1029c8yfewj8f1u0ef87yh198uoieufy23 env:24 AWS_ACCESS_KEY_ID: account_id25 AWS_SECRET_ACCESS_KEY: account_key2627 hdd:28 type: local29 path: /mnt/my_external_storage30 key: 'if not key is set it will be generated for you'
This checks if the config file has any issues. If this is the first time this can take longer as autorestic will setup the backends.
Now is good time to backup the config. After you run autorestic at least once we will add the generated encryption keys to the config.
1$autorestic backup -a
This will do a backup of all locations.
1$autorestic restore -l home --from hdd --to /path/where/to/restore
This will restore the location
home from the backend
hdd to the given path.