Add a simple backup server software release.
[slapos.git] / software / backupserver / template-backup-script.sh.in
1 #!${dash-output:dash}
2
3 # trap "echo Backing up failed for $${:hostname}" ERR
4
5 export HOME=$${directory:home}
6
7 set -e
8 cd $${:datadirectory}
9 ${rdiff-backup-output:rdiff-backup} \
10 $${:exclude_string} \
11 --include='$${:include}' \
12 --exclude='**' \
13 --remote-schema '${dropbear-output:ssh} -T -y -i $${:sshkey} %s $${:remote_schema}' \
14 $${:connection}::/ ./
15
16 # python scripts/verify_with_sudo.py ./ $${:connection}:/
17