Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers. It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.
#!/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 email@example.com firstname.lastname@example.org email@example.com firstname.lastname@example.org < /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.
Join the community of 500,000 technology professionals and ask your questions.