mirror of
https://github.com/uroni/urbackup-server-python-web-api-wrapper.git
synced 2025-10-26 11:38:16 +00:00
Test stopping all running file backups
This commit is contained in:
parent
ae9236a570
commit
42a287d23a
12
test/stop_all.py
Normal file
12
test/stop_all.py
Normal file
@ -0,0 +1,12 @@
|
||||
import urbackup_api
|
||||
|
||||
|
||||
server = urbackup_api.urbackup_server("http://127.0.0.1:55414/x", "admin", "foo")
|
||||
|
||||
for action in server.get_actions():
|
||||
a = action["action"]
|
||||
if a ==server.action_full_file or a==server.action_resumed_full_file:
|
||||
print("Running full file backup: "+action["name"])
|
||||
|
||||
print("Stopping...")
|
||||
server.stop_action(action)
|
||||
Loading…
Reference in New Issue
Block a user