Commit 05024b02 authored by Vidjil Team's avatar Vidjil Team Committed by Vidjil Team

scripts/backup-remote.sh: remote backup of the database

parent a72ef27e
#!/bin/bash
options=$1
filename=$(ssh vidjil-bak@rbx.vidjil.org "cd /home/vidjil/server; sh ./backup.sh ${options} ~" | tail -1)
scp vidjil-bak@rbx.vidjil.org:${filename}.zip /mnt/data/backup/vidjil/
ssh vidjil-bak@rbx.vidjil.org "rm -f ${filename}.zip"
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