Well I am always trying to find a way to automate my backups. So I already have my webserver setup to run a cpanel automated backup on Monday’s, after a little script change to handle the new LunarPages theme ‘LP3′ and now I wrote a little batch file to push the most recent backup to my Dropbox account. This way I have an offsite backup of my website as well. The script to get the most recent file is pretty straight forward but it did take me a while to figure it out:
–this Deletes the existing files
del/q “C:\Documents and Settings\Dan Murphy\My Documents\My Dropbox\*.tar.gz”
–this adds a pause for 45 seconds
ping -n 45 127.0.0.1 > NUL 2>&1
–this sets up the variables
set backupcmd=c:\windows\system32\xcopy.exe /c /d /e /h /r /y
set dt=%date:~7,2%.%date:~10,4%
–this runs the commnd
%backupcmd% “c:\source\”*%dt%*.tar.gz “C:\Destination”


I like to keep a record of everything we have growing in our yard so we can remember what was planted. Here are the recent additions to the front yard, they are all perennial flowers and of course for me and Laura low maintenance!


