Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 25, 2008, 05:40:29 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: moving files between different account on my ded. server  (Read 281 times)
williamconifer
Joomla CMS Development
Spacescooter Operator
*****
Offline Offline

Posts: 46


Starting Goalie for the Dart Team!


WWW
« on: November 15, 2007, 08:59:25 AM »

Hey can someone help me out and let me know how I can transfer backup files between the different accounts I have on my dedicated server.

I have tried using my FTP program (Transmit) to copy from one to the other using both sftp or ftp but it downloads to my local machine first then uploads to my destination.

I logged into my root account via sftp using Transmit and was not able to find my accounts.

I am a newb when it comes to SSH/sftp and Linux, though I am learning. I know there is a better way but need some help.

Thanks
jack
Logged

Jack Hughes
owner & founder
Affinity AV New Media Design
    - Joomla CMS Development
    - Internet Marketing
    - Graphic Design
    - Video Production

Turnkey Projects or "As Needed" Consulting.

View our Free Joomla Video Tutorials
JeremyD
SleePy...
Jabba the Hutt
*****
Offline Offline

Posts: 715


SMF Customizer Team Member


WWW
« Reply #1 on: November 15, 2007, 09:40:35 AM »

I did this
I had a sub domain I wanted on its own account.

using SSH I just did

Code:
mv /home/firstcpanelname/public_html/folder /home/secondcpanelname/public_html

Then permissions and ownership needed to be fixed so I did

Code:
chown -R secondcpanelname:secondcpanelname /home/secondcpanelname
chmod -R 0755 /home/secondcpanelname

To change all permissions over and set all files to 755 so su_php wouid work ok still.

I still had the files in a folder though under the second account, but that was a few seconds with transmit and moving them to the parent folder.

The -R on the chown and chmod does it recursively, so it does it for all folders and files below your cpanelname directory.

Edit,
As a note. you can use cp instead of mv to copy the files instead of moving them if you wish to have a copy for a bit.
« Last Edit: November 15, 2007, 09:43:47 AM by JeremyD » Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM