MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
#!/bin/sh # NAS Share Backup Script, v3.0 # /usr/local/scripts/rsyncscripts/dirsync.sh # Created By: # Last Modified: 20090324 1947 # Declare the script name script=$1; # Get date and time for log name today=`date +%Y%m%0e-%H%M%S`; # Get date for email notification dateFormat=`date +%Y%m%0e`; # Backup NAS4 to NAS3 date > /var/log/rsync/$today-$script.log rsync --del --progress --stats -v -r -t /mount/nas4/$script/ /mount/nas3/$script/ >> /var/log/rsync/$today-$script.log # Insert Stage1 completion date/time into log date >> /var/log/rsync/$today-$script.log # Backup NAS4 to NAS5 rsync --del --progress --stats -v -r -t /mount/nas4/$script/ /mount/nas5/$script/ >> /var/log/rsync/$today-$script.log # Insert final completion date/time into log date >> /var/log/rsync/$today-$script.log # Build completion time for email complete=`date +%Y%m%0e-%H%M%S`; # Build email body emailbody="A successful backup of $script has been completed.\nThe backup began at $today and ended at $complete.\nA log file is attached."; rm -rdf /tmp/emailbody-$script.txt echo $emailbody > /tmp/emailbody-$script.txt # Send email and cleanup mutt -s "Successful Backup: $script - $dateFormat" -a /var/log/rsync/$today-$script.log -c firstname.lastname@example.org email@example.com firstname.lastname@example.org email@example.com < /tmp/emailbody-$script.txt rm -rdf /tmp/emailbody-$script.txt
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|ANS1017E Session rejected: TCP/IP connection failure Backup error TSM 6.4 Windows 2003 server.||15||191|
|Server Rebuild after 2 drive in raid crashed||16||88|
|VMware vSAN 6.5 usage example and caveats||11||167|