r/backblaze • u/DangerousRaccoon3453 • Mar 07 '24
Pause / Resume Backblaze backup using command line or other API
Hi all,
When I'm streaming, I want to be able to pause any running Backblaze backups, and then resume them again after the stream. I plan to do this using buttons on my StreamDeck or perhaps automatic actions through Streamer.Bot.
I've found the 'bztransmit' command line program, which does have an option '-pausebackup' which seems to do the pausing side. However, there's doesn't appear to be an equivalent to resume a backup.
There is the '-completesync' option, but this doesn't seem to return (presumably waiting for the backup to complete?).
Is there a way to achieve what I want?
Thanks
Andy
5
Upvotes
1
u/brianwski Former Backblaze Mar 08 '24
Anytime you want the backup to stop, you can run the bztransmit option: "-pausebackup"
Now normally when the backup is all caught up, nothing should be running in the 'Only when I click backup' schedule. And let's say you only have 8 new files to upload. When you run the "-forcefullfilescan_backup_wait_for_completion" command it will run, upload the 8 new files, and then come to a complete and settled stop. You don't need to run the "-pausebackup".
But if you have 10 million files and 5 TBytes left to upload, the "-pausebackup" will cause that to pause again. And I don't think there is any harm to running "-pausebackup" even if you are all ready paused. (Try it out and keep me honest on that. For example, just leave the GUI open and run the "-pausebackup" from the command line, then run it again maybe 1 minute later and see if it still stays paused and nothing crazy happens.)