fixed remote location

This commit is contained in:
matthias
2026-05-08 14:00:32 +02:00
parent 00a769135d
commit ac1687c402
2 changed files with 1 additions and 17 deletions
-16
View File
@@ -75,21 +75,5 @@ pipeline {
}
}
}
stage('Run Rsync to External PI') {
steps {
script {
if (params.backuptopi) {
withCredentials([sshUserPrivateKey(credentialsId: '095cc365-ac40-4ddb-a078-2fa403092de0', keyFileVariable: 'keyfile', passphraseVariable: 'passphrase', usernameVariable: 'user')]) {
sh "cp ${keyfile} ${WORKSPACE}/keyfile"
sh "rsync -v -a -e 'ssh -i /home/borgbackup/.ssh/id_rsa -p 9898' --delete --info=progress2 --exclude='.*' /srv/dev-disk-by-uuid-27fc012e-a1fa-4c7c-9dad-82770888cd03/nextcloud_backup/database_dump/ borgbackup@localhost:/nextcloudbackup/database_dump/"
}
} else {
echo "Backup to External PI is skipped"
}
}
}
}
}
}