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 - /

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                                    [EMAIL PROTECTED]
Linux Step-by-step & TyGeMo:                    http://netllama.ipfox.com

10:50am up 1 day, 19:06, 1 user, load average: 0.10, 0.16, 0.18

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

Reply via email to