Re: mirror remote web server, no ftp, how?

2003-02-27 Thread Mike Meyer
In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] typed:
> I will be sending my web server out to be co-located, and keeping a second 
> box here
> in my office. I want to be able to make this local box a mirror of the 
> live box. I don't 
> want/need ftp running on these boxes. I have a third box for development, 
> then upload
> the new files to the live box. The local box is strictly a 
> duplicate/backup of the live box.
> I do use ssh and access them using scp and putty. I would like this to run 
> on a daily
> basis. Any ready-made apps available to do this? I didn't see anything in 
> the ports.

ftp/wget will mirror sites with either ftp or http.

Might I suggest you change your methodology, and use your local box as
a "test" box that you then push to the co-located box when you deem
things ready. You can do the push with rsync or similar tools.

  http://www.mired.org/consulting.html
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: mirror remote web server, no ftp, how?

2003-02-27 Thread nate
> I will be sending my web server out to be co-located, and keeping a second
>  box here
> in my office. I want to be able to make this local box a mirror of the

rsync ..

setup SSH with RSA or DSA authentication, use passphrase-less keys
(or ssh-agent or something) and do something like

(from remote web server)

rsync -e ssh -av /path/to/files remote_server:/path/to/files

use -avn instead of -av to have rsync show what it would do without
actually doing it.

of course if possible I reccomend transferring all files as a non
root user in both cases, my last company I had seperate accounts for
ftp synch and www synch.

nate




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message