Parcourir la source

Coquille script push_backup

test
Julien Toscano il y a 4 ans
Parent
révision
6b6ca7fbe5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      backup/push_backup

+ 1
- 1
backup/push_backup Voir le fichier

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

# Then
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
ssh -p ${BACKUP_PORT} ${TRANSFERT_USER}@${BACKUP_TARGET} 'sudo shutdown -h'

Chargement…
Annuler
Enregistrer