I've got a Pi 4b that is booting/running from a ssd and running some home automation software (Home Assistant) that creates backups and places them in /usr/share/hassio/backup
. This location for the backups cannot be changed.
I've added a usb drive that I would like to place the backups on, so that if the SSD fails I still have the backups. I removed all the backups from the backup folder and then mounted my usb drive with sudo mount /dev/sdb1 /usr/share/hassio/backup
to the backup folder with the aim of having backups now being stored on the usb drive rather than the primary ssd device.
However, when files are added to /usr/share/hassio/backup
, I can see via df -h
that the files are actually being placed on the SSD and not the usb drive.
Am I approaching this wrong or have I missed an important step?
Any suggestions would be appreciated.
Thanks.
mount
(no args) and detail why you believe thedf -h
output proves what you think it does. That said, I'd guess that the issue is that the software using that directory was already running when you mounted the drive, and is using previously opened handles. Those will be for stuff "underneath" the mount point (the non-mounted directory still exists but is conventionally unreachable while there's something mounted there -- except for already open files).