Commit 9b5275b8 authored by Daniel Black's avatar Daniel Black Committed by Julius Goryavsky

MDEV-31332: Galera rsync sst to ignore .snapshot/ files

.snapshot exists as a directory on NetApp storage and
should not be copied during the sst process.

Thanks Daniel Czadek for the bug report.
Signed-off-by: default avatarJulius Goryavsky <julius.goryavsky@mariadb.com>
parent f5c3e736
......@@ -564,6 +564,7 @@ FILTER="-f '- /lost+found'
-f '- /.Trashes'
-f '- /.pid'
-f '- /.conf'
-f '- /.snapshot/'
-f '+ /wsrep_sst_binlog.tar'
-f '- $ib_home_dir/ib_lru_dump'
-f '- $ib_home_dir/ibdata*'
......@@ -673,7 +674,8 @@ FILTER="-f '- /lost+found'
cd "$DATA"
find . -maxdepth 1 -mindepth 1 -type d -not -name 'lost+found' \
-not -name '.zfs' -print0 | xargs -I{} -0 -P $backup_threads \
-not -name '.zfs' -not -name .snapshot -print0 \
| xargs -I{} -0 -P $backup_threads \
rsync ${STUNNEL:+--rsh="$STUNNEL"} \
--owner --group --perms --links --specials --ignore-times \
--inplace --recursive --delete --quiet $WHOLE_FILE_OPT \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment