ikifar2012 / remote-backup-addon

Automatically create and backup HA snapshots using SCP
30 stars 4 forks source link

Friendly Name not working for ~ 2 months #29

Closed talljohnson closed 2 years ago

talljohnson commented 2 years ago

I perform weekly backups. The friendly name feature stopped fully working for me on Sept 13, 2021. The feature partially works as described below. Since the backup completes, this isn't a fatal error. However, the convenience of the friendly name is lost.

Observables:

The log below shows the file rename mv failure.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: Remote Backup
 Automatically create and backup HA snapshots using SCP
-----------------------------------------------------------
 Add-on version: 2021.10.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 6.5  (aarch64 / raspberrypi3-64)
 Home Assistant Core: 2021.10.5
 Home Assistant Supervisor: 2021.10.6
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Adding SSH key
Creating local backup: "Automated backup 2021-11-01 03-00"
Backup created: 0de3d5a4
Copying 0de3d5a4.tar to ~/homeassistantbackups on 192.168.0.112 using SCP
Warning: Permanently added '192.168.0.112' (ED25519) to the list of known hosts.
Renaming 0de3d5a4.tar to Automated backup 2021-11-01 03-00.tar
mv: rename ~/homeassistantbackups/0de3d5a4.tar to ~/homeassistantbackups/Automated backup 2021-11-01 03-00.tar: No such file or directory
[cmd] /run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
                Oops! Something went wrong.

 We are so sorry, but something went terribly wrong when
 starting or running this add-on.

 Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Directory listing of ~/homeassistantbackups on remote location

Screen Shot 2021-11-06 at 8 56 48 AM
ikifar2012 commented 2 years ago

Can you try using an absolute path?

talljohnson commented 2 years ago

Using an absolute path did work.