7
2
I have a .bat script, which starts on powering up a dedicated backup server, saves the productive environment using Robocopy, and shuts down the server when done.
It does some checks before saving, and requests appropriate measures when something is not ok, for example when the target JBOD case was not detected due to being powered off.
There is one more caveat, though, which I was not able to handle so far.
How can I test in the .bat file, whether I have enough space on the target disks to receive all the files or not? (It's ok to test for a fixed space size, modified periodically; currently it's near to 100 GB.)
Is it even possible? If so, what command do I need to research?
1@Bob Stuff and nonsense, 15 decimal places will hold ~909.5TB quite near the presently not available 1PB - but the concept is clear and nobody keeps you from using 16 places to get ~8.88PB – LotPings – 2017-05-21T06:33:02.197
1Hm. It didn't quite click in my head that you'd gone one digit past the 10 TB value, sorry. – Bob – 2017-05-21T08:06:01.153