Koozali.org: home of the SME Server

Can't copy files

yehaah

Can't copy files
« on: November 01, 2006, 08:26:21 AM »
I want to move one of my homepages to another server.

Instead of making a complete backup to desktop and then picking out the few MB og several GB, I would like to copy the contents of a single "html" folder in a ibay.

I started by making a copy by ftp, but I didn't have the rights I needed to copy image files.

Then I logged on as root, and copied the files from "html" to my "home" with nc. But alass I stille cant upload some of the files from my homedrive to my new server, because of rights issues.

What do I do, so that I can copy theses files with out any problems?????

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Can't copy files
« Reply #1 on: November 01, 2006, 08:50:20 AM »
Check out secure copy (scp)

man scp

Works a treat for machine to machine copies.
Regards,
William

IF I give advise.. It's only if it was me....

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Can't copy files
« Reply #2 on: November 01, 2006, 09:19:57 AM »
yehaah

> I logged on as root, and copied the files from "html" to my "home" with nc.

You probably "gave" those files root ownership when you copied them.
cd /home/e-smith/files/users/username/home
ls -al
review the current ownerships

chown username:username *
ls -al
to review again

Then copy them to wherever you want.
...