lk;;k;lk
This commit is contained in:
@@ -21,7 +21,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
sh "mkdir -p ${WORKSPACE}/tmpmount"
|
sh "mkdir -p ${WORKSPACE}/tmpmount"
|
||||||
sh "sshfs -o IdentityFile=/home/pi/.ssh/id_rsa root@10.10.1.32:/${env.borglocation}/${directory} ${WORKSPACE}/tmpmount"
|
sh "sshfs -o IdentityFile=~/.ssh/id_rsa root@10.10.1.32:/${env.borglocation}/ ${WORKSPACE}/tmpmount"
|
||||||
withCredentials([string(credentialsId: 'cbce976a-0d98-4f35-8ea2-1f7818931bc3', variable: 'BORG_PASSPHRASE')]) {
|
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 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 prune --list --keep-daily 31 --keep-weekly 48 ${WORKSPACE}/tmpmount/${directory}"
|
||||||
|
|||||||
Reference in New Issue
Block a user