Skip to content

Commit 42a287d

Browse files
committed
Test stopping all running file backups
1 parent ae9236a commit 42a287d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/stop_all.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import urbackup_api
2+
3+
4+
server = urbackup_api.urbackup_server("http://127.0.0.1:55414/x", "admin", "foo")
5+
6+
for action in server.get_actions():
7+
a = action["action"]
8+
if a ==server.action_full_file or a==server.action_resumed_full_file:
9+
print("Running full file backup: "+action["name"])
10+
11+
print("Stopping...")
12+
server.stop_action(action)

0 commit comments

Comments
 (0)