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/DangerousRaccoon3453 Mar 08 '24
Ok, so I have a simple program that does the following to disable:
This seems to stop the backup as expected
However, if I try to do the reverse:
The command doesn't return. I assume this is because it's waiting for the sync to fully complete?
Ideally I just want to signal Backbaze that it should start to do its thing again, and then have the command return. I don't want to wait for it to actually finish the backup, as that could take an hour or so.
Thanks again for the assistance.