XFS dump & restore
Brett I. Holcomb
brettholcomb
Mon May 17 11:48:01 PDT 2004
Check the output after you do this. I did the xfsdump -J - / | xfsrestore
-J - /mnt/newpartition and not all the files got copied, The XFS mail list
had me check if they were links or had the same inode numbers (they weren't
and didn't). After that I haven't had anymore feedback.
My plan was to copy my existing parition to a new one as backup. I used
the xfs utilities to preserve xfs specific stuff.
Andrew Mathews wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Net Llama! wrote:
> | On 05/29/03 19:26, Andrew Mathews wrote:
> |
> |
> |
> | excellent, thanks. so i've got this running right now. oddly though,
> | the ownership of the files/dirs on the remote end is not matching up
> | with the originals. is this normal & expected? for example, stuff in
> | various user's $HOME is showing a UID# of 0 for alot of entries, which
> | isn't even close to correct. I see that xfsrestore has a -o option
> | which is supposed to restore file and dir owner/group info, but i didn't
> | know if that was needed for the original dump.
> |
> | At any rate, this is the command that i used for the dump:
> | xfsdump -p 4 -l 0 - / | ssh 10.0.0.1 xfsrestore - /tmp/llama/
> |
> | Would this work for doing the xfsrestore using ssh/scp:
> | ssh hostname xfsdump - /tmp/llama/ | xfsrestore - /
> |
>
> Almost. Since xfsdump uses mountpoints, you'll need to dump /tmp (no
> trailing slash) instead of /tmp/llama/. That's provided /tmp is a
> mountpoint. When using xfsrestore, you can put it anywhere, only xfsdump
> is mountpoint dependent. Or you can use the -s flag to specify only
> /tmp/llama. The syntax would be such as:
> ssh hostname xfsdump - /tmp -s llama | xfsrestore - /
> Otherwise it should be fine.
>
> - --
> Andrew Mathews
> - ---------------------------------------------------------------------
> ~ 12:56pm up 2 days, 4:04, 11 users, load average: 1.08, 1.17, 1.13
> - ---------------------------------------------------------------------
> A political man can have as his aim the realization of freedom,
> but he has no means to realize it other than through violence.
> -- Jean Paul Sartre
> - --
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
> Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org
>
> iD8DBQE+2k/xidHQ0m/kEssRAuhsAJ0QiSgYwHeTqxiQpo10e6PczNCF8ACfb356
> /qsbIPHeQv37smTXGtvtBe4=
> =BHdN
> -----END PGP SIGNATURE-----
--
Brett I. Holcomb
brettholcomb at R777charter.net
AKA Grunt <><
Registered Linux User #188143
Remove R777 to email
More information about the Linux-users
mailing list