#!/bin/sh go () { echo; echo "#############"; echo; echo "rsync --dry-run --stats $_rsyncParameter \"$_source/\" \"$_target/\""; rsync --dry-run -avx --delete-before --delete-excluded --stats $_rsyncParameter "$_source/" "$_target/"; } _source='/mnt/store'; _target='/mnt/backup/store'; _rsyncParameter='--exclude "mnt/store/apps/***" --exclude "/mnt/store/drv/***" --exclude "/mnt/store/ARCHIVE***" --exclude "mnt/store/BACKUP***"'; go; _rsyncParameter='--exclude "mnt/store/apps/**" --exclude "/mnt/store/drv/**" --exclude "/mnt/store/ARCHIVE**" --exclude "mnt/store/BACKUP**"'; go; _rsyncParameter='--exclude "mnt/store/apps/*" --exclude "/mnt/store/drv/*" --exclude "/mnt/store/ARCHIVE*" --exclude "mnt/store/BACKUP*"'; go; _rsyncParameter='--exclude "apps/***" --exclude "/drv/***" --exclude "/ARCHIVE***" --exclude "BACKUP***"'; go; _rsyncParameter='--exclude "apps/**" --exclude "/drv/**" --exclude "/ARCHIVE**" --exclude "BACKUP**"'; go; _rsyncParameter='--exclude "apps/*" --exclude "/drv/*" --exclude "/ARCHIVE*" --exclude "BACKUP*"'; go;