I have a headless 3B+ and want to connect a USB drive to it to periodically backup some data. I don’t want the drive to draw power all the time.

My plan is to use this in a script
https://github.com/mvp/uhubctl#raspberry-pi-3b
to power up the USB port, mount the drive, write the data, unmount and power USB off again.

My assumptions are that a USB drive will draw power even when idle. Is this correct? Does it depend on the USB adapter in the drive? Is there a better way to do this, cause my plan seems pretty hacky.

#RaspberryPi