From 75317b60268cbdc6515829176272682dc51f62e6 Mon Sep 17 00:00:00 2001 From: matthias Date: Thu, 2 Apr 2026 07:25:11 +0200 Subject: [PATCH] added switch to winschoten option --- jenkins/default_backup.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jenkins/default_backup.yml b/jenkins/default_backup.yml index f1ec95d..07c856c 100644 --- a/jenkins/default_backup.yml +++ b/jenkins/default_backup.yml @@ -5,6 +5,7 @@ pipeline { booleanParam(name: 'backuptostackstorage', defaultValue: params.backuptostackstorage ?: false, description: 'If true backup data to TransIP Stack') booleanParam(name: 'backuptodavid', defaultValue: params.backuptodavid ?: false, description: 'If true rsync the BORG repository to David') booleanParam(name: 'backuptopi', defaultValue: params.backuptopi ?: false, description: 'If true rsync the BORG repository to our ExternalPI') + booleanParam(name: 'backuptowinschoten', defaultValue: params.backuptowinschoten ?: false, description: 'If true rsync the BORG repository to our Winschoten backup system') string(name: 'directory', defaultValue: params.directory ?: ' ', description: 'The directory that should be handled') text(name: 'excludelist', defaultValue: params.excludelist ?: '**/cache/** ', description: 'Multiline string to exclude patterns from backup') } @@ -92,7 +93,7 @@ pipeline { stage('Run Rsync Backup to Winschoten') { steps { script { - if (params.backuptopi) { + if (params.backuptowinschoten) { withCredentials([sshUserPrivateKey(credentialsId: 'backupwinschoten', keyFileVariable: 'keyfile', passphraseVariable: 'passphrase', usernameVariable: 'user')]) { sh "cp ${keyfile} ${WORKSPACE}/keyfile" sh "rsync -v -a -e 'ssh -i /home/borgbackup/.ssh/id_rsa -p 9897' --delete --info=progress2 ${env.borglocation}/${directory} backupwinschoten@localhost:/storage/borgbackups/${directory}"