Skip to content

Commit 03817fa

Browse files
riemersfabaff
authored andcommitted
Updated information (home-assistant#2572)
* Updated information Python script was updated to exclude folders/files so that you don't copy everything. * Minor changes
1 parent d7e48fc commit 03817fa

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

source/_docs/ecosystem/backup/backup_dropbox.markdown

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,35 @@ Backing up and regularly syncing your Home Assistant configuration to [Dropbox](
1414

1515
### {% linkable_title Requirements %}
1616

17-
You need 2 parts in order to get it working correctly.
17+
You need two parts in order to get it working correctly.
1818

19-
Become the user you run homeassistant from.
19+
Become the user that run Home Assistant.
2020

21-
- A seperate python script that syncs a specific folder. Which can be found [here](https://gist.github.com/riemers/31e3350041fd3e47e489cbc811209d6f)
21+
- A seperate Python script that syncs a specific folder. Which can be found [here](https://gist.github.com/riemers/31e3350041fd3e47e489cbc811209d6f)
2222
- The excellent [dropbox uploader script](https://github.com/andreafabrizi/Dropbox-Uploader/blob/master/dropbox_uploader.sh) you can grab the .sh file only.
2323

2424
Download those files to a folder of your liking, after that edit both files and change paths accordingly.
25-
### {% linkable_title Step 1: Linking your dropbox account %}
25+
26+
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.
27+
28+
### {% linkable_title Step 1: Linking your Dropbox account %}
2629

2730
```bash
2831
$ chmod +x dropbox_uploader.sh
2932
$ ./dropbox_uploader.sh
3033
```
3134
Follow the instructions you see on your screen.
3235

33-
### {% linkable_title Step 2: Running the dropbox uploader %}
36+
### {% linkable_title Step 2: Running the Dropbox uploader %}
3437

35-
Go to the folder you have placed dropbox.py.
38+
Go to the folder you have placed `dropbox.py`.
3639

3740
```bash
3841
$ python dropbox.py
3942
```
4043

4144
The first time can take a lot of time since it will upload all your files!
42-
Do note, this will **backup your passwords to dropbox too**
45+
Do note, this will **backup your passwords to Dropbox**.
4346

4447
### {% linkable_title Automate the backup %}
4548

@@ -49,5 +52,3 @@ Add it to your crontab, edit the **path/to** part.
4952
```bash
5053
$ (crontab -l 2>/dev/null; echo "0 3 * * * python /path/to/dropbox.py") | crontab -
5154
```
52-
53-
_The python script is very crude, there is room for improvement with regards to not backing up certain files like cache or files that will be installed by HA again after reinstall. But it gets the job done._

0 commit comments

Comments
 (0)