LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-11-2014, 10: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, 01:42 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
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 02:56 PM.
 
Old 04-11-2014, 02:34 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,998

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
I'd wonder why you get errors. Too large of a file for fat32 or such?
 
Old 04-11-2014, 03: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, 04:18 PM   #5
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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



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 06:57 PM
Copy a directory into another directory while ignoring specific directories or files wh33t Linux - Newbie 14 05-16-2012 08:13 PM
How to copy an entire directory structure except certain files? thanhvn Programming 9 01-27-2012 11:41 AM
How to copy files from an entire directory tree using terminal commands??? lusius188 Linux - General 3 04-10-2006 11:23 AM
Using wget to copy entire ftp directory stuartmunro Linux - Newbie 7 06-17-2005 07:06 PM

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

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