From e23cc9eca007cb31e5b350a0ee8828cb5905dad2 Mon Sep 17 00:00:00 2001 From: matthias Date: Sun, 31 May 2026 18:48:31 +0200 Subject: [PATCH] further tweaking --- jenkins/nextcloud_database.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jenkins/nextcloud_database.yml b/jenkins/nextcloud_database.yml index 31c7e2d..9f80cee 100644 --- a/jenkins/nextcloud_database.yml +++ b/jenkins/nextcloud_database.yml @@ -24,7 +24,7 @@ pipeline { agent { docker { image 'mariadb:latest' - args "--volumes-from=jenkins -v /tmp/database_dump:/data/ --entrypoint=''" + args "--volumes-from=jenkins -v ${backdirectory}:/data/ --entrypoint=''" reuseNode false } } @@ -39,9 +39,9 @@ pipeline { steps { script { withCredentials([string(credentialsId: 'cbce976a-0d98-4f35-8ea2-1f7818931bc3', variable: 'BORG_PASSPHRASE')]) { - sh "borg create --progress --stats ${env.borglocation}/nextcloud_database::${java.time.LocalDateTime.now().format(java.time.format.DateTimeFormatter.ofPattern('dd-MM-yyyy_HH:mm'))} /tmp/database_dump" + sh "borg create --progress --stats ${env.borglocation}/nextcloud_database::${java.time.LocalDateTime.now().format(java.time.format.DateTimeFormatter.ofPattern('dd-MM-yyyy_HH:mm'))} ${backdirectory}" sh "borg prune --list --keep-daily 31 --keep-weekly 48 ${env.borglocation}/nextcloud_database" - sh "rm -rf /tmp/database_dump" + sh "rm -rf ${backdirectory} } } }