Hi guys and gals,
I was wondering if anyone has a recommendation for a good command line ftp client - ideally I want something that I can use much like rsync but that works over ftp. ie. I want to upload entire directory trees. (and I don't think I can do this with the default ftp client, but I'd love to be shown wrong)
Thanks.,
Hadley
On Jun 3, 2007, at 3:29 AM, hadley wickham wrote:
Hi guys and gals,
I was wondering if anyone has a recommendation for a good command line ftp client - ideally I want something that I can use much like rsync but that works over ftp. ie. I want to upload entire directory trees. (and I don't think I can do this with the default ftp client, but I'd love to be shown wrong)
Has been a while, but IIRC ncftp has a very rich feature set.
Gerd
I've done this by writing a short php script using the CLI version of php. If all you're wanting to do is upload a certain directory regardless of what has changed, the default binary at /usr/bin/php will do the job handily. I'm fairly sure you could use other scripting tools such as ruby to do the same thing. The advantage of taking this approach is the ability to write extensive logic around the actual upload.
Charley
hadley wickham wrote:
Hi guys and gals,
I was wondering if anyone has a recommendation for a good command line ftp client - ideally I want something that I can use much like rsync but that works over ftp. ie. I want to upload entire directory trees. (and I don't think I can do this with the default ftp client, but I'd love to be shown wrong)
Thanks.,
Hadley
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
I'm not sure about the standard ftp, but lftp can do this (available at least through MacPorts), and is also compatible with TLS/SSL:
lftp -u 'username,password' remote.server.com -e "mput /local/dir/ files* /remotedir; exit"
or, to use ssl:
lftp -u 'username,password' remote.server.com -e "set ftp:ssl-protect- data true; mput /local/dir/files* /remotedir; exit"
and to restore data,
lftp -u 'username,password' remote.server.com -e "mget /remotedir/ files* -O /localdir; exit"
-O is not required if you're saving everything to the local directory.
man lftp should give you all the available options that can go in -e "...". The above examples are for just using regular ftp transfers. If you want to mirror a directory from ur local machine to the remote server, then instead of mput you use:
"mirror --reverse /local/dir/name remotedirname;"
and to restore, you just do
"mirror remotedirname /local/dir/name;"
also, in addition to --reverse, u can use --delete to delete remote files that don't exist locally, "--exclude files" to do just that, etc. --reverse is required if you're mirroring from the machine you're working on to the remote server. Read up on the manual to find all the options.
On Jun 3, 2007, at 11:29 AM, hadley wickham wrote:
Hi guys and gals,
I was wondering if anyone has a recommendation for a good command line ftp client - ideally I want something that I can use much like rsync but that works over ftp. ie. I want to upload entire directory trees. (and I don't think I can do this with the default ftp client, but I'd love to be shown wrong)
Thanks.,
Hadley
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Hi,
ncftp is the best CLI version of ftp I've ever found (and has been for years). As far as I'm concerned, doing the rsync thing is just not worth it using ncftp, or any other ftp library, given that lftp is available. If you want to build a much deeper appreciation for both rsync and lftp, just read the lftp manual to get an idea what you have to contend with to make ftp work (the guy who wrote this must have had a hard life with really bad communications and unreliable hardware :-)
Cheers, Bob
---- Bob Hutchison -- tumblelog at <http:// www.recursive.ca/so/> Recursive Design Inc. -- weblog at <http://www.recursive.ca/ hutch> -- works at http://www.recursive.ca/
i am not sure, whether this is some new behavoir or worked all the time like this:
when i do a search in an open document CMD/APPLE+G does a "find next". when the document end is reached only a small beep is heard to indicate that nothing (more) was found. i really miss that textmate starts from top of the document with "find next", maybe ask before to search again. at the moment i have to jump to documentstart and hit CMD+G again.
or am i missing something?
markus
Maybe you unticked the "Wrap around" box in the Find dialog?
Robin
Hi Hadley,
I like yafc - 'yet another ftp client.' Works great, works with directories. Give it a look.
Brian
On Jun 3, 2007, at 2:29 AM, hadley wickham wrote:
Hi guys and gals,
I was wondering if anyone has a recommendation for a good command line ftp client - ideally I want something that I can use much like rsync but that works over ftp. ie. I want to upload entire directory trees. (and I don't think I can do this with the default ftp client, but I'd love to be shown wrong)
Thanks.,
Hadley
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate