[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-date: Mon Feb 16 10:57:15 2004 -->
- <!--x-from-r13: eboregurnira ng rneguyvax.arg (Dboreg Vrnira) -->
- <!--x-message-id: [email protected] -->
- <!--x-subject: [ale] Backup/Restore Question -->
- <li><em>date</em>: Mon Feb 16 10:57:15 2004</li>
- <li><em>from</em>: robertheaven at earthlink.net (Robert Heaven)</li>
- <li><em>subject</em>: [ale] Backup/Restore Question</li>
- This:
nice tar -czpf - /usr/data | ssh user at storagehost "cat - >
/raid/backup/user_data.tgz"
My question is: I've never had to do a restore and I was wondering what
the inverse of this would be? My first guess would be to log into the
storagehost and do something like this:
cd /raid/backup
cat user_data.tgz | ssh user at firsthost tar -xzpf -
The only problem I can see with this is, it will untar in the user's
home directory. Is there a better solution?
I was reading the man page and it looks like I might solve my problem by
using "tar -czpPf" when creating the backup. Would I also need to use
-xzpPf in the restore?
Thanks,
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00537" href="msg00537.html">[ale] Backup/Restore Question</a></strong>
<ul><li><em>From:</em> bjorn at sccs.swarthmore.edu (Bjorn Dittmer-Roche)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00535.html">[ale] CVS and Eclipse</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00537.html">[ale] Backup/Restore Question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00535.html">[ale] CVS and Eclipse</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00537.html">[ale] Backup/Restore Question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00536"><strong>Date</strong></a></li>
<li><a href="threads.html#00536"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>