#shell

1 messages · Page 1 of 1 (latest)

rocky cloud
#

It seems that shell_command are not allowed to read the backup directery under HAOS.
Is this intentional or is it a bug?

shell_command: copy_backups: cp /backup/*.* /media/esphome/ -u

Logger: homeassistant.components.shell_command Source: /usr/src/homeassistant/homeassistant/components/shell_command/__init__.py:129 integration: Shell Command (documentation, issues) First occurred: 18:18:54 (2 occurrences) Last logged: 18:22:44 Error running command: cp /backup/*.* /media/esphome/ -u, return code: 1 NoneType: None

viscid sequoia
#

I wouldn't jump to that conclusion

rocky cloud
#

If I use any other source than /backup/ it works. If I run the same command in terminal it works. So what else could be the reason?

viscid sequoia
#

It may not be mounted in the HA container because the supervisor does the backups

rocky cloud
#

Ok so then it is intentional.

viscid sequoia
#

You can ssh into the ssh addon and run the command there

#

Probably. It's minimal to support what it needs

rocky cloud
#

Yes, thanks. I was trying to make it simple to get my backups to an usb stick in my RV which has a HA Green.

rocky cloud
#

I mounted /backup/ as a networkshare in HA using samba addon and now it works. Thanks for the input, RobC!