Wednesday, August 05, 2009

Linux: Avoid scp when copying a lot of files

When you are copying a lot of files files it may take a long time with
scp. This is because scp spawns a new process for each file and can be
resource intensive.

When using the -r switch, scp does not care about symbolic links and
will follow them, even if it has already copied the file. This can
lead to scp copying an infinite amount of data and can easily fill up
your hard disk.

Therefore, when you think of backups or remote copy of directories,
think of rsync.

3 comments:

JanuskieZ said...

Hi... Looking ways to market your blog? try this: http://bit.ly/instantvisitors

Freelance Wed Designer India said...

Its highly informative. I would be visiting your blog hereafter regularly to gather valuable information.

Freelance Web Developer India

Ketan said...

Thank you for your compliment. I saw your website.

Ketan