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
+1 -1
View File
@@ -44,7 +44,7 @@ pipeline {
steps { steps {
script { script {
if (params.backuptodavid) { if (params.backuptodavid) {
sh "rsync -v -a -e 'ssh -p 664' --delete --bwlimit=3000 --info=progress2 ${env.borglocation}/${directory} matthias@home.daf2000.nl:/media/disk/borgbackup/" sh "rsync -v -a -e 'ssh -p 664' --delete --bwlimit=3000 --info=progress2 ${env.borglocation}/${directory} matthias@home.daf2000.nl:/media/disk/borgbackups/"
} else { } else {
echo "Backup to David is skipped" echo "Backup to David is skipped"
} }
-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"
}
}
}
}
} }
} }