LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-18-2013, 03:03 PM   #1
imaging
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
Ali
 
Old 07-18-2013, 03:22 PM   #2
Firerat
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
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37
Posts: 290

Rep: Reputation: 55
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
karim.ouda
Member
 
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.
 
  


Reply


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


All times are GMT -5. The time now is 11:08 AM.

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