home-assistant.io/source/_docs/ecosystem/backup/backup_dropbox.markdown
Ashton Campbell 9e6b9cb658 Fixed common spelling mistakes (#3544)
* fix spelling errors

* Update binary_sensor.xiaomi_aqara.markdown

Reverts to previous revision before spell check.

* Update tellstick.markdown

Reverts to previous revision before spell check.

* Update owntracks_two_mqtt_broker.markdown

Reverts to previous revision before spell check.

* Update cla_sign.html

Reverts to previous revision before spell check.

* Update credits.markdown

Reverts to previous revision before spell check.

* Update api.markdown

Fixed spell checker changing noone to no one.
2017-10-08 00:39:32 +02:00

1.9 KiB

layout, title, description, date, sidebar, comments, sharing, footer, redirect_from
layout title description date sidebar comments sharing footer redirect_from
page Configuration Backup to Dropbox Instructions how backup your Home Assistant configuration to Dropbox 2017-04-24 18:00 true false true true /cookbook/dropboxbackup/

Backing up and regularly syncing your Home Assistant configuration to Dropbox similar to Github Backup

{% linkable_title Requirements %}

You need two parts in order to get it working correctly.

Become the user that run Home Assistant.

  • A separate Python script that syncs a specific folder. Which can be found here
  • The excellent dropbox uploader script you can grab the .sh file only.

Download those files to a folder of your liking, after that edit both files and change paths accordingly.

In the Python script you can specify which files and directories should be excluded. This allows you to skip secrets.yaml or the deps folder.

{% linkable_title Step 1: Linking your Dropbox account %}

$ chmod +x dropbox_uploader.sh
$ ./dropbox_uploader.sh

Follow the instructions you see on your screen.

{% linkable_title Step 2: Running the Dropbox uploader %}

Go to the folder you have placed dropbox.py.

$ python dropbox.py

The first time can take a lot of time since it will upload all your files! Do note, this will backup your passwords to Dropbox.

{% linkable_title Automate the backup %}

So you just made a full backup, next time you want it to be done automatically. Since your database can change and so do other files over time. Add it to your crontab, edit the path/to part.

$ (crontab -l 2>/dev/null; echo "0 3 * * * python /path/to/dropbox.py") | crontab -