Find the number of files updated within 24 hours and the total size of the updates. Today, a small shell is written to check whether the databases automatically backed up today are correctly updated to the backup server, the automatic backup part uses rsync, which is executed every day. Therefore, you can check the file updates in the folder within 24 hours to determine whether the number of files is more detailed, how can we determine how many database files have been updated? Find. -mtime-1-type f | grep-I bak | wc-l to obtain the number, at the beginning of this place, I didn't use-type, so let needs to subtract 1 and then the total size of the update: find. -mtime-1-type f-exec ls-l {}\; | awk 'in in {sum = 0} {sum + = $5} END {print sum} Here we use the awk accumulative part to easily obtain the total Update volume, however, the Organization needs to convert it by itself. Then, we can determine the number and size of file updates and send an email to notify me if today's backup is normal ...., sending an email is using crontab .... simple and practical ....