Hard Light Productions Forums
Off-Topic Discussion => General Discussion => Topic started by: an0n on August 14, 2003, 11:25:13 pm
-
I need an SSH-FTP command that'll send a whole directory from the local 'puter to the remote one.
Anyone?
-
If you have SSH installed on both the source and destination PCs you might be able to get away with just using the scp command along with the -r (recursive) switch, provided it's supported in your implementation of SSH, and not have to use FTP at all.
scp -r account:password:/path/to/remote/directory /path/to/local/directory
edit: stupid smiley triggers...
-
I ain't got SSH on the remote one.
Thus why I'm going to all this trouble instead of just logging on to that one and using an FTP get -r command. They want $20 to set the damn thing up.
You'd think after decades of FTP and UNIX and SSH and all that crap that somewhere along the way someone woulda just gone "Hey, maybe we should just make the FTP's send command work on directories too". But no. Because the universe hates me.
Thanks anyway.
-
If you don't have subdirectories in the local folder you could use the mput command like "mput /place/where/local/folder/stuff/is/*". Mput is the put command but with multiple files. That's the only ftp command I could find that looks helpful in this case.
By the way, the "?" ftp command is wonderful, I recommend it :nod:
-
Originally posted by an0n
You'd think after decades of FTP and UNIX and SSH and all that crap that somewhere along the way someone woulda just gone "Hey, maybe we should just make the FTP's send command work on directories too". But no. Because the universe hates me.
WS-FTP LE will send entire directories just fine. I use it regularly. If you've got a *nix box on your end NCFTP3 will send directories too.
-
ftp a tarball, then untar it -xvf to preserve directory structure.
-
you'd have to have an ftp server running on the remote computer, and an ftp client on the local one.
-
...not to mention some kind of shell access on the remote machine, either locally through a terminal or remotely through something like SSH, to decompress the tarball which an0n has already said he doesn't have.
-
Bah. I'm doing it the hard way.
Downloading everything and uploading it to the new place.
-
i'm thinking... you already have an FTP server, that might be able to be used to your advantage, even if you have to upload to your FTP server and then download (SSH the remote computer) onto the remote computer.
i'm curious, is the remote computer or the local computer you were referring to the FTP server? cause if one of them is, that would make it much easier for you to transfer stuff from one to another.