remove dash

This commit is contained in:
Torma Kristóf 2022-04-16 17:16:52 +02:00
parent fffe7adbfd
commit 49102eb285
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
---
service-name: git
servicename: git
backup:
preare-command: ""
prearecommand: ""
folder: "/home/git"

View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash
# {{ansible_managed}}
{{backup.preare-command}}
{{backup.prearecommand}}
time ( rsync -azP --delete {{backup.folder}} backup@192.168.69.26:/mnt/backupstore/{{service-name}}/staging )
time ( rsync -azP --delete {{backup.folder}} backup@192.168.69.26:/mnt/backupstore/{{servicename}}/staging )
time ( ssh backup@backup.stargate.internal 'tar -zcvf /mnt/backupstore/{{service-name}}/{{service-name}}-$(date +"%Y-%m-%d").tar.gz -C /mnt/backupstore/{{service-name}}/staging' )
time ( ssh backup@backup.stargate.internal 'tar -zcvf /mnt/backupstore/{{servicename}}/{{servicename}}-$(date +"%Y-%m-%d").tar.gz -C /mnt/backupstore/{{servicename}}/staging' )