[SLL] rsync(ish) with shell access

nicafyl nicafyl at gmail.com
Wed Jan 7 15:16:31 PST 2009


Lots of answers. This looks like the easiest/cleanest. I just need to get
the C++ compiler put on the machine where I have shell access (or get some
missing libraries if I make the binary elsewhere).

Note that the "can look like a drive on Windoze" option didn't mean it just
looked like one. There is software (some executable you download) for
Windoze to glue the pieces together.

If anyone cares, the hosting company is servage.net (in Germany).
Interesting structure of Linux clusters with huge amounts of disk space and
bandwidth for cheap. Rumor is that if you use this link
http://www.servage.net/?coupon=cust33858 you (and I) will get an extra 25GB
of space. By HUGE I mean 510GB of disk and 5010GB of transfer per month for
$6.45/mo. If nothing else, it is a pretty cheap price for a big remote disk
drive. :-)

On Wed, Jan 7, 2009 at 3:47 PM, Jesse Keating <jkeating at j2solutions.net>wrote:

> On Wed, 2009-01-07 at 15:29 -0600, nicafyl wrote:
> > I have a hosting account that doesn't offer shell access. FTP and some
> > strange "can look like a drive on Windoze" options. Usually, I just FTP
> > stuff over there but I really need the equivalent of rsync. That is,
> sending
> > updates to that machine from a machine where I have shell access (but not
> > GUI access).
> >
> > Before I start writing some tacky code, any brilliant ideas?
> >
> > Thanks.
> >
>
> Use the 'mirror' tool within lftp
>
> lftp :~> help mirror
> Usage: mirror [OPTS] [remote [local]]
>
> Mirror specified remote directory to local directory
>
>  -c, --continue         continue a mirror job if possible
>  -e, --delete           delete files not present at remote site
>     --delete-first     delete old files before transferring new ones
>  -s, --allow-suid       set suid/sgid bits according to remote site
>     --allow-chown      try to set owner and group on files
>     --ignore-time      ignore time when deciding whether to download
>  -n, --only-newer       download only newer files (-c won't work)
>  -r, --no-recursion     don't go to subdirectories
>  -p, --no-perms         don't set file permissions
>     --no-umask         don't apply umask to file modes
>  -R, --reverse          reverse mirror (put files)
>  -L, --dereference      download symbolic links as files
>  -N, --newer-than=SPEC  download only files newer than specified time
>  -P, --parallel[=N]     download N files in parallel
>  -i RX, --include RX    include matching files
>  -x RX, --exclude RX    exclude matching files
>                        RX is extended regular expression
>  -v, --verbose[=N]      verbose operation
>     --log=FILE         write lftp commands being executed to FILE
>     --script=FILE      write lftp commands to FILE, but don't execute
> them
>     --just-print, --dry-run    same as --script=-
>
> When using -R, the first directory is local and the second is remote.
> If the second directory is omitted, basename of first directory is used.
> If both directories are omitted, current local and remote directories
> are used.
>
>
> --
> Jesse Keating RHCE      (http://jkeating.livejournal.com)
> Fedora Project          (http://fedoraproject.org/wiki/JesseKeating)
> GPG Public Key          (geek.j2solutions.net/jkeating.j2solutions.pub)
> identi.ca               (http://identi.ca/jkeating)
>



-- 
Phil Hughes
nicafyl at gmail.com -- phil at ctpni.com


More information about the linux-list mailing list