From bbb7ceb33253953993d0af1dc87d8d68657ac3b9 Mon Sep 17 00:00:00 2001 From: matthias Date: Fri, 8 May 2026 20:52:07 +0200 Subject: [PATCH] added agent name to ssh mount --- jenkins/other_location_backup.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkins/other_location_backup.yml b/jenkins/other_location_backup.yml index dbce608..96ed20e 100644 --- a/jenkins/other_location_backup.yml +++ b/jenkins/other_location_backup.yml @@ -23,8 +23,8 @@ pipeline { sh "mkdir -p ${WORKSPACE}/tmpmount" sh "sshfs -o IdentityFile=/home/pi/.ssh/id_rsa root@10.10.1.32:/${env.borglocation}/ ${WORKSPACE}/tmpmount" withCredentials([string(credentialsId: 'cbce976a-0d98-4f35-8ea2-1f7818931bc3', variable: 'BORG_PASSPHRASE')]) { - sh "borg create --progress --stats --exclude-from excludelist ${WORKSPACE}/tmpmount/${directory}::${java.time.LocalDateTime.now().format(java.time.format.DateTimeFormatter.ofPattern('dd-MM-yyyy_HH:mm'))} /${directory}" - sh "borg prune --list --keep-daily 31 --keep-weekly 48 ${WORKSPACE}/tmpmount/${directory}" + sh "borg create --progress --stats --exclude-from excludelist ${WORKSPACE}/tmpmount/${agentname}_${directory}::${java.time.LocalDateTime.now().format(java.time.format.DateTimeFormatter.ofPattern('dd-MM-yyyy_HH:mm'))} /${directory}" + sh "borg prune --list --keep-daily 31 --keep-weekly 48 ${WORKSPACE}/tmpmount/${agentname}_${directory}" } } }