This repository was archived by the owner on Aug 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Update README.md #8
Open
GraysonCAdams
wants to merge
4
commits into
HBDK:main
Choose a base branch
from
GraysonCAdams:patch-1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,10 +1,60 @@ | ||||||
| # Snap-Shipper | ||||||
|
|
||||||
| This is a simple script to help you Ship those snapshots | ||||||
| An alternative way to upload snapshots that does not involve Google Drive or Dropbox. | ||||||
|
|
||||||
| This was made because i wanted a solution for automatically uploading my snapshots that didn't involve google drive or dropbox and as such this works right now, but if there is interest i would gladly try to make this more suitable for a wider audience. | ||||||
| **Supports** | ||||||
| - WebDAV (i.e. Nextcloud) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - Amazon S3 Bucket | ||||||
|
|
||||||
| ## future plans | ||||||
| ## Configuration example | ||||||
|
|
||||||
| ``` | ||||||
| DryRun: true | ||||||
| Folder: /backup | ||||||
| Sinks: | ||||||
| - Name: Your Webdav | ||||||
| WebDavClient: | ||||||
| webdav_hostname: 'https://Your-domæne/remote.php/dav/files/some-user/backups' | ||||||
| webdav_login: some-user | ||||||
| webdav_password: the password | ||||||
| - Name: AWS S3 | ||||||
| S3Client: | ||||||
| endpoint_url: 'https://s3.eu-west-1.amazonaws.com' | ||||||
| aws_access_key: <access key> | ||||||
| aws_secret_access_key: <secret access key> | ||||||
| bucket: <bucket name> | ||||||
| ``` | ||||||
|
|
||||||
| ## Running at an interval | ||||||
|
|
||||||
| You can run this add-on at an interval using Home Assistant automations. Here's an example: | ||||||
|
|
||||||
| **Backup snapshots every day at midnight** | ||||||
| ``` | ||||||
| alias: Backup snapshots | ||||||
| description: '' | ||||||
| trigger: | ||||||
| - platform: time | ||||||
| at: '00:00:00' | ||||||
| condition: [] | ||||||
| action: | ||||||
| - service: hassio.snapshot_full | ||||||
| data: {} | ||||||
| - service: hassio.addon_start | ||||||
| data: | ||||||
| addon: <ADDON_NAME> # to find name, view README.md | ||||||
| mode: single | ||||||
| ``` | ||||||
|
|
||||||
| ### Finding the `addon` value for an automation | ||||||
|
|
||||||
| When editing the add-on's configuration or viewing its logs, observe the URL slug and you can find the add-on name: | ||||||
|
|
||||||
| ``` | ||||||
| https://your.hassio.domain:8123/hassio/addon/<ADDON_NAME>/logs | ||||||
| ``` | ||||||
|
|
||||||
| ## Future plans | ||||||
|
|
||||||
| Add more sink types and add error handling and notifications | ||||||
|
|
||||||
|
|
@@ -30,4 +80,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |||||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||||
| SOFTWARE. | ||||||
| SOFTWARE. | ||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.