Make /backup/ accessible from Homeassistant

I have made a small shell script to send my backups to an other device for redundancy. The script works well when I use it in ssh, but it cannot be used with a shell_command as the /backup/ folder is not reachable from within HomeAssistant.

Is there a particular reason for that? While looking for a solution, I found that many people were looking to access the backup folder as well without any luck. It would be great if this was feasible.

same here. trying to track /backup folder size. how comes this is 2+ years old? how do you guys solve this?

You probably just need to add it to the whitelist directories in configuration.yaml ?
However - browsing Github issues suggests that the Backup directory is not mounted to the Home Assistant container, and thus is completely inaccessible to Home Assistant.