This is how to disable hard drive sleep from the macOS command-line. Simply disabling hard drive sleep within Energy Saver often does not work. Before I ran this command, my USB external hard drives were going to sleep at night and that was causing my cloud backup to stop. This was the fix for my USB hard drives sleeping within macOS and I hope that it fixes you too! Please feel free to share with others.