Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a large directory with multiple subdirectories on my local computer that I'd like to put on an ftp server.
I can do it only from a terminal (no GUI). So I am trying to use mput instead of just put. However, when I use mput /dirname, mput asks 'y' or 'n' for each file. Is there a way to use mput in 'quiet' mode, or use an alternate single command that will not ask me any y/n question?
ah, I don't have root access to the machine, so can't install ncftp.
But ftp has been around forever, but when I log in using ftp, hasn't there a simple way to give a command like 'mput options /dirname' that can simply upload the whole enchilada?
You can install ncftp in your home directory if you want.
You can also try to use scp, or rsync that support recursive directory uploads.
First question: How to install it in my home directory only?
Second : I am not aware of scp or rsync ; or how to install those (preferably in my own dir).
Can someone please enlighten? From your comments, bathory, it looks like rsync may be a better solution, in that it appears to sync folders rather than just ftp. It's important to me because if connection gets broken or ftp stops in the middle, I would like to synch rather than copy all over again. Can someone pls help? Thanks.
1st. If you cannot install it using your distro's package manager since you don't have root access, you can try to compile the ncftp source code.
2nd. scp and rsync are also installed by default in most distros. But keep in mind that the box you're trying to upload files must run sshd or rsyncd daemons in order to be able to use these tools.
Well, The remote server is running Redhat 4(or 5). I am running Filezilla ftp server on my Windows machine. My initial thought was that I would ftp my remote dir structure to my local machine using 'mput', but can't seem to. Is it possible without too many complications?
Why don't you use a windows client to download what you want from the Linux box?
Router problem. Getting someone to open up the ports is close to impossible if I want to use an ftp client on my windows machine. I would rather have a program (such as mput) running on the server that would log into my machine and copy files to my ftp server.
I suspect I did not make clear how it's supposed to work.
- I have an ftp server (machine 1).
- My files are located on a remote Redhat server (machine 2) to which I have terminal access. I can log into it. From terminal, I can ftp machine 1.
- I need to enter some sort of a command (like mput) on machine 2 which will copy all the files/folders to machine 1 without prompting for 'y' or 'n' for each file.
Is it possible? Or is it possible, at least, by installing an application locally? I do not have root access to machine 2.
You can either install cwrsync or just openssh for windows in machine 1 and use rsync or scp from macune2 (Linux box),
or install ncftp in your homedir in machine 2 and use ncftp to transfer files to your windows box (machine 1). I don't see any other alternative.
Or try to fix the router if the problem is in your side.
Another possibility is that you make a tar archive of everything you want in machine 2 and then upload the tar file to machine 1.
Update: I figured out bgput. So please ignore post below.
I have another question.
Here's the setup.
Machine 1 : Home machine. (Windows)
Machine 2 : Remote Machine with my directory (source files) running redhat 5.
Machine 3 : FTP Server (destination for my files).
From 1, I log into 2 using putty. I start ncftp and start upload process. The problem here is that I need to keep machine 1 running all the time until ftp is complete even though it's functionally not doing anything except run putty. The upload process takes a few hours. I want to see if I can somehow kick start ncftp job on machine 2 and let it run in background so I can shutdown the home machine? I know you can always run a program in background in Unix, but ncftp has its own prompt.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.