I have 2 websites hosted remotely on 2 separate linux boxes (openBSD). I
have telnet, ftp and web-based admin access into one of them ("site 1") and
ftp and web-based admin access to the other ("site 2"). "Site 2" has a
growing mysql database, and my task was to run a daily database backup
script on "site 2" from "site 1", and save it to somewhere on "site 2".

As it turns out, I finally got the cron to work properly and do the
re-direction using something similar to

00 02 * * * curl -dump http://www.site2.com/autodump.phtml >
/home/site2/www/db_dir/db_backup`date +"\%m\%d\%y"`.txt


Thank you for all your help!

steve



> From: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
> Date: Wed, 11 Jun 2003 12:21:57 -0700
> To: [EMAIL PROTECTED]
> Subject: [wdvltalk] Re: need unix command help
> 
> 
> This was actually a fun project since it was my first attempt at using
> cron -- I notice you seem to have spent all night on it (probably not so
> fun)! Do you now have a satifactorily working version now?
> 
> The info I sent last night worked great for me, but I have full access to
> a test Linux box. Could you give a little more info about the box you are
> working on, the default shell, how much access rights you have?
> 
> I'd just like to tie up the loose ends -- most of this is probably better
> suited to a Unix/Linux discussion list, but it can be useful for web
> developers.
> 
> Scott
> 
>> The redirection DID work if I used a simple filename (like filename.txt).
>> 
>> The redirection DID NOT work if I used a date-appended filename.
>> 
>> I am going to try your suggestion and see if that works.
>> 
>> steve
> 
> ____ � The WDVL Discussion List from WDVL.COM � ____
> To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
> Send Your Posts To: [EMAIL PROTECTED]
> To change subscription settings to the wdvltalk digest version:
> http://wdvl.internet.com/WDVL/Forum/#sub
> 
> ________________  http://www.wdvl.com  _______________________
> 
> You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> 


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to