Trouble with cp

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
lilrofl
Siliconoclast
Siliconoclast
Posts: 1363
Joined: 28 Jan 2009, 17:00
15
Location: California, USA
Contact:

Trouble with cp

Post by lilrofl »

I'm having trouble getting the syntax right for copying a large number of folders from one external hard drive to another.

Any help would be magnanimously appreciated, thanx.

User avatar
lilrofl
Siliconoclast
Siliconoclast
Posts: 1363
Joined: 28 Jan 2009, 17:00
15
Location: California, USA
Contact:

Nevermind

Post by lilrofl »

cp /hd1/* /hd2/ -pr

this looks like it's working, real slow though lol... should be able to know for certain in a few hours :D

User avatar
Big-E
Administrator
Administrator
Posts: 1332
Joined: 16 May 2007, 16:00
16
Location: IN UR ____ , ____ING UR _____ .
Contact:

Post by Big-E »

rsync

http://www.samba.org/rsync/examples.html

Check that out, you should be able to proceed from that.

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm, why not creating a .tar.gz archive first and then extract it on the target drive? should be faster... :-k

User avatar
lilrofl
Siliconoclast
Siliconoclast
Posts: 1363
Joined: 28 Jan 2009, 17:00
15
Location: California, USA
Contact:

rsync

Post by lilrofl »

rsync... it took a while to figure out, but it worked well over the course of 7 hours. I was going to scrap the whole process and attempt the tar.gz approach, but I didn't have anywhere near that kind of free space on the source drive, and I didn't know if it was possible to zip/unzip on the fly... and if it was possible if there would be that much of a performance gain through USB to USB transfer.

All things being equal, my data is successfully backed up and my old external can take a dump on me if it would like :D

Thanks for your help.

Post Reply