Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-18-2013, 03:03 PM   #1
LQ Newbie
Registered: Jul 2013
Posts: 1

Rep: Reputation: Disabled
Copy folders without overwriting

Hi Guys,

I was copying a folder that includes multiple sub-folders from one directory to another overnight but due to some network problems, the copying process stopped. I want to start from the time point at which the copying stopped or at least not copying sub-folders and files that were copied successfully. i.e only copying files that have not been copied yet.

Thanks in advance
Old 07-18-2013, 03:22 PM   #2
Senior Member
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
rsync with the --size-only if you favour speed.

man rsync

for more info
Old 07-19-2013, 07:59 PM   #3
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2
Posts: 316

Rep: Reputation: 76
If you are familiar with RSYNC then that is probably best.

Locally, I use update, to only copy files that are newer than in dest.

>> cp -u <src> <dest>
Old 07-21-2013, 04:11 AM   #4
Registered: Jun 2013
Posts: 41

Rep: Reputation: 3
Agreed with firerat.
rsync is the nice option to copied files & folder.
He has suggested
man rsync
to know more about it and use correct and desired option.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash script to copy without overwriting .. Help grandeinter Programming 5 10-22-2010 08:13 PM
[SOLVED] Hoe to copy without overwriting abdoullah Linux - Newbie 5 10-05-2010 03:26 PM
Bash script to transfer folders recursively without overwriting via FTP laurens Linux - Newbie 9 11-13-2009 08:40 AM
How to copy files without overwriting? Stephan_Craft Linux - Newbie 7 02-17-2009 06:28 AM
How to copy without overwriting [KIA]aze Linux - Newbie 4 03-08-2007 08:42 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration