mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-05 23:54:19 +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)
|
||||
|
||||
commandOutput=backupProcessDescriptor.communicate()[0]
|
||||
|
||||
return commandOutput
|
||||
return jsonify(
|
||||
status=0,
|
||||
message="Backup creation has started"
|
||||
)
|
||||
|
||||
@app.route("/services/ssh/key/send", methods=["PUT"])
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
wheel
|
||||
flask
|
||||
flask_restful
|
||||
flask-restful
|
||||
flask_socketio
|
||||
pandas
|
Loading…
Reference in a new issue