Added exclude to rclone
This commit is contained in:
@@ -55,7 +55,7 @@ pipeline {
|
|||||||
if (params.backuptostackstorage) {
|
if (params.backuptostackstorage) {
|
||||||
sh "mkdir -p /config/rclone"
|
sh "mkdir -p /config/rclone"
|
||||||
sh "cp ${WORKSPACE}/config/rclone.conf /config/rclone/"
|
sh "cp ${WORKSPACE}/config/rclone.conf /config/rclone/"
|
||||||
sh "rclone copy -v /data/ stackstorage:/julien/storage/${directory}"
|
sh "rclone copy -v --exclude-from excludelist /data/ stackstorage:/julien/storage/${directory}"
|
||||||
} else {
|
} else {
|
||||||
echo "Backup to TransIP Stack is skipped"
|
echo "Backup to TransIP Stack is skipped"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user