Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / September 2004



Tip: Looking for answers? Try searching our database.

mount ftp network disk

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joseph Alotta - 09 Sep 2004 18:23 GMT
Greetings,

I have been using psync for some time to back up my hard drive with
excellent results.  Thank you for all who have helped in this.

I want to back up my personal web pages that are on the earthlink
server.  I figure if I can mount them, then psync can do the rest.

One of the people on this list sent me a URL a while back and I clicked
on it and it mounted his programs as a kind of iDisk.  Does anyone know
how to do that again?

Joe.
Chris Devers - 09 Sep 2004 19:26 GMT
> I want to back up my personal web pages that are on the earthlink server.  I
> figure if I can mount them, then psync can do the rest.

Looks like this will work:

    $ mkdir /tmp/debian
    $ mount_ftp ftp://ftp.us.debian.org/debian/
    /tmp/debian/
    $ ls -la /tmp/debian/
    total 25979
    dr-xr-xr-x    1 cdevers  unknown       512 Sep  9 14:08 .
    drwxrwxrwt   41 root     wheel        1394 Sep  9 14:08 ..
    -rw-------    1 cdevers  unknown       943 Nov 20  2003 README
    -rw-------    1 cdevers  unknown      1290 Dec  4  2000 README.CD-manufacture
    -rw-------    1 cdevers  unknown      2677 Jul 24  2003 README.html
    -rw-------    1 cdevers  unknown     76978 May 26 18:52 README.mirrors.html
    -rw-------    1 cdevers  unknown     38599 May 26 18:52 README.mirrors.txt
    -rw-------    1 cdevers  unknown     23336 May 26 18:52 README.non-US
    lrwx------    1 cdevers  unknown        13 Apr  6 23:58 README.pgp -> README.non-US
    drwx------    1 cdevers  unknown      4096 Nov 20  2003 dists
    drwx------    1 cdevers  unknown      4096 Sep  8 18:52 doc
    drwx------    1 cdevers  unknown      4096 Sep  8 19:36 indices
    -rw-------    1 cdevers  unknown  23462655 Sep  8 19:37 ls-lR
    -rw-------    1 cdevers  unknown   2709576 Sep  8 19:37 ls-lR.gz
    -rw-------    1 cdevers  unknown    271044 Sep  8 19:37 ls-lR.patch.gz
    drwx------    1 cdevers  unknown        46 Dec 19  2000 pool
    drwx------    1 cdevers  unknown        79 Mar 26  2002 project
    drwx------    1 cdevers  unknown      4096 Sep 12  2002 tools
    $ df -Th /tmp/debian/
    Filesystem    Type    Size  Used Avail Use% Mounted on
    ftp://ftp.us.debian.org/debian/
               nfs    1.0G  1.0G     0 100% /tmp/debian/
    $

Neat-o, I'd never thought of trying that before...

The only catches seem to be that:

    * it seems like the Finder can't browse this directory -- I
      get an error about having to wait for the resource to become
      available -- but everything seems to work just fine, and very
      responsively, on the command line.

   * I can't figure out how to unmount it... :-)

Aside from that little wrinkle, this seems to work well...

Signature

Chris Devers

Peter N Lewis - 10 Sep 2004 02:52 GMT
>>I want to back up my personal web pages that are on the earthlink
>>server.  I figure if I can mount them, then psync can do the rest.
[quoted text clipped - 3 lines]
>     $ mkdir /tmp/debian
>     $ mount_ftp ftp://ftp.us.debian.org/debian/

That's kind of the hard way unless you really want to do it from the Terminal.

In the Finder, just choose Go -> Connect to Server, paste in the URL
and hit return and the FTP disk is mounted.

From the Terminal, just use osascript -e 'tell app "Finder" to geturl
"ftp://ftp.us.debian.org/debian/"', except for reasons known only to
Apple, the Finder does not admit to support the geturl suite,
although it must do to since it can be configured as the Internet
Config FTP helper.

>The only catches seem to be that:
>
[quoted text clipped - 6 lines]
>
>Aside from that little wrinkle, this seems to work well...

Neither of these are an issue if the Finder mounts it.

BTW, one little catch is that it is read-only.

Enjoy,
   Peter.

Signature

<http://www.stairways.com/>  <http://download.stairways.com/>

Chris Devers - 10 Sep 2004 03:40 GMT
>>> I want to back up my personal web pages that are on the earthlink server.
>>> I figure if I can mount them, then psync can do the rest.
[quoted text clipped - 6 lines]
> That's kind of the hard way unless you really want to do it from the
> Terminal.

Right, be he implies that he's trying to script it, so it seemed like a
two-word shell command was the approach he was looking for. Getting the
Finder seems cumbersome in this context.

>>    * it seems like the Finder can't browse this directory
>>    * I can't figure out how to unmount it... :-)
>
> Neither of these are an issue if the Finder mounts it.

Right, but again, I'm working on the assumption that he's trying to get
this done with shell tools, not the GUI. If you can mount a filesystem
by poking at a command line tool, intuitively it seems like it should be
much less overhead than bringing in the Finder & AppleScript machinery.

> BTW, one little catch is that it is read-only.

For backups, that's probably okay though.

Signature

Chris Devers      cdevers@pobox.com
http://devers.homeip.net:8080/blog/

np: 'Bank Of Boston Beauty Queen'
     by The Dresden Dolls
     from 'A Is For Accident'

Joseph Alotta - 10 Sep 2004 19:06 GMT
> Looks like this will work:
>
>     $ mkdir /tmp/debian
>     $ mount_ftp ftp://ftp.us.debian.org/debian/
>     /tmp/debian/
>     $ ls -la /tmp/debian/

Thanks Chris and Peter for the help.

I couldn't get this to work on ftp-www.earthlink.net.   I think it is a
login id problem.  mount_ftp uses the same login id that you have on
the mac which in my case is not my email.

mount_ftp seems to finish but then drops out with server not
responding.  I made a directory and used ftp on the command line to
login and mget to copy everything.  Then I ran psync.

Thank again,

Joe.
Chris Devers - 10 Sep 2004 19:16 GMT
>      $ mkdir /tmp/debian
>>     $ mount_ftp ftp://ftp.us.debian.org/debian/ /tmp/debian/
[quoted text clipped - 5 lines]
> id problem.  mount_ftp uses the same login id that you have on the mac which
> in my case is not my email.

Have you tried embedding the login in the URI ?

    $ mount_ftp ftp://user:pass@ftp-www.earthlink.net /Local/path

It seems like that ought to work ...

If this is a dead end & you're looking for a better approach, ncftp is
also nice...

Signature

Chris Devers

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.