mount -t ftp ftp://ftpserver/ftpdir /mnt ??

Backup, Restore und Transfer von Daten
Post Reply
alexander newald
Posts: 1117
Joined: 2002-09-27 00:54
Location: Hannover
Contact:
 

mount -t ftp ftp://ftpserver/ftpdir /mnt ??

Post by alexander newald »

Hallo,

hat jemand eine Idee, wie man sowas hinbekommt?

Alexander Newald
djbennyf
Posts: 176
Joined: 2003-04-06 19:44
 

Re: mount -t ftp ftp://ftpserver/ftpdir /mnt ??

Post by djbennyf »

ftpmount gibt es!
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: mount -t ftp ftp://ftpserver/ftpdir /mnt ??

Post by dodolin »

Mein Kernel unterstützt folgende Dateisysteme:

Code: Select all

bash-2.05b$ cat /proc/filesystems 
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   tmpfs
nodev   shm
nodev   pipefs
        cramfs
nodev   ramfs
nodev   devfs
nodev   devpts
        ext3
nodev   usbdevfs
nodev   usbfs
nodev   nfs
Suchst du, Google... http://www.google.com/search?q=linux+ftpfs
Volle Auswahl!

Ok, ich habe Debian, also

Code: Select all

cheffe:~# apt-get install ftpfs-utils
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  ftpfs-utils 
0 packages upgraded, 1 newly installed, 0 to remove and 145  not upgraded.
Need to get 12.3kB of archives. After unpacking 81.9kB will be used.
Get:1 http://ftp.de.debian.org unstable/main ftpfs-utils 0.6.2-10 [12.3kB]
Fetched 12.3kB in 0s (34.8kB/s)  
Selecting previously deselected package ftpfs-utils.
(Reading database ... 67387 files and directories currently installed.)
Unpacking ftpfs-utils (from .../ftpfs-utils_0.6.2-10_i386.deb) ...
Setting up ftpfs-utils (0.6.2-10) ...

cheffe:~# man ftpmount
Auszug aus dieser, falls du es doch nicht mit ftpmount, sondern mit mount machen möchtest:

Code: Select all

THE MOUNT WAY
       If  for  some  reason  you  choose  not  to  use ftpmount (you probably
       installed the kernel patch and are too lazy to install  ftpmount  too),
       here's the way to use good-ol mount:

       mount  -n  -t  ftpfs none mount_point -o ip=server_ip [,user=user_name]
       [,pass=  password]   [,port=server_port]   [,root=   root_dir]   [,own]
       [,uid=id] [,gid=id] [,fmode=mask] [,dmode=mask] [,active]

       Please  note that you have to provide the server's IP and that the only
       way to  enter a password is in clear.

       Example:    mount    -n     -t     ftpfs     none     /mnt/ftpfs     -o
       ip=127.0.0.1,user=mali,pass=my_pass

HINTS
       Use  -n  mount option! I bet you don't want your user/password informa-
       tion listed in mtab.

       Don't push it! (pushing it = a dozen processes  reading  on  the  mount
       point)

       It  works  best  for one process! While concurrent access (under normal
       circumstances) shouldn't cause any problem, the output is optimized for
       one  process  reading (the TCP connection is kept alive). So, if you're
       gonna watch a movie, you don't want other processes to access the mount
       point and kill the throughoutput (trust me!).
Post Reply