Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jun 2003 10:20:25 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Andre <andre@krang.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: access symlink in ftpd??
Message-ID:  <20030620005025.GS93137@wantadilla.lemis.com>
In-Reply-To: <003701c33719$470beda0$0f00a8c0@yz123nn123zm128> <003301c33719$4533f950$0f00a8c0@yz123nn123zm128> <002501c33719$1fddb740$0f00a8c0@yz123nn123zm128> <002401c33719$1f9fc3e0$0f00a8c0@yz123nn123zm128>
References:  <003701c33719$470beda0$0f00a8c0@yz123nn123zm128> <003301c33719$4533f950$0f00a8c0@yz123nn123zm128> <002501c33719$1fddb740$0f00a8c0@yz123nn123zm128> <002401c33719$1f9fc3e0$0f00a8c0@yz123nn123zm128>

next in thread | previous in thread | raw e-mail | index | archive | help

--64qHOIbXd9REl2gx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

[Format recovered--see http://www.lemis.com/email/email-format.html]

Overlong lines.

On Friday, 20 June 2003 at 12:44:13 +0200, Andre wrote:
On Friday, 20 June 2003 at 12:45:27 +0200, Andre wrote:
On Friday, 20 June 2003 at 12:46:56 +0200, Andre wrote:
On Friday, 20 June 2003 at 12:46:59 +0200, Andre wrote:

Once is enough, and this time is 10 hours in the future.

> I have setup a FreeBSD box with Mysql,apache+mod_php for practical
> purposes, when i want to update the webpages on the FreeBSD machine
> i found it very hard to first use FTP to transfer the pages from my
> windows machine, and then SSH in to the FreeBSD machine and move the
> files to the documentroot.
>
> how do i do a symlink that points to the default ftpddir
> ( /usr/home/name ) ?

What's the problem?

 $ ln -s $documentroot ~

But that's not the real answer.  If you're using ftp, you're also
transferring your password in the clear.  After that, you don't need
ssh to access the machine; you've already compromised yourself.  I use
rsync for this purpose.  Here's the beginning of the script:

  #!/bin/sh
  #=20
  # Synchronize the web sites.
  #=20
  RSYNC_RSH=3Dssh
  export RSYNC_RSH
  echo +++ Transferring grog
  rsync -Lzav --exclude=3DRCS  --exclude=3Dprivate --exclude=3D"*~" ~grog/p=
ublic_html/* website:htdocs/www.lemis.com/grog
  echo +++ Transferring www.lemis.com
  cd /usr/local/www/data
  rsync -zLtuv --exclude=3DRCS --exclude=3D"*~" --exclude=3Dauug --exclude=
=3Dbookmarks.html * website:htdocs/www.lemis.com


Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers

--64qHOIbXd9REl2gx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)

iD8DBQE+8lpRIubykFB6QiMRAjlfAJ9QJJpWGdK0wHPpbiT7pkytuMn31gCeJOrG
kn/s5sy8/Qjn0FX3lI7OIgE=
=1awa
-----END PGP SIGNATURE-----

--64qHOIbXd9REl2gx--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030620005025.GS93137>