mirror of
https://github.com/uroni/urbackup-server-python-web-api-wrapper.git
synced 2025-10-26 11:38:16 +00:00
12 lines
382 B
Python
12 lines
382 B
Python
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) |