在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):sabeechen/hassio-google-drive-backup开源软件地址(OpenSource Url):https://github.com/sabeechen/hassio-google-drive-backup开源编程语言(OpenSource Language):Python 46.9%开源软件介绍(OpenSource Introduction):Home Assistant Google Drive BackupAboutA complete and easy way to back up Home Assistant to Google Drive. This is for you if you want to quickly set up a backup strategy without much fuss. It doesn't require much familiarity with Home Assistant, its architecture, or Google Drive. Detailed install instructions are provided below but you can just add this repo, click install and open the Web UI. It will tell you what to do and only takes a few simple clicks. Detailed install instructions are below if that doesn't seem clear. Features Overview
The UpsellThis addon has been featured by %YOUR_FAVORITE_HA_YOUTUBER% and is often listed as an essential addon when starting with Home Assistant. Here are some videos about it from others if you'd like to get an idea of what using it looks like or what the community thinks:
Detailed Install Instructions
ConfigurationAfter you start the addon you have an opportunity to review your settings within the addon's Web-UI before you connect it to Google Drive. It is recommended to modify the setting this way because the UI makes it easy and explains what each option does. If you'd still prefer use edit your setting in yaml or through the supervisor, the list of configurable options with explanations is available here. FAQIs this for me?Most likely, yes. This addon is focused on making backup simple, reliable, easy to understand, and well supported. It provides clear error messages when things go wrong and explains how you fix it. It has a fancy-pants web interface you can look at to see how things are going. To do that it sacrafices customizability. It can't:
If you want a backup strategy highly customized to your needs, you might be better off hacking something together with automations and the samba addon, for example. This project started out as me doing exactly that for myself, and now its grown into a mature project with ~100k people using it all over the world. Weird. I never thought I'd be getting community pressure to translate the UI into portugese, but here I am dealing with those kinds of problems now. How will I know this will be there when I need it?Home Assistant is notorious for failing silently, and your backups aren't something you want to find is broken after an erroneous comma makes you unable to turn on any of the lights in your house. That's why I've added some functionality to keep you informed if things start to break. If the add-on runs into trouble and gets more than 12 hours behind its schedule, you'll know in two ways:
Redundancy is the foundation of reliability. With local backups, Google Drive's backups, and two flavors of notification I think you're covered. How do I restore a backup?The backups this addon creates are the same backups that Home Assistant makes by itself and can be restored using any of the methods documented elsewhere. Here are few pointers to get you started.
I never look at HA notifications. Can I show information about backups in my Home Assistant Interface?The add-on creates a few sensors that show the status of backups that you could trigger automations off of. Lovelace Cardtype: conditional
conditions:
- entity: binary_sensor.backups_stale
state_not: "off"
card:
type: markdown
content: >-
Backups are stale! Please visit the "Home Assistant Google Drive Backup" add-on
status page for details.
title: Stale Backups!` Mobile NotificationsIf you have android or iOS, other notifications set up, this automation would let you know if things go stale: - alias: Backups went stale
id: 'backups_went_stale'
trigger:
- platform: state
entity_id: binary_sensor.backups_stale
from: 'off'
to: 'on'
condition: []
action:
- service: notify.android
data:
title: Backups are Stale
message: Please visit the 'Home Assistant Google Drive Backup ' add-on status page
for details. You could automate anything off of this binary sensor. The add-on also exposes a sensor Can I specify what time of day backups should be created?You can add Can I keep older backups for longer?
The add-on can be configured to keep generational backups on daily, weekly, monthly, and yearly intervals instead of just deleting the oldest backup. This can be useful if, for example, you've made an erroneous change but haven't noticed for several days and all the backups before the change are gone. With a configuration setting like this... generational_days: 3
generational_weeks: 4
generational_months: 12
generational_years: 5 ... a backup will be kept for the last 3 days, the last 4 weeks, the last 12 months, and the last 5 years. Additionally, you may configure the day of the week, day of the month, and day of the year that weekly, monthly, and yearly backups are maintained. generational_days: 3
generational_weeks: 4
generational_day_of_week: "mon" # Can be 'mon', 'tue', 'wed', 'thu', 'fri', 'sat' or 'sun' (defaults to 'mon')
generational_months: 12
generational_day_of_month: 1 # Can be 1 through 31 (defaults to 1)
generational_years: 5
generational_day_of_year: 1 # can be 1 through 365 (defaults to 1)
I already have something that creates backups on a schedule. Can I use this just to backup to Google Drive?If you set ' Can I give backups a different name?The config option
Will this ever upload to Dropbox/OnDrive/FTP/SMB/MyFavoriteProtocol?Most likely no. I started this project to solve a specific problem I had, storing backups in a redundant cloud provider without having to write a bunch of buggy logic and automations. It might seem like a small change to make this work with another cloud provider, but trust me. I wrote this version of it, and it's not a simple change. I don't have the time to do it. But Google reads my emails!Maybe. You can encrypt your backups by giving a password in the add-on's options. Does this store any personal information?On a matter of principle, I only keep track of and store information necessary for the add-on to function. To the best of my knowledge the scope of this is:
This invariably means that I have a very limited ability to see how many people are using the add-on or if it is functioning well. If you do like it, feel free to shoot me an email at [email protected] or star this repo on GitHub, it helps keep me motivated. If you run into problems or think a new feature would be nice, file an issue on GitHub. Can I use my own Google API information to authenticate instead of yours?On the first "Getting Started" page of the add-on underneath the "Authenticate with Google Drive" button is a link that lets you enter your own Can I permanently save a backup so it doesn't get cleaned up?Select "Never Delete" from the menu next to a backup in the add-on's Web UI. You can choose to keep it from being deleted in Home Assistant or Google Drive. When you do this, the backups will no longer count against the maximum number of backups allowed in Google Drive or Home Assistant. Alternatively, you can move a backup in Google Drive out of the backup folder. the add-on will ignore any files that aren't in the backup folder. Just don't move them back in accidentally since they'll get "cleaned up" like any old backup after a while :) What do I do if I've found an error?If the add-on runs into trouble and can't back up, you should see a big red box with the text of the error on the status webpage. This should include a link to pre-populate a new issue in GitHub, which I'd encourage you to do. Additionally, you can set the add-on config option Will this fill up my Google Drive? Why are my backups so big?You'll need to take care to ensure you don't configure this to blow up your Google Drive. You might want to consider:
I want my backups to sync to my Desktop computer tooThat's not a question but you can use Google Drive Backup & Sync to download anything in your Google Drive to your desktop/laptop automatically. I configured this to only keep 4 backups in Drive and Home Assistant, but sometimes I can see there are 5?The add-on will only delete an old backup if a new one exists to replace it, so it will create a 5th one before deleting the first. This is a reliability/disk usage compromise that favors reliability because otherwise, it would have to delete an old backup (leaving only 3) before it could guarantee the 4th one exists. Can I exclude specific sub-folders from my backup?The add-on uses the supervisor to create backups, and the supervisor only permits you to include or exclude the 5 main folders (home assistant configuration, share, SSL, media, and local add-ons). Excluding specific subfolders, or only including specific subfolders from a backup isn't possible today. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论