View Full Version : Copying files and folders in FTP?
I need to copy a folder html/scans and its subfolders html/scans/stuff to html/pics and html/pics/stuff . I know how to move files in ftp, how can I copy files? If its not possible in ftp is it possible using telnet? Anyone now the command?
Labret
05-03-2001, 08:21 AM
Ok, say you have a directory /Members
From outside that dir, you can "tar" up the entire structure. It will preserve the entire directory structure so when you uncompress it everything will be a carbon copy of the way it was.
So... go one step up the tree from /Members and do "tar -cvf members.tar Members" The members.tar can be called anything you want. No quotation marks either.
Then ftp it to your new server and once in there put the members.tar one step up from where you want it and "tar -vxf members.tar" and if all goes well you'll have you /Members directory in place with all the subdirectorys intact.
I just moved 8 sites from server to server and this saved me a huge ass headache. Or try FXP but I think its a worthless piece of shit.
Labret
05-03-2001, 08:23 AM
Ok, maybe I misread you, is all of this staying on the same server?
Yeah same server. I can zip and download and upload to another server just fine (I use zip instead of tar, easier to work with on my PC too).
I use CuteFTP and need to copy a lot of files to another directory and dont want to upload them again.
Dreamer
05-03-2001, 12:45 PM
Right click -> Move , and then just write full path to new directory
Dreamer, moving the files shifts the files to the other directory. I want to leave a copy of the files in the original directory. I'm unable to do that.
Dreamer
05-03-2001, 02:28 PM
Ok, here is another one, maybe someone has better, but I didn't have time to search for another.
Just open cuteFTP 2 times. Connect to same server with both windows. Select directories wich you want to copy in one window, grab them with your mousy and transfer into another browser window.
Done.
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.