|
Re: Disk full - moving rsnapshot root: msg#00050sysutils.backup.rsnapshot.general
On Wed, Aug 16, 2006 at 07:09:26PM +0100, David Cantrell wrote: > On Tue, Aug 15, 2006 at 11:53:30AM -0700, Shannon S. Coen wrote: > > The disk our rsnapshot root is on has finally filled up. I've mounted a > > new, bigger one and would like to move the data from the old to the new. > > Can this be done so that the inode/link structure remains intact > > (keeping disk usage the same)? > > I'd use dump and restore for this, something like: > > dump -0 -f - /smalldisk | (cd /bigdisk; restore -r -f -) > > Both filesystems must be the same type, and the new one must really be > new. newfs it just before doing this, just to be on the safe side. > > cp will *not* do the job. I tried a test with "cp -a" (GNU cp 5.2.1) copying to a different file system, and cp -a seemed to preserve hard links (unchanged files were still hard-linked together on the destination). Or if you don't trust cp -a, how about cd /smalldisk ; find . -depth -print | cpio -pdlm /bigdisk or rsync -a /smalldisk /bigdisk ___________________________________________________________________________ David Keegel <djk@xxxxxxxxxxxxxxxxxx> http://www.cyber.com.au/users/djk/ Cybersource P/L: Linux/Unix Systems Administration Consulting/Contracting ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: disk full - how to wipe out?: 00050, Anthony Ettinger |
|---|---|
| Next by Date: | Re: rsnapshot log permissions: 00050, Rob MacGregor |
| Previous by Thread: | Re: Disk full - moving rsnapshot rooti: 00050, David Cantrell |
| Next by Thread: | Re: Disk full - moving rsnapshot root: 00050, Martin Schröder |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |