Commit 437e62bb authored by Mikael Salson's avatar Mikael Salson Updates on the script

The script has been modified a while ago for two reasons:
- We should use a virtualenv to run the server
- We do not force the extension of the backup to be .zip (an incremental backup is not a zip)
parent 91e76c12
......@@ -6,10 +6,10 @@
# Remote server
filename=$(ssh ${VIDJIL_SERVER} "cd /home/vidjil/server; sh ./ ${options} ~" | tail -1)
filename=$(ssh ${VIDJIL_SERVER} "cd /home/vidjil/server; . /home/vidjil/virtualenv/bin/activate; sh ./ ${options} ${ARCHIVE_DIR}" | tail -1)
scp ${VIDJIL_SERVER}:${filename} ${DIR_BACKUP}
scp ${VIDJIL_SERVER}:${filename}.zip ${DIR_BACKUP}
ssh ${VIDJIL_SERVER} "rm -f ${filename}.zip"
ssh ${VIDJIL_SERVER} "rm -f ${filename}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment