• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Quickest Way to Copy Files?

taylor_smith

Well-known member
#1
I like to test plugins on a mirror of our live community. Our files are hefty--around 2.5 gb zipped. I need a faster/successful way to copy these to a new location.

Originally, I was using cPanel to create an archive. Now it times out.

Next, I tried: "tar -zcvf". After 12 hours, it finished . . . but the backup was incomplete. Was missing /library, among other things.

Is there a faster/better way? We manage the box (and my DBA's a volunteer, so I try to do as much as I can myself).
 

jwright

Active member
#9
Where is the mirror located in relation to your server? Same box? Another server? At home?
The answer to this question will help us help you the most, as it will let us know what you're being bound by...network, disk, etc.

What's the limiting factor? Sounds like CPU to compress the files is limiting you and that perhaps ample bandwidth is available to just straight rsync/scp them?
 

taylor_smith

Well-known member
#10
Where is the mirror located in relation to your server? Same box? Another server? At home?
All on the same box.

public_html/live
public_html/subdomains/test

Server specs:

Dual Intel L5420 2.5 Ghz (Quad Core)
Port Speed: 100 Mbps (10 TB Bandwidth)
Operating System: Centos 6
Hard Drive #1: 500GB Sata Western Digital Black
Hard Drive #2: 500GB Sata Western Digital Black
Hard Drive #3: 500GB Sata Western Digital Black
Hard Drive #4: 500GB Sata Western Digital Black
 

AndyB

Well-known member
#11
All on the same box.
I suggest you use Rsync. This wonderful program allows one to quickly copy files from one foler to another. It will automatically sync the files so the mirrored folder will be identical to the main folder. Best of all only files that are new will be copied. It's super fast.
 

AndyB

Well-known member
#13
Here's an example on how to use Rsync

Code:
rsync -a --delete /home/name/public_html/live /home/name/public_html/subdomains/test
This would copy everything from your live folder to your test folder.
 

WSWD

Well-known member
#14
As everyone else said, rsync is the way to go. However, I'm quite curious...is the entire backup 2.5GB, or do you have a bunch of 2.5GB files, or what is the total size? We routinely backup 40-50GB accounts or larger on some of our cPanel boxes, and have absolutely no issues at all. There is absolutely no reason a 2.5GB backup would fail like that.
 

taylor_smith

Well-known member
#15
Our DBA used rsync. Says a mistype can be damaging, but will teach me in a sandbox.

I'm not sure why the server isn't allowing me to archive with cPanel. I submitted tickets, the host shrugged. We manage the box, so maybe it's something we're doing. But the guy who set it up has been doing this for nearly 30 years. I dunno. :<