remove dash
This commit is contained in:
parent
fffe7adbfd
commit
49102eb285
@ -1,5 +1,5 @@
|
||||
---
|
||||
service-name: git
|
||||
servicename: git
|
||||
backup:
|
||||
preare-command: ""
|
||||
prearecommand: ""
|
||||
folder: "/home/git"
|
||||
|
@ -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' )
|
||||
|
Loading…
Reference in New Issue
Block a user