How do we prevent the remote machines from filling up their storage? Can we check the disk usage and act accordingly?
Is this a good idea? How to do it?
Could we modify things a little so it checks how much storage space is left, and if it falls below a certain threshold that would trigger data deletion (after syncing)?
we can probably use the du disk usage tool to check how much data has been collected and use that to trigger a clean-up operation.
How do we prevent the remote machines from filling up their storage? Can we check the disk usage and act accordingly?
Is this a good idea? How to do it?
we can probably use the du disk usage tool to check how much data has been collected and use that to trigger a clean-up operation.
Possible approach: https://stackoverflow.com/a/71626685
We could also use the file system disk space df tool
The RPI SD card slot is called
/dev/mmcblk0p2
https://github.com/raspberrypi/noobs/wiki/NOOBS-partitioning-explained