LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 02: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, 02:22 PM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

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

man rsync

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

Rep: Reputation: 154Reputation: 154
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, 03: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



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 07:13 PM
[SOLVED] Hoe to copy without overwriting abdoullah Linux - Newbie 5 10-05-2010 02:26 PM
Bash script to transfer folders recursively without overwriting via FTP laurens Linux - Newbie 9 11-13-2009 07:40 AM
How to copy files without overwriting? Stephan_Craft Linux - Newbie 7 02-17-2009 05:28 AM
How to copy without overwriting [KIA]aze Linux - Newbie 4 03-08-2007 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:36 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
Open Source Consulting | Domain Registration