RJ's blog - stuff that interests, frustrates and fasinates me RSS 2.0
 Saturday, November 10, 2007

Spent some time today upgrading the blog to dasblog 2.0.  The upgrade was pretty simple but ended up stuck because I couldn't log in after the upgrade was completed.  After a whole bunch of messing around poking at things and reviewing the config files I ended up downloading SmartFTP to try and recopy all the files which I had done manually the first time.  Ya, I know I should have done that to start with ... as it was I just used windows explorer and copied over the files that had changed.  Obviously that was a bad idea because it didn't work. 

Spent about 15 min downloading, installing, configuring SmartFTP and recopying all of the dasBlog 2.0 files to the website - bingo, it worked just fine.  So because I was too lazy to download it to start with I spent 1+ hrs messing around copying the files manually and trying get it working once I was done because it failed.  Windows Explorer = stupid FTP, and anyone chosing to use it isn't much better, myself included.

As part of the upgrade I realized I hadn't been cleaning out the old logs that dasBlog keeps.  Ended up writing a simple dos batch file to call an ftp script that will download all of the logs and then delete them from the server - here's the code for it.

CleanupDasblog.bat:
ftp -n -v -i -s:c:\scripts\CleanupDasblog.txt [ftp.yourwebsite.com] 

CleanupDasblog.txt:

USER [username]
[password]
cd [remotepath/log]
lcd [localpath\log]
mget *.*
mdel *.*
close
quit

Saturday, November 10, 2007 5:14:42 PM (Central Standard Time, UTC-06:00)  #    Comments [0] -
Scripting | utilities
Fundraising for LLS
TeamInTraining - Contribute Now
Archive
<March 2010>
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910


About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010
Rich Werning
Sign In
All Content © 2010, Rich Werning
My DasBlog theme is modified from 'Business' created by Christoph De Baene (delarou)