Automatically create Hass.io snapshots to remote server using
SCP
orSMB
protocol.
This addon is based on overkill32/hassio-remote-backup addon.
When the add-on is started the following happens:
- Crontab backup entry is beeing created according to schedule defined in configuration.
- Crond starts and takes care of backup script execution.
- When the right time comes, snapshot are being created locally with a timestamp name, e.g. Automatic backup 2018-03-04 04:00.
- The snapshot are copied to the specified remote location using
SCP
orSMB
protocol. - The local backup are removed locally again.
Note the filenames of the backup are given by their assigned slug.
- In Home-assistant supervisor panel go to
Add-on-store
and from options menu clickRepositories
. - Paste the repository link into
Add reposotory
field and select add. - Select addon from
Add-on store
and click install.
Parameter | Required | Description |
---|---|---|
ssh |
Ssh remote backup config | |
host |
No | The hostname/url to the remote server. |
port |
No | The port to use to SCP on to the server. |
user |
No | Username to use for SCP . |
key |
No | The ssh key to use. Not that it should NOT be password protected. |
smb |
SMB remote backup config | |
host |
No | The hostname/url to the remote server. |
user |
No | Username to use for SMB . |
password |
No | The password to use when connection to SMB share. |
remote_directory |
Yes | The directory to put the backups on the remote server. |
snapshot_password |
No | If set then the backup will be contained in a password protected zip |
keep_local_backup |
No | Control how many local backups you want to preserve. Default ("" ) is to keep no local backups created from this addon. If all then all loocal backups will be preserved. A positive integer will determine how many of the latest backups will be preserved. Note this will delete other local backups created outside this addon. |
schedule |
yes | Backup schedule execution in cron format. Ex: 1 1 * * * (Everyday at 1:01am) |
Add-on configuration:
smb:
host: contoso.corp
user: contoso
password: contoso1234
ssh:
host: ''
port: 22
user: ''
key: []
remote_directory: hassio/backup/
snapshot_password: ''
keep_local_backup: ''
schedule: 4 0 * * *
Note: This is just an example, don't copy and past it! Create your own!
This repository keeps a change log. The format of the log is based on Keep a Changelog.
Releases are based on Semantic Versioning, and use the format
of MAJOR.MINOR.PATCH
. In a nutshell, the version will be incremented
based on the following:
MAJOR
: Incompatible or major changes.MINOR
: Backwards-compatible new features and enhancements.PATCH
: Backwards-compatible bugfixes and package updates.