# Autorestic | 🎛 Config File

Star
Created With

# link🎛 Config File

## linkPath

By default autorestic searches for a `.autorestic.yml` file in the current directory and your home folder.

- `./.autorestic.yml`
- `~/.autorestic.yml`

You can also specify a custom file with the `-c path/to/some/config.yml`

> ⚠️ 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!

## linkExample configuration

    .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: b2
    15    path: 'myBucket:backup/home'
    16    B2_ACCOUNT_ID: account_id
    17    B2_ACCOUNT_KEY: account_key
    18
    19  hdd:
    20    type: local
    21    path: /mnt/my_external_storage

🎛 Config File Path Example configuration