File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [ Unreleased] [ ]
9
9
10
+ ## [ 1.2.0] [ ] - 2019-06-14
11
+
12
+ ### Added
13
+
14
+ - ` BACKUP_LOCAL_PATHS_EXCLUDE ` variable to allow excluding paths for file backup
15
+
10
16
## [ 1.1.0] [ ] - 2019-05-24
11
17
12
18
### Added
@@ -99,7 +105,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99
105
- Upload to Softlayer
100
106
- Travis CI for continuous integration
101
107
102
- [ unreleased ] : https://github.ibm.com/bdu/gamora/compare/1.1.0...HEAD
108
+ [ unreleased ] : https://github.ibm.com/bdu/gamora/compare/1.2.0...HEAD
109
+ [ 1.2.0 ] : https://github.ibm.com/bdu/gamora/compare/1.1.0...1.2.0
103
110
[ 1.1.0 ] : https://github.ibm.com/bdu/gamora/compare/1.0.1...1.1.0
104
111
[ 1.0.1 ] : https://github.ibm.com/bdu/gamora/compare/1.0.0...1.0.1
105
112
[ 1.0.0 ] : https://github.ibm.com/bdu/gamora/compare/0.3.2...1.0.0
Original file line number Diff line number Diff line change @@ -185,9 +185,13 @@ back_up_files() {
185
185
186
186
log " Taking file backup"
187
187
# shellcheck disable=SC2086
188
- monsoon " ${NOTIFICATION_SETTINGS[@]} " backup files \
189
- --output=" ${BACKUP_PATH:? } /${filename} " \
190
- ${BACKUP_LOCAL_PATHS:? } # space-separated list
188
+ cmd=" monsoon ${NOTIFICATION_SETTINGS[@]} backup files \
189
+ --output=\" ${BACKUP_PATH:? } /${filename} \" "
190
+ for f in ${BACKUP_LOCAL_PATHS_EXCLUDE:- } ; do
191
+ cmd=" ${cmd} --exclude=\" ${f} \" "
192
+ done
193
+ cmd=" ${cmd} ${BACKUP_LOCAL_PATHS:? } " # space-separated list
194
+ eval $cmd
191
195
log " Done: Taking file backup"
192
196
193
197
upload_backup " ${filename:? } "
You can’t perform that action at this time.
0 commit comments