Browse Source

Coquille script push_backup

test
Julien Toscano 4 years ago
parent
commit
6b6ca7fbe5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backup/push_backup

+ 1
- 1
backup/push_backup View File

@@ -12,7 +12,7 @@ sleep 180


# Then # Then
echo "Starting to push backup using ${BACKUP_TARGET}:${BACKUP_TARGET_ROOT}" echo "Starting to push backup using ${BACKUP_TARGET}:${BACKUP_TARGET_ROOT}"
rsync -azp -e 'ssh -p ${BACKUP_PORT}' /backup /data ${TRANSFERT_USER}@${BACKUP_TARGET}:${BACKUP_TARGET_ROOT}
rsync -azp -e "ssh -p ${BACKUP_PORT}" /backup /data ${TRANSFERT_USER}@${BACKUP_TARGET}:${BACKUP_TARGET_ROOT}


# Stop # Stop
ssh -p ${BACKUP_PORT} ${TRANSFERT_USER}@${BACKUP_TARGET} 'sudo shutdown -h' ssh -p ${BACKUP_PORT} ${TRANSFERT_USER}@${BACKUP_TARGET} 'sudo shutdown -h'

Loading…
Cancel
Save