hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : VPS Hosting : help transferring files from one VPS account to another
Reply

VPS Hosting Virtual private server discussion and vps hosting solutions. Review VPS hosting providers and offer advice on virtual web hosting solutions. If your service is unavailable, please click here.
Forum Jump

help transferring files from one VPS account to another

Reply Post New Thread In VPS Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-09-2008, 03:10 PM
jimnyc jimnyc is offline
Registered User
 
Join Date: Nov 2003
Posts: 83

help transferring files from one VPS account to another


Here's what I would like to do:

I have 2 domains under the SAME vps, and just want to copy all the folders under one domain to the other. I don't want to download them and re-upload them as there are way too many. Is there an easy way to copy a select amount of folders in another way from one account to another? (I don't want to copy the entire account, just certain folders).

Thanks!

Reply With Quote


Sponsored Links
  #2  
Old 04-09-2008, 03:14 PM
Ben James Ben James is offline
Web Hosting Guru
 
Join Date: Feb 2007
Posts: 265
you try rsync

Or if there is cpanel running you can use there user transfer script.

Could you also please state weather this is windows or linux vps

__________________
Master Reseller Accounts
Shared Hosting
VPS hosting
ToastHosts.com support{at}toasthosts.com


Last edited by Ben James; 04-09-2008 at 03:15 PM. Reason: more info
Reply With Quote
  #3  
Old 04-09-2008, 03:21 PM
jimnyc jimnyc is offline
Registered User
 
Join Date: Nov 2003
Posts: 83
Quote:
Originally Posted by Ben James View Post
you try rsync

Or if there is cpanel running you can use there user transfer script.

Could you also please state weather this is windows or linux vps
This is a linux box and I am using CPanel. I see an option for transferring/copying accounts, but I only want to copy a handful of folders to the new domain.

Thanks!

Reply With Quote
Sponsored Links
  #4  
Old 04-09-2008, 03:27 PM
Ben James Ben James is offline
Web Hosting Guru
 
Join Date: Feb 2007
Posts: 265
Ok,

try this links and see how you get on,

http://www.go2linux.org/scp-linux-co...files-over-ssh

__________________
Master Reseller Accounts
Shared Hosting
VPS hosting
ToastHosts.com support{at}toasthosts.com

Reply With Quote
  #5  
Old 04-09-2008, 03:32 PM
michaelfoo michaelfoo is offline
Web Hosting Master
 
Join Date: Mar 2003
Location: Singapore
Posts: 710
Since you are transferring only 2 domains, no harm using the simplest way:
1. Create an account on the new server with shell access
2. Login to your old server cpanel, go to Backup -> Download/Generate Full Backup
3. Choose "scp" under Destination, and fill up the blanks with the shell access account that you created on the new server
4. Repeat step 2 & 3 for the other cpanel account on old server
5. Login to new server SSH and restore the accounts using "/scripts/restorepkg usernamehere"

Cheers.

__________________
SecureAX Internet (RCB No. 53114068K) - 99.9% Uptime Affordable & Reliable Virtual Private Server
- Multihomed Premium Network in The Westin Building (Seattle, US)
- Unmetered Shared Bandwidth in Changi Datacenter (Singapore)

Reply With Quote
  #6  
Old 04-09-2008, 08:07 PM
sleddog sleddog is offline
Web Hosting Master
 
Join Date: Mar 2005
Location: Labrador, Canada
Posts: 873
If I read the original post right, jimnyc wants to copy folders from account A to account B on the same server.

In which case you'd just use the 'copy' command Something like...

[root@vps] cp -a /home/accountA/public_html/myFolder /home/accountB/public_html

Would copy "myFolder" from the public_html directory of Account A to the same location in Account B.

__________________
sleddog

Reply With Quote
  #7  
Old 04-09-2008, 09:55 PM
blueroomhosting blueroomhosting is offline
Junior Guru
 
Join Date: Mar 2008
Location: UK
Posts: 220
The problem with "cp -a" from one user account to another is that everything will retain the same owner, so probably won't work correctly in its new home.

To carry on with Sleddog's example of:
[root@vps] cp -a /home/accountA/public_html/myFolder /home/accountB/public_html

It would then be necessary to change the ownership of the files as such:
[root@vps] find /home/accountB/public_html/myFolder -user accountA | xargs -n 1 chown accountB

The find command prints all the files still owned by accountA, xargs then gives this output to the chown command which changes the ownership to accountB.

Best of luck if you decide to do this all from the command line, it shouldn't prove that tricky if you can find out where the original folders are and where you want to move them to.

Jim

__________________
Blue Room Hosting - High availability UK VPS
KVM Plans - Multiple OS support. Virtual console and CD drive.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Yahoo Integrates Email Client with Dropbox Cloud Storage Web Hosting News 2013-04-04 14:31:40
Pancake.io, DropPages Let Users Host Web Site Files on DropBox Blog 2011-12-08 17:03:11
Web Host Hosting Ireland Launches Online Backup Service CloudBox Web Hosting News 2011-09-27 20:00:52
Web Host U-SYNC Launches CM4all OnlineDrive-Powered Cloud Storage Web Hosting News 2011-06-22 20:54:21
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?