Lunarpages Web Hosting Forum

Author Topic: moving files between different account on my ded. server  (Read 1494 times)

Offline williamconifer

  • Joomla CMS Development
  • Spacescooter Operator
  • *****
  • Posts: 46
  • Starting Goalie for the Dart Team!
    • Affinity AV New Media Design
moving files between different account on my ded. server
« 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.

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

Offline JeremyD

  • SleePy...
  • Jabba the Hutt
  • *****
  • Posts: 733
  • SMF Team Member
    • LcT Tribe
Re: moving files between different account on my ded. server
« 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: [Select]
mv /home/firstcpanelname/public_html/folder /home/secondcpanelname/public_html
Then permissions and ownership needed to be fixed so I did

Code: [Select]
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.

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.