hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : help moving files to other server
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

help moving files to other server

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-29-2005, 05:27 PM
Blueheaven Blueheaven is offline
Web Hosting Evangelist
 
Join Date: Apr 2004
Posts: 476

help moving files to other server


I about 10 folders and files I would like to move onto another server, but the problem is that this directory also contains lots of other folders with lots of big files - about 30 gig,

Im unsure as to what to do as I cannot use the regular
rsync
scp
or tar -cvf files.tar /home/username/public_html/

unless there is an option to select the folder and files
and then transfer


example
Server 2 to server 1
home
--> username
-> public_html
->folder 1, folder 2, folder 3
but not folders widget, blue widget(5 gig), red widget (10 gig)
etc , etc

Reply With Quote


Sponsored Links
  #2  
Old 03-29-2005, 06:13 PM
datums datums is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 1,148
scp -R folderthatyouwant user@server:/wheretomove/it/

__________________
Datums Internet Solutions, LLC
Systems Engineering & Managed Hosting Services
Complex Hosting Consultants

Reply With Quote
  #3  
Old 03-29-2005, 11:35 PM
assistanz247 assistanz247 is offline
Web Hosting Master
 
Join Date: Nov 2004
Location: India
Posts: 1,069
Re: help moving files to other server

Quote:
Originally posted by Blueheaven
I about 10 folders and files I would like to move onto another server, but the problem is that this directory also contains lots of other folders with lots of big files - about 30 gig,

Im unsure as to what to do as I cannot use the regular
rsync
scp
or tar -cvf files.tar /home/username/public_html/

unless there is an option to select the folder and files
and then transfer


example
Server 2 to server 1
home
--> username
-> public_html
->folder 1, folder 2, folder 3
but not folders widget, blue widget(5 gig), red widget (10 gig)
etc , etc

Using Rsync is the fasted and best way of doing file transfer, you can use the following command to do that :

rsync -a -e ssh source/ username@remotemachine.com:/path/to/destination/

__________________
Outsourced Webhosting Support / cPanel Server Management Since 2004
Technical Support / Web Development / Billing Support

Reply With Quote
Sponsored Links
  #4  
Old 03-30-2005, 02:41 PM
Blueheaven Blueheaven is offline
Web Hosting Evangelist
 
Join Date: Apr 2004
Posts: 476
thanks for the info but then i would have to run rsync 15 times
Is therer a way to create a tar such as

tar -cvf files.tar /home/username/public_html/

and then update the tar with the new folders and then transfer everything as one folder

Reply With Quote
  #5  
Old 04-13-2005, 05:19 PM
allvaluehosting allvaluehosting is offline
Newbie
 
Join Date: Apr 2005
Location: Canada
Posts: 26
If you are using WHM, it is best to use it in this case.

Best Regards,

__________________
Allvalue.net/webhosting - High Quality and affordable Web Hosting Solutions.
Shared Hosting, Reseller Hosting and much more...

Reply With Quote
  #6  
Old 04-13-2005, 06:16 PM
Lightwave Lightwave is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: San Jose, CA.
Posts: 1,616
Quote:
Originally posted by Blueheaven
thanks for the info but then i would have to run rsync 15 times
Is therer a way to create a tar such as

tar -cvf files.tar /home/username/public_html/

and then update the tar with the new folders and then transfer everything as one folder
I'm not sure what you mean by "and then update the tar with the new folders and then transfer everything as one folder"

tar -cvf files.tar /directory1 /directory2 /directory3 /directory4

or something more specific (use regular expression matching to match the file types you want) like

tar -cvf files.tar /directory1/*.html /directory1/*.php /directory1/*.cgi /directory2 /directory3

works just peachy... ?

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
MochaHost Enhances Server Performance with Tomcat Native Library Accelerator Web Hosting News 2012-08-01 15:35:20
Cloud City Hosting Integrates Backup with Cloud Hosting Plans Web Hosting News 2012-05-11 16:21:19
Linux OS CloudLinux Releases Virtualized File System for Shared Web Hosts Web Hosting News 2012-02-16 14:22:51
Web Host Server Cloud Canada Deploys HP Private Cloud Web Hosting News 2011-10-14 14:26:52
Web Host Future Hosting Adds New Features to CDN Web Hosting News 2011-06-16 17:30:23


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?