On Nov 7, 2007 4:42 PM, n schembr &lt;<a href="mailto:nschembr@yahoo.com">nschembr@yahoo.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I use the rsync with the backup option. Old files are stored by date and hour.<br><br> &nbsp; &nbsp;# &nbsp; $base_dir = &quot;mail1.example.com:/&quot;; #remote<br> &nbsp; &nbsp; &nbsp; &nbsp;$base_dir = &quot;/&quot;; &nbsp;# local<br><br> &nbsp; &nbsp; &nbsp; &nbsp;$rsync_dir = &quot;/media/mail1&quot;;
<br> &nbsp; &nbsp; &nbsp; &nbsp;$old_dir = &nbsp; &quot;/media/mail1/backup/&quot;;<br><br> &nbsp; &nbsp; &nbsp; &nbsp;$date= `date +%Y_%m_%d/%H`;<br> &nbsp; &nbsp; &nbsp; &nbsp;chop $date;<br><br> &nbsp; &nbsp; &nbsp; &nbsp;$exclude = &quot;--exclude=media/ --exclude=vmware/ &nbsp;--exclude=backup/ --exclude=var/ --exclude=sys/ --exclude=proc/ --exclude mnt/ &quot;;
<br> &nbsp; &nbsp; &nbsp; &nbsp;$cmd = &quot;rsync &nbsp; --delete --delete-after &nbsp;-aHv $exclude --backup --backup-dir=$old_dir$date/ $base_dir $rsync_dir &quot;;<br><br><br><br>Nicholas A. Schembri<br>State College PA USA<br><div><div></div><div class="Wj3C7c">
<br><br><br><br>_______________________________________________<br>wplug mailing list<br><a href="mailto:wplug@wplug.org">wplug@wplug.org</a><br><a href="http://www.wplug.org/mailman/listinfo/wplug" target="_blank">http://www.wplug.org/mailman/listinfo/wplug
</a><br></div></div></blockquote></div><br><br><br>Here is a great article by our own MarkD.&nbsp;&nbsp; It&#39;s a pretty good intro to rsync backups.<br><br><a href="http://www.borkware.com/rants/rsync-backups/">http://www.borkware.com/rants/rsync-backups/
</a><br><br><br>