mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-07 08:31:06 +00:00
Made asyncronyous backup creation request
This commit is contained in:
parent
ba2d785ada
commit
5612ff5373
7
main.py
7
main.py
|
@ -502,9 +502,10 @@ def CreateSingleBackup():
|
||||||
|
|
||||||
backupProcessDescriptor = subprocess.Popen(backupCommand, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
backupProcessDescriptor = subprocess.Popen(backupCommand, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
|
|
||||||
commandOutput=backupProcessDescriptor.communicate()[0]
|
return jsonify(
|
||||||
|
status=0,
|
||||||
return commandOutput
|
message="Backup creation has started"
|
||||||
|
)
|
||||||
|
|
||||||
@app.route("/services/ssh/key/send", methods=["PUT"])
|
@app.route("/services/ssh/key/send", methods=["PUT"])
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
wheel
|
wheel
|
||||||
flask
|
flask
|
||||||
flask_restful
|
flask_restful
|
||||||
|
flask-restful
|
||||||
flask_socketio
|
flask_socketio
|
||||||
pandas
|
pandas
|
Loading…
Reference in a new issue