Added progress flgas to rsync

This commit is contained in:
2026-01-09 14:33:10 +01:00
parent b1f47daf60
commit 60cc148137

View File

@@ -33,14 +33,14 @@ pipeline {
} }
stage('Run Rsync to David') { stage('Run Rsync to David') {
steps { steps {
sh "rsync -v -a -e 'ssh -p 664' --delete --bwlimit=3000 ${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/borgbackup"
} }
} }
stage('Run Rsync to External PI') { stage('Run Rsync to External PI') {
steps { steps {
withCredentials([sshUserPrivateKey(credentialsId: '095cc365-ac40-4ddb-a078-2fa403092de0', keyFileVariable: 'keyfile', passphraseVariable: 'passphrase', usernameVariable: 'user')]) { withCredentials([sshUserPrivateKey(credentialsId: '095cc365-ac40-4ddb-a078-2fa403092de0', keyFileVariable: 'keyfile', passphraseVariable: 'passphrase', usernameVariable: 'user')]) {
sh "cp ${keyfile} ${WORKSPACE}/keyfile" sh "cp ${keyfile} ${WORKSPACE}/keyfile"
sh "rsync -v -a -e 'ssh -i /home/borgbackup/.ssh/id_rsa -p 9898' --delete ${env.borglocation}/${directory} borgbackup@localhost:/borgbackup" sh "rsync -v -a -e 'ssh -i /home/borgbackup/.ssh/id_rsa -p 9898' --delete --info=progress2 ${env.borglocation}/${directory} borgbackup@localhost:/borgbackup"
} }
} }
} }