Giter VIP home page Giter VIP logo

hassio-remote-backup's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hassio-remote-backup's Issues

RSA 4096 Supported?

I have a key with the format ssh-rsa AAA<snip> == foo@bob, an RSA 4096 bit public key to the target. Alas, the shell on the container is rejecting the format

Load key "/root/.ssh/id": invalid format

backup error

I had this working with ssh keys, but somehow it broke. I'm now getting the following log file...

Adding SSH key
Creating local backup: "Automated backup 2018-10-18 22:51"
Backup created: 
Copying .tar to /volume1/Documents/Backup\ files/Home\ Assistant on 192.168.1.158 using SCP
Error decoding json invalid character ':' after top-level value: 403: ForbiddenWarning: Permanently added '[192.168.1.158]:6341' (ECDSA) to the list of known hosts.
.tar: No such file or directory

Using Home Assistant 0.80.1 on raspberry pi using Hassos 1.10

Logo Proposal

Hello! I'd like to contribute to your project by designing a logo for it. If you'd want that too, please let me know if there are any specific things you'd want this logo to represent, and if you don't have any I'll just implement my own ideas. Looking forward to hearing from you!

Use built-in password option

Hassio CLI version CLI 1.3.0 and up supports the built-in password option for snapshot creation. Implemented with PR home-assistant/cli#71.
Would remove the need to zip the backup .tar itself in order to password protected it.

Tar file not found

Hi!

When starting the addon I get this in my log:

starting version 3.2.4
Adding SSH key
Creating local backup: "Automated backup 2018-10-06 12:08"
Backup created: 
Copying .tar to /data/Backup/Backups/Hassio on x.x.x.x using SCP
Error decoding json invalid character ':' after top-level value: 403: ForbiddenWarning: Permanently added 'x.x.x.x' (ECDSA) to the list of known hosts.
.tar: No such file or directory

My config:

{
  "ssh_host": "x.x.x.x",
  "ssh_port": 22,
  "ssh_user": "backupuser",
  "ssh_key": [
    "-----BEGIN RSA PRIVATE KEY-----",
    " Long key here ... ",
    "-----END RSA PRIVATE KEY-----"
  ],
  "remote_directory": "/data/Backup/Backups/Hassio",
  "zip_password": "",
  "keep_local_backup": "7"
}

I tested the SSH login with the private key to my nas, this works, also the path works. I've reviewd the run.sh script and it looks like the ${slug} variable is not available in the function copy-backup-to-remote

https://github.com/mr-bjerre/hassio-remote-backup/blob/496395a9d9ee3be5abd61f94b11a7898a14c3735/remote-backup/run.sh#L42

I'm on Hassio 79.3

File not copied to remote location

The backup seems to work fine, I can see newly created file in Backup folder, however the file is not copied over to remote location (NAS). Log file does not indicate any issue:

Adding SSH key
Creating local backup: "Automated backup 2019-01-25 12:03"
Backup created: 90552672
Copying password-protected 90552672.zip to ~/Marrossko/ on xxx.xxx.xxx.xxx using SCP
adding: 90552672.tar (deflated 8%)
Warning: Permanently added 'xxx.xxx.xxx.xxx' (RSA) to the list of known hosts.
scp: /root/Marrossko/: Is a directory

Last note is "Ïs a directory"
I checked the NAS, the folder is public folder (for test) with full permissions

SSH key

Is it also possible to use an authorized_key like in the SSH addon instead of the private key?

Unable to pull from repository

Getting following error when following instructions per Readme page, any ideas? This Add-On saved my ass when my RPI crashed and my backups were stored remotely. After restoring from backup this add-on doesn't work (uninstalled and re-installed) and getting the errors below now:

404 Client Error: Not Found ("pull access denied for fixated/remote-backup-armv7, repository does not exist or may require 'docker login'

19-04-01 00:54:06 INFO (MainThread) [hassio.addons.git] Clone add-on https://github.com/mr-bjerre/hassio-addons repository 19-04-01 00:54:07 INFO (MainThread) [hassio.addons] Load add-ons: 58 all - 1 new - 0 remove 19-04-01 00:54:27 INFO (SyncWorker_17) [hassio.docker.interface] Pull image fixated/remote-backup-armv7 tag 0.3.2. 19-04-01 00:54:29 ERROR (SyncWorker_17) [hassio.docker.interface] Can't install fixated/remote-backup-armv7:0.3.2 -> 404 Client Error: Not Found ("pull access denied for fixated/remote-backup-armv7, repository does not exist or may require 'docker login'").

Confusion...

Not 100% sure how to go about creating the SSH key...

  1. I access my Ubuntu server through SSH from my MacBook.
  2. I access my Pi3 through SSH from my MacBook.
  3. Now I need to access my Ubuntu server from the Pi3.

What exactly is the ssh key that I'm looking for?

Feature Request / keep_remote_backup

It would make this addon perfect if it could preserve a specified number of remote backups in the same way that it can preserve a specified number of local backups.

Erreur perms

hello i'm french, i have this error :

Adding` SSH key
Creating local backup: "Automated backup 2019-02-19 16:45"
Backup created: fd4d06a9
Copying fd4d06a9.tar to /volume1/homes/MrJuJu0319/backup_hassio on 192.168.1.190 using SCP
Warning: Permanently added '[192.168.1.190]:5100' (ECDSA) to the list of known hosts.
Permission denied, please try again.
Permission denied, please try again.
[email protected]: Permission denied (publickey,password).
lost connection

end my config is:

{
  "ssh_host": "192.168.1.190",
  "ssh_port": 5100,
  "ssh_user": "MrJuJu0319",
  "ssh_key": [
    "-----BEGIN RSA PRIVATE KEY-----",
    "MIIEowIBAAKCAQEAq2wieTSZAgXdnVQSOJKh5JzL+YHayfiHt8bYRruzNhP2uFoJ",
    "34OKRijGmEA+Ku1Rk4epQcJnHNWpcX0Fcyv73JiLuRlK8ngtU89LDYFkCrh5YaNh",
...
    "GhuFfJD0Cn2TonfSorS9tlOXHpkOr9K4jnguiN3b9oBSXnYCgwN8CrzUrCK+eVoT",
    "smFbcafQymPFcsAJrCQg52quktDq+X3jkpJxhbxks1lIWlvt4iiV",
    "-----END RSA PRIVATE KEY-----"
  ],
  "remote_directory": "/volume1/homes/MrJuJu0319/backup_hassio",
  "zip_password": "",
  "keep_local_backup": "5"
}

I need help

error on run

Currently getting the following error when runnings:

starting version 3.2.4
Adding SSH key
Creating local backup: "Automated backup 2018-05-01 23:26"
ERROR
panic: interface conversion: interface is nil, not string
goroutine 1 [running]:
panic(0x2c5f60, 0x107d01c0)
	/home/travis/.gimme/versions/go1.7.6.linux.amd64/src/runtime/panic.go:500 +0x33c
github.com/home-assistant/hassio-cli/command/helpers.DisplayOutput(0x107e4000, 0x24, 0x200, 0x1070a900)
	/home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/helpers/common.go:118 +0x3c8
github.com/home-assistant/hassio-cli/command/helpers.ExecCommand(0x2f4bff, 0x9, 0x2f4560, 0x8, 0x0, 0x0, 0x10784300, 0x1070a930, 0x26, 0x0, ...)
	/home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/helpers/common.go:155 +0x308
github.com/home-assistant/hassio-cli/command.CmdSnapshots(0x10778420)
	/home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/snapshots.go:62 +0x3a4
github.com/urfave/cli.HandleAction(0x2ae6d8, 0x323760, 0x10778420, 0x0, 0x0)
	/home/travis/gopath/src/github.com/urfave/cli/app.go:503 +0xf0
github.com/urfave/cli.Command.Run(0x2f4bff, 0x9, 0x0, 0x0, 0x409d30, 0x1, 0x1, 0x2ff148, 0x28, 0x0, ...)
	/home/travis/gopath/src/github.com/urfave/cli/command.go:165 +0x6b8
github.com/urfave/cli.(*App).Run(0x107648c0, 0x1070a0f0, 0x5, 0x6, 0x0, 0x0)
	/home/travis/gopath/src/github.com/urfave/cli/app.go:259 +0x8b0
main.main()
	/home/travis/gopath/src/github.com/home-assistant/hassio-cli/main.go:22 +0x108
Backup created: 
Copying .tar to /mnt/DATA/Backups/HASSIO/AutoBackup on 192.168.0.12 using SCP
Warning: Permanently added '192.168.0.12' (ECDSA) to the list of known hosts.
.tar: No such file or directory

Checked that i can successfully passwordless login with the supplied keys and all seems correct.

any thoughts?
Running Homeassistant 0.68

No snapshots

Backup to my NAS with rsync works but I cannot see the daily snapshots in HA.
Any reason for this?

Impossible to setup - Load key "/root/.ssh/id": invalid format

Hello,
I spent litterrally the whole day trying to setup this with my NAS Synology but the readme is missing a lot of detailed informations for the non-high-qualified people to get it right.

I keep having the "Load key "/root/.ssh/id": invalid format" error which results in a "[email protected]: Permission denied (publickey,password)" and "lost connection"

I have ssh-keygen through the SSH & Web terminal addon and have correctly put the public key into my .ssh/authorized_keys on my NAS. I have copy paste the private key (following the model shown on Readme, with double quotes and commas) in the Hassio-remote-backup config.

It sounds like this repo is not really kept updated though, I do hope someone will be able to help me on this.

Let me know if you need any other details
Thanks

Add-on configuration specific to each install

It should be pointed out in the README, that users need to get our own add-on identifier slug (terminology?), to use in the 'addon:' value by ssh'ing into the hassos host, and executing 'hassio addons | grep _remote_backup'

and that this field is install specific.

How go I get the ssh_key??

Hi, I have an Haas.IO instance where I will install this add-on and a Synology NAS.
Could you please describe a to proceed with those ssh keys.
A step by step would be great !

Many thanks in advance

Cant get permission into unraid from addon

Been trying everything to get this to work. created keys multiple times in multiple ways. I always get this error
Adding SSH key Creating local backup: "Automated backup 2019-05-31 11:57" Backup created: d158418f Copying d158418f.tar to /mnt/user/pcbackup/homeassistant on 192.168.0.50 using SCP Warning: Permanently added '192.168.0.50' (ECDSA) to the list of known hosts. Permission denied, please try again. Permission denied, please try again. [email protected]: Permission denied (publickey,password,keyboard-interactive). lost connection
Does it look like unraid is still asking for a password?

When I used to have HA in a docker before moving to Hassio, creating an ssh connection was not an issue. Only with this add am I having issues.

Add-on Stopped working - Impossible to pull again

Hi,

Having an issue with my HassIO instance, I had to opt for a fresh setup and restore a snapshot. Following this, Remote-Backup didn't work anymore. I've uninstalled it and now when trying to pull the image again, home-assistant.log is displaying the following error:

1_9-03-22 20:12:15 ERROR (SyncWorker_2) [hassio.docker.interface] Can't install fixated/remote-backup-armv7:0.3.2 -> 404 Client Error: Not Found ("pull access denied for fixated/remote-backup-armv7, repository does not exist or may require 'docker login'")._

Any idea?

Thanks for you help and this really great add-on!! ;-)

Password protection goes wrong

Thanks for adding the password protection!

When using the password protection in v0.2.0 something goes wrong.

I have added "zip_password": "mypassword" to the config.
Then the backup is made and correctly copied via scp.
But when unpacking the file, I get the message that password is incorrect and I am sure I use the right one ;)
Also after the backup is finished the "zip_password": "mypassword" has dissapeared from the config file.

Below the output of the log.

starting version 3.2.4
Adding SSH key
Creating local backup: "Automated backup 2018-03-11 01:34"
Backup created: 2e60f3ec
Copying password-protected 2e60f3ec.zip to ~/Onedrive/Backup_Home_Assistant/hassio-snapshot/ on 192.168.1.102 using SCP
  adding: 2e60f3ec.tar (deflated 1%)
Warning: Permanently added '192.168.1.102' (ECDSA) to the list of known hosts.
ok
Deleted local backup: 2e60f3ec
Backup process done!

Feature Request / Partial Backup

Is it possible to exclude an addon or specify what addons to include in the backup? I have one addon that adds a rather large chunk of data to backups (node-red) and all I need is the share folder with the flows.json in it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.