# Autorestic | 🚀 Quickstart

Star
Created With

# link🚀 Quickstart

## linkInstallation

    1curl -s https://raw.githubusercontent.com/CupCakeArmy/autorestic/master/install.sh | bash

## linkWrite a simple config file

    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.
- One `location` can have one or multiple `backends` for redudancy.
- One `backend` can also be the target for multiple `locations`

    .autorestic.yml1locations:
    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

## linkCheck [Optional]

    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.

## linkBackup

    1autorestic backup -a

This will do a backup of all locations.

## linkRestore

    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.

🚀 Quickstart Installation Write a simple config file Check [Optional] Backup Restore