LinuxQuestions.org
Register a domain and help support LQ
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 04-11-2014, 11:43 AM   #1
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Rep: Reputation: Disabled
Best way to copy entire directory ignoring errors?


I'm trying to back up a directory from my wife's computer to a samba share. Her computer is running Mint but the directory is on a Windows portion. Trying to back up and then wipe and reinstall her system with just Linux.
Tried drag and drop in the gui but it's about 100gb and it keeps error in on cert files. What command can I use to copy the entire directory and ignore all errors?
 
Old 04-11-2014, 02:42 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,970
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
You can try rsync...

Code:
rsync -auv --delete --ignore-errors /path/to/source/ /path/to/destination/
Yes keep the trailing slash

--C

Last edited by custangro; 04-11-2014 at 03:56 PM.
 
Old 04-11-2014, 03:34 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,398

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
I'd wonder why you get errors. Too large of a file for fat32 or such?
 
Old 04-11-2014, 04:02 PM   #4
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
I'd wonder why you get errors. Too large of a file for fat32 or such?
Not sure. Copying from a ntfs partition to a ext4 mounted via smb. The errors were not very informative.

---------- Post added 04-11-14 at 01:03 PM ----------

Quote:
Originally Posted by custangro View Post
You can try rsync...

Code:
rsync -auv --delete --ignore-errors /path/to/source/ /path/to/destination/
Yes keep the trailing slash

--C
Thanks, I'll give that a try
 
Old 04-11-2014, 05:18 PM   #5
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
If you boot from a live CD, you won't have any files in use etc.
You will be able to copy every file on your system.

rsync is good for small files but anything over 4GB is very slow.

I use this strategy for speedy backups and get no problems.
 
  


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
howto: copy files/folder(entire directory) from linux harddrive to ntfs formatted dri stevenvw Linux - Newbie 6 10-19-2012 07:57 PM
Copy a directory into another directory while ignoring specific directories or files wh33t Linux - Newbie 14 05-16-2012 09:13 PM
How to copy an entire directory structure except certain files? thanhvn Programming 9 01-27-2012 12:41 PM
How to copy files from an entire directory tree using terminal commands??? lusius188 Linux - General 3 04-10-2006 12:23 PM
Using wget to copy entire ftp directory stuartmunro Linux - Newbie 7 06-17-2005 08:06 PM


All times are GMT -5. The time now is 01:34 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