You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_docs/ecosystem/backup/backup_dropbox.markdown
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -14,32 +14,35 @@ Backing up and regularly syncing your Home Assistant configuration to [Dropbox](
14
14
15
15
### {% linkable_title Requirements %}
16
16
17
-
You need 2 parts in order to get it working correctly.
17
+
You need two parts in order to get it working correctly.
18
18
19
-
Become the user you run homeassistant from.
19
+
Become the user that run Home Assistant.
20
20
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)
22
22
- The excellent [dropbox uploader script](https://github.com/andreafabrizi/Dropbox-Uploader/blob/master/dropbox_uploader.sh) you can grab the .sh file only.
23
23
24
24
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 %}
26
29
27
30
```bash
28
31
$ chmod +x dropbox_uploader.sh
29
32
$ ./dropbox_uploader.sh
30
33
```
31
34
Follow the instructions you see on your screen.
32
35
33
-
### {% linkable_title Step 2: Running the dropbox uploader %}
36
+
### {% linkable_title Step 2: Running the Dropbox uploader %}
34
37
35
-
Go to the folder you have placed dropbox.py.
38
+
Go to the folder you have placed `dropbox.py`.
36
39
37
40
```bash
38
41
$ python dropbox.py
39
42
```
40
43
41
44
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**.
43
46
44
47
### {% linkable_title Automate the backup %}
45
48
@@ -49,5 +52,3 @@ Add it to your crontab, edit the **path/to** part.
_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