LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Best way to copy entire directory ignoring errors? (https://www.linuxquestions.org/questions/linux-newbie-8/best-way-to-copy-entire-directory-ignoring-errors-4175501359/)

Ryanms3030 04-11-2014 10:43 AM

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?

custangro 04-11-2014 01:42 PM

You can try rsync...

Code:

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

--C

jefro 04-11-2014 02:34 PM

I'd wonder why you get errors. Too large of a file for fat32 or such?

Ryanms3030 04-11-2014 03:02 PM

Quote:

Originally Posted by jefro (Post 5150842)
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 (Post 5150816)
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

JeremyBoden 04-11-2014 04:18 PM

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.


All times are GMT -5. The time now is 12:14 PM.