Welcome Guest.   Make a donation to an author on the site August 21, 2014, 01:05:25 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
View the new Member Awards and Badges page.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: FTP - How do I duplicate / copy remote folder?  (Read 6655 times)
Ampa
Charter Member
***
Posts: 589


I am cute ;)

View Profile WWW Give some DonationCredits to this forum member
« on: February 08, 2008, 07:54:35 AM »

I am working on a website MyDomain.net and have created a subdomain Preview.MyDomain.net where I make all changes.

Once the client has OKed the update I need to copy the Preview site over the Live site, but Filezilla doesn't have the ability to copy - indeed a search of their FAQ reveals that "there is no copy command in the FTP Protocol".

OK so what is the solution?

Sure, I could reupload the site from my local drive to the remote server, but surely copying on the remote server would be far quicker?

Ampa
Logged
wilfrednilsen
Charter Honorary Member
***
Posts: 22


View Profile Give some DonationCredits to this forum member
« Reply #1 on: February 08, 2008, 09:48:23 AM »

The FTP protocol is outdated. Use WebDAV – i.e. request that your hosting provider makes it possible to use WebDAV.

Windows and Mac have built in WebDAV clients. For example using the Windows WebDAV mini redirector, map a drive letter in Windows to your remote server and use it as a standard drive.
Logged
allen
Charter Member
***
Posts: 1,166



Powered by Beard

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: February 08, 2008, 10:22:18 AM »

on a unix system with shell access, you could telnet in and use the ol cp -r dirname copyname
Logged
sri
Honorary Member
**
Posts: 673


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: February 08, 2008, 11:48:01 AM »

Try www.net2ftp.com.
Logged

Ampa
Charter Member
***
Posts: 589


I am cute ;)

View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: February 08, 2008, 02:30:31 PM »

Thanks for the input.

wilfrednilsen: WebDav looks interesting (I need to read more), but on DreamHost there seem to be potential issues with using it (regarding the unique / peculiar way they set up users, is you enable WebDav you loose the ability to FTP and SSH)


Allen: I knew that there must be some command-line magic, I'll read up on shell access - not something I've had cause to do before.

Sri: This is possible, and indeed the service is already installed on DreamHost. I tend to shy away from using it though, in favour of an installable application - perhaps I should rethink!



And to answer my own question with another alternative...

AceFTP (freeware, but not OSS) seems significantly more powerful than Filezilla, and allows for easy point and click, drag and drop moving and copying on remote servers.
Logged
allen
Charter Member
***
Posts: 1,166



Powered by Beard

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: February 08, 2008, 03:29:55 PM »

For future reference--

With dreamhost, just make sure your user is set as Shell Account; then just open telnet. (or snag a copy of putty) and connect to your domain using your ftp user/pass combo.

[copy or print]
cp -r foldername copyname
« Last Edit: February 08, 2008, 03:31:34 PM by allen » Logged
sri
Honorary Member
**
Posts: 673


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: February 08, 2008, 10:37:14 PM »

Poderosa is a better SSH client IMO, has tabs.

I tried using FileZilla, but felt it sucks compared to FlashFXP. I'll give AceFTP a try.
Logged

tinjaw
Supporting Member
**
Posts: 1,926



I'm so glad breakbeat techno isn't an illegal drug

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #7 on: March 11, 2008, 02:29:46 PM »

then just open telnet.


Noooooooooooooooooooooooooooooooooooooooooooooooo never use Telnet. It is insecure. Use and SSH connection, and as Allen said, get PuTTY so you can do it (and other SSH-related stuff).

I am going to go one step further and say that you shouldn't be relying on a simple copy for various reasons, to include inefficiency and it is not transactional (i.e. I can fail partially).

I understand there are levels of tackling this type of thing and some of them may be overkill in many (if not most) cases, however... I still suggest you look into using version control. Your Dreamhost account already has subversion. I can elaborate if desired, but the quickie explanation is that you can work on a local copy, commit it in to svn, check it out on the test server, test it, make any changes, commit it to svn, check it out on the production server.

I would make this SOP and create the necessary batch/scipts to support this. You can then just modify the constants to account for changing usernames, passwords, host names, etc.
Logged

 
f0dder
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #8 on: March 12, 2008, 09:17:31 AM »

What tinjaw said.

And please tell me that dreamhost doesn't allow telnet access.
Logged

- carpe noctem
Ampa
Charter Member
***
Posts: 589


I am cute ;)

View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: March 14, 2008, 08:50:04 PM »

Update...

AceFTP is now annoying me, it continues to pop-up a reminder that I am using the free version (not the Pro version), even though I visited the site, and registered as a user of the free version (not the Pro version), and declined the offer to buy the Pro version (cos I want the free version!).

It also has an in-application advert, permanently reminding me that there is a Pro version... just in case I hadn't got the message by now!

Subversion... OK so maybe I do need to take the plunge and play with the big boys. I asked the Dreamhost super-happy-svn-installing robot to make me a subversion install, which it did (happily). I installed TortoiseSVN on my home machine. I even created an empty SVN repository...

...but now I am stuck (couldn't import my files successfully), lost and faced with a 126 page help file full of long words that I don't really understand.

Anyone have a nice basic guide / tutorial that will get me up and running?
Logged
tinjaw
Supporting Member
**
Posts: 1,926



I'm so glad breakbeat techno isn't an illegal drug

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #10 on: March 15, 2008, 03:13:50 AM »

Anyone have a nice basic guide / tutorial that will get me up and running?

Your main reference should be the red bean book. I would suggest you read the Preface, Chapter 1, and Chapter 2. You can worry about the rest later on as they are more advanced topics. That book will use the command line client. I suggest you use that and follow along, but that you should switch to TortoiseSVN after you have gone through those chapters. The TortoiseSVN help file will make much more sense then.
Logged

 
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.039s | Server load: 0.04 ]