Hi
I am running rsyncs between a raid attached server and a nas device, which works fine.
I am using the --delete to ensure that its kept in sync. And running a log at the end of the sync for me to check. this i am running from a cron
Problem is if the part of the raid fails on the server the sync still happens resulting the data being wiped on the nas. Is there a way of writing a script that checks that the source data is valid and available before allowing the sync to run.
rsync -aWv --stats progress --delete --ignore-errors --exclude ".DS_Store" --exclude ".HSancillary" -- \
exclude ".HSxmap" --exclude ".HSResource" /Raid/ /mnt/chi-dr/RAID/ \
>> /mnt/chi-dr/Rsync_Logs/Chi-Raid_rsync.`date +%w`.log 2>&1
Regards
Treds