Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery
#!/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
|How can I copy my DVDs to MP4 file format on my Macbook?||16||136|
|Backup folder managed by open source CMS||2||66|
|Restore Server 2012 R2 Registry||4||56|
|Solaris SUN OS 4.1.3 cloning||6||76|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
21 Experts available now in Live!