[ale] Best command to copy a mounted filesystem?

David Corbin dcorbin at machturtle.com
Sun Apr 13 16:20:30 EDT 2003


Robert L. Harris wrote:

>You can mount it and do the cpio method which is faster.  It'll copy all
>the bits, etc but it won't copy all the bytes of empty space or you can
>do a:
>
>dd if=/dev/sda of=/dev/sdc
>
Well, I've doing that (actually, hda2 & hdc2), but I get I/O errors 
after it runs a while (the two partions are exactly the same though).  
It works great on my non-/ partition.

>
>
>Thus spake David Corbin (dcorbin at machturtle.com):
>
>  
>
>>I want an image because I'm putting it on an identical disk....
>>
>>Robert L. Harris wrote:
>>
>>    
>>
>>>You want an image of the filesystem/partition or the contents such with
>>>permissions, etc?  If you go with the image you may be sorry, what if
>>>you can't get an identicle replacement disk?  You'll loose out.
>>>
>>>Use tar or cpio.  If you don't want a tarball but want to copy /usr to
>>>/mnt/backups/usr then my prefered method is:
>>>
>>>"find /usr -mount -print | cpio -pdmu /mnt/backups/usr"
>>>
>>>
>>>Robert
>>>
>>>
>>>Thus spake David Corbin (dcorbin at machturtle.com):
>>>
>>>
>>>
>>>      
>>>
>>>>I want to copy (as in "mirror") a mounted file system for the purposes 
>>>>of backup.   I can think of a handful of approaches (my first, dd, 
>>>>doesn't seem to work). What's the best way to do this.  Note: I'm not 
>>>>talking about make a .tar file or anything of the sort.   I want to 
>>>>duplicate the filesystem.  True mirroring is not an an acceptable 
>>>>solution.
>>>>
>>>>
>>>>_______________________________________________
>>>>Ale mailing list
>>>>Ale at ale.org
>>>>http://www.ale.org/mailman/listinfo/ale
>>>>  
>>>>
>>>>        
>>>>
>>>:wq!
>>>---------------------------------------------------------------------------
>>>Robert L. Harris                     | PGP Key ID: E344DA3B
>>>                                       @ x-hkp://pgp.mit.edu 
>>>DISCLAIMER:
>>>    These are MY OPINIONS ALONE.  I speak for no-one else.
>>>
>>>Diagnosis: witzelsucht  	
>>>
>>>IPv6 = robert at ipv6.rdlg.net	http://ipv6.rdlg.net
>>>IPv4 = robert at mail.rdlg.net	http://www.rdlg.net
>>>
>>>
>>>      
>>>
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>>http://www.ale.org/mailman/listinfo/ale
>>    
>>
>
>:wq!
>---------------------------------------------------------------------------
>Robert L. Harris                     | PGP Key ID: E344DA3B
>                                         @ x-hkp://pgp.mit.edu 
>DISCLAIMER:
>      These are MY OPINIONS ALONE.  I speak for no-one else.
>
>Diagnosis: witzelsucht  	
>
>IPv6 = robert at ipv6.rdlg.net	http://ipv6.rdlg.net
>IPv4 = robert at mail.rdlg.net	http://www.rdlg.net
>  
>


_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list