HOWTO: mount ftpfs under linux
Posted in IT, Internet, Server Diary | By tarotoast |
1&1's Dedicate Servers come with a free FTP backup account that is only accessible within the server, and has a capacity matching the server's harddrive. Wouldn't it be nice if I don't have to use text-only ftp command to put, get files from that server? Yeah, mount it as an directory.
There are couple options available:
FTPFS is obsolete. Since FUSE is merged into Linux Kernel 2.6.14, it seems reasonable to choose FUSE than LUFS. So the task now is to recompile a Linux Kernel version 2.6.14 and up with FUSE support. As far as how to compile the kernel, there are way too many articles detailing step by step howtos. Since this dedicated server is using FC3, I followed this article. If you have a kernel 2.6.14 and up and want to enable FUSE, simply add this into your kernel's .config file.
CONFIG_FUSE_FS=y
Reboot with the new FUSE-enabled kernel, then we're ready to use all the Filesystem based on FUSE. There were quite many. Since the focus is to mount FTP access as a directory, using FTP as keyword and search through the page brings us to two choices:
CurlFtpFs seems to be more feature-rich, so I went with it. Note that on SF's Project Detail, the Development Status is 3-Alpha, so use it with your own risk. Since I'm only working on occasional copying and retrieving of backups, and it works fine, I'm happy with it. Installation of CurlFtpFs is simple, given that libcurl and dependencies are installed correctly. These are the steps:
- Download and extract the latest version of CurlFtpFs here.
- Configure: ./configure
- Compile: make
- Install: make install
So it's done. Mounting procedure is as followed:
- mkdir MountPoint (eg: mkdir /backup)
- curlftpfs -o user=USERNAME:PASSWORD ftp://FTPHost/ MountPoint/
(eg: curlftpfs -o user=testusr:mypass ftp://127.0.0.1/ /backup/)
Done. Now that FUSE is installed, here are some other interesting filesystems available under FUSE:
- SMB for FUSE
- GmailFS
- CvsFS
- User-level Versioning File System
- SshFS
- BitTorrent File System
- WikipediaFS
- Flickrfs
- BlogFS
- CryptoFS
I was trying to get Flickrfs working has no success at the authentication part where I need to authorize the Flickr API to access my Flickr photos. If you succeed, please tell me how.
April 3rd, 2006 at 5:28 pm
[...] I tried to restore mysql database through the dumped out database via phpmyadmin by uploading them into the sql query window. It doesn't work (orz). What I found out that worked way easier is to create the database & user via Plesk first, and then copy the old database files onto the new ones. Files are located under /var/lib/mysql/[databasename]/. Since I'm getting my old files back from the FTP backup server, installing FTPFS helps a lot. [...]
June 11th, 2006 at 4:22 am
[...] mount ftpfs under linux http://blog.tarotoast.com/2006/04/02/242/ Permalink [...]
November 7th, 2006 at 4:15 pm
[...] 在這個 Blog 上面似乎沒有寫著什麼快樂悲傷,頂多偶爾一兩篇惡搞,一兩句抱怨,一些飄過腦海的感覺,而且中間還夾雜了一堆宅男業務心得,和宅男奇妙的企圖心。所以說,現在到底在講什麼我也不知道。只是在等 IWDC 的技術人員回 Email 等的很不耐煩,跑來打 Blog。 [...]
April 20th, 2007 at 4:40 pm
Hey,
I love what you’e doing!
Don’t ever change and best of luck.
Raymon W.
March 2nd, 2008 at 12:09 pm
[...] TB que tengo ahora online. Algo tendré que hacer con tanto espacio. De momento, he estado mirando cómo montar una carpeta ftp como si fuera local y, aunque es lento, permite manejar los ficheros de manera bastante [...]
February 23rd, 2010 at 11:56 pm
[...] TB que tengo ahora online. Algo tendré que hacer con tanto espacio. De momento, he estado mirando cómo montar una carpeta ftp como si fuera local y, aunque es lento, permite manejar los ficheros de manera bastante [...]