瀏覽代碼

Coquille script push_backup

test
Julien Toscano 4 年之前
父節點
當前提交
6b6ca7fbe5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      backup/push_backup

+ 1
- 1
backup/push_backup 查看文件

@@ -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'

Loading…
取消
儲存