Skip to content

Commit

Permalink
MDEV-31332: Galera rsync sst to ignore .snapshot/ files
Browse files Browse the repository at this point in the history
.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: Julius Goryavsky <[email protected]>
  • Loading branch information
grooverdan authored and sysprg committed Sep 26, 2023
1 parent f5c3e73 commit 9b5275b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/wsrep_sst_rsync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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*'
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 9b5275b

Please sign in to comment.