Pruning the name .snapshot works, but I prefer to prune the path /.snapshot:
find $filedir -path "/.snapshots" -prune -o -name \*.gz -mmin +10 -print >> $varfile
Pruning the name .snapshot works, but I prefer to prune the path /.snapshot:
find $filedir -path "/.snapshots" -prune -o -name \*.gz -mmin +10 -print >> $varfile