This commit is contained in:
matthias
2026-05-08 19:16:17 +02:00
parent 836ff078e0
commit 3e18c39e68
+1 -1
View File
@@ -22,7 +22,7 @@ pipeline {
steps {
script {
sh "mkdir -p ${WORKSPACE}/tmpmount"
sh "sshfs root@10.10.1.32:/${env.borglocation}/${directory}"
sh "sshfs root@10.10.1.32:/${env.borglocation}/${directory} ${WORKSPACE}/tmpmount"
withCredentials([string(credentialsId: 'cbce976a-0d98-4f35-8ea2-1f7818931bc3', variable: 'BORG_PASSPHRASE')]) {
sh "borg create --progress --stats --exclude-from excludelist ${backdirectory}::${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 ${backdirectory}"