From: Wes Groleau on
gl4317(a)yahoo.com wrote:
> Several years ago, when I last attempted this with IE, that is exactly
> where it wound up. That's why I insisted on finding something other than
> IE.

Well, if you think about it, my comment implies I agree it's a stupid
security issue. But it is also true that M$ _did_ fix it.

Several years ago is not now. As for another browser, well, at work
I'm stuck with IE6, and since it can do this, I take advantage of it
occasionally.

Off-work, I occasionally use IE6 for other reasons. Like it or not,
IE6 is STILL about fifty percent of the traffic to my websites.
So I do need to look at them from that point of view occasionally.

--
Wes Groleau

Methods meddling by amateurs
http://Ideas.Lang-Learn.us/WWW?itemid=889
From: Lao Ming on
On Mar 20, 8:19 am, Jeffrey Goldberg <nob...(a)goldmark.org> wrote:
> On 2010-03-20 7:30 AM, Lewis wrote:
>
> > I just use ncftp on the rare (very rare) occasions I need to ftp. For
> > updating websites, I use webDAV.
>
> I use rsync over ssh for updating websites (so, only those files that
> need updating get transferred).  When I have to use FTP for such a thing
> I use lftp because it can read scripts and can do a rough simulation of
> rsync.
>
> -j

Could you actually provide the command that you use to do this? I'd
love to see it since I've never had much luck with rsync.

From: Jeffrey Goldberg on
On 2010-03-24 8:03 PM, Lao Ming wrote:
> On Mar 20, 8:19 am, Jeffrey Goldberg <nob...(a)goldmark.org> wrote:

>> I use rsync over ssh for updating websites

> Could you actually provide the command that you use to do this? I'd
> love to see it since I've never had much luck with rsync.

Below is a shell script, "sync-goldmark.org.sh" which I use.

===============
#!/bin/bash

RSYNC=/usr/bin/rsync
SSH=/usr/bin/ssh

# rsync arguments to go recursive, presever soft links, and timestamps
# I can't use -a here because I don't want to preseve permissions, and
# can't change owner and group and devices

EXTRA=$*
ARCHIVE_STYLE=-Crltp

# double verbose (will switch to "quiet" if this gets run from Cron)
VERBOSE="-v"

EXCLUDE='.DS_Store'

# testing
#TEST=-n
TEST=

SRC=$HOME/Work/Websites/www.goldmark.org/public_html/

DEST=jeffrey(a)winky.ewd.goldmark.org:/usr/local/www/apache22/data/goldmark.org


$RSYNC $EXTRA $TEST $ARCHIVE_STYLE $VERBOSE --exclude $EXCLUDE \
-e $SSH $SRC $DEST


===============

Note that I have a trailing slash on my source, but I don't on my
destination. (This is something that can trip people up when using rsync.)

--
Jeffrey Goldberg http://goldmark.org/jeff/
I rarely read HTML or poorly quoting posts
Reply-To address is valid
From: Jolly Roger on
In article
<fbf1bcf4-33c1-4353-b62f-8159adad8bb0(a)c34g2000pri.googlegroups.com>,
Lao Ming <laomingliu(a)gmail.com> wrote:

> On Mar 20, 8:19�am, Jeffrey Goldberg <nob...(a)goldmark.org> wrote:
> > On 2010-03-20 7:30 AM, Lewis wrote:
> >
> > > I just use ncftp on the rare (very rare) occasions I need to ftp. For
> > > updating websites, I use webDAV.
> >
> > I use rsync over ssh for updating websites (so, only those files that
> > need updating get transferred). �When I have to use FTP for such a thing
> > I use lftp because it can read scripts and can do a rough simulation of
> > rsync.
> >
> > -j
>
> Could you actually provide the command that you use to do this? I'd
> love to see it since I've never had much luck with rsync.

I use this to synchronize (deploy) only changed items of a web
application I'm writing from my local SVN workspace to a web server:

--
#!/usr/bin/perl

my $DEBUG = 1;

use strict;
if ($DEBUG)
{
use diagnostics;
use warnings FATAL => 'all';
}

# config vars
my $rsync = '/usr/bin/rsync';
my $source = '~/Documents/Subversion/myfolder/trunk/';
my $dest = 'my.hostname.net:/Users/me/Sites/myfolder/';
my $output = '~/Desktop/deploy.out';
my @excludes = (
'logs/',
'cache/',
'templates_c/',
'*.log',
'.DS_Store'
);

# build exclusion switches
my $excludes = '';
foreach my $expression (@excludes)
{
$excludes .= "--exclude='$expression' ";
}
chop ($excludes);

# build the command
my $command = "$rsync -vcrz --progress --itemize-changes $excludes
--cvs-exclude $source $dest > $output";

# execute the command
my $result = `$command`;

print "Done.\n";
print "Output is at $output\n";
--

After running it, deploy.out contains a log of the operation, including
a list of the files that were transferred. It looks like this:

--
building file list ...
0 files...
100 files...
200 files...
300 files...
331 files to consider
<fcsT.... php/login.php
3480 67% 6.62kB/s 0:00:00
5144 100% 9.79kB/s 0:00:00 (xfer#59, to-check=30/331)
..
..
..
sent 137912 bytes received 4666 bytes 7311.69 bytes/sec
total size is 1982104 speedup is 13.90
--

--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
From: Ian Gregory on
On 2010-03-25, Lewis <g.kreme(a)gmail.com.dontsendmecopies> wrote:
> In message <fbf1bcf4-33c1-4353-b62f-8159adad8bb0(a)c34g2000pri.googlegroups.com>
> Lao <laomingliu(a)gmail.com> wrote:
>
>> Could you actually provide the command that you use to do this? I'd
>> love to see it since I've never had much luck with rsync.
>
> rsync -az --progress source server::sitedir

He was talking about rsync over ssh whereas your command relies on there
being an rsync daemon running on the server. So a more usual command
might be more like:

rsync -az -e ssh source server:sitedir

Ian

--
Ian Gregory
http://www.zenatode.org.uk/