-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Net Llama! wrote:
| On 05/29/03 19:26, Andrew Mathews wrote:
|
|> | Does anyone know if its possible to pipe a file from xfsdump via the
|> | output from scp into xfsrestore?
|> |
|>
|> Sure is. If you have passwordless ssh enabled between the two systems
|> you don't even need to include username and password in the pipe. I
|> backup my laptop that I'm writing this from every night over a wireless
|> network to a system with 2 tape drives. Something like:
|> xfsdump -l 0 - / | ssh hostname xfsrestore - /tmp
|
|
| 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-----

_______________________________________________
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users

Reply via email to