Overview Hooks excluding Files Forget Policy Cron Docker Volumes
1curl -s https://raw.githubusercontent.com/CupCakeArmy/autorestic/master/install.sh | bash
1vim .autorestic.yml
For a quick overview:
locations
can be seen as the inputs and backends
the output where the data is stored and backed up.location
can have one or multiple backends
for redudancy.backend
can also be the target for multiple locations
1locations:
2 home:
3 from: /home/me
4 to: remote
5
6 important:
7 from: /path/to/important/stuff
8 to:
9 - remote
10 - hdd
11
12backends:
13 remote:
14 type: s3
15 path: 's3.amazonaws.com/bucket_name'
16 AWS_ACCESS_KEY_ID: account_id
17 AWS_SECRET_ACCESS_KEY: account_key
18
19 hdd:
20 type: local
21 path: /mnt/my_external_storage
1autorestic check -a
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.
1autorestic backup -a
This will do a backup of all locations.
1autorestic restore -l home --from hdd --to /path/where/to/restore
This will restore the location home
from the backend hdd
to the given path.