|
Re: Disk full - moving rsnapshot root: msg#00052sysutils.backup.rsnapshot.general
* David Cantrell <david@xxxxxxxxxxxxxxx> wrote: > On Tue, Aug 15, 2006 at 09:52:34PM +0200, Sebastian Kayser wrote: > > * Shannon S. Coen <shannon@xxxxxxxxxxxxx> 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)? > > "mv" or "cp -a" will preserve the hard link structure, so basically your > > disk usage will stay the same. > > That's only the case if you are working within a single filesystem. Maybe this depends on the version of cp being used. The cp on Debian sarge (coreutils 5.2.1-2) preserves hardlinks across different filesystems. ~ # mount | grep ^/dev /dev/md0 on / type ext3 (rw,errors=remount-ro) /dev/md1 on /var type xfs (rw) /dev/md3 on /var/spool/squid type xfs (rw,noatime) ~ # ls -li /var/tmp/hardlinks/ total 0 33640702 -rw-r--r-- 2 root root 0 Aug 17 13:44 1 33640702 -rw-r--r-- 2 root root 0 Aug 17 13:44 1-hardlink 33640703 -rw-r--r-- 1 root root 0 Aug 17 13:44 2 ~ # ls -li /tmp/hardlinks/ total 0 ~ # cp -a /var/tmp/hardlinks/* /tmp/hardlinks/ ~ # ls -li /tmp/hardlinks/ total 0 879555 -rw-r--r-- 2 root root 0 Aug 17 13:44 1 879555 -rw-r--r-- 2 root root 0 Aug 17 13:44 1-hardlink 879558 -rw-r--r-- 1 root root 0 Aug 17 13:44 2 Sebastian ------------------------------------------------------------------------- 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: rsnapshot log permissions: 00052, Rob MacGregor |
|---|---|
| Next by Date: | Re: Disk full - moving rsnapshot root: 00052, Martin Schröder |
| Previous by Thread: | Re: Disk full - moving rsnapshot rooti: 00052, David Cantrell |
| Next by Thread: | Re: Disk full - moving rsnapshot root: 00052, David Cantrell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |