﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-Thinking World-随笔分类-Small things</title><link>http://www.cppblog.com/willcao/category/15469.html</link><description>非澹泊无以明志,非宁静无以致远</description><language>zh-cn</language><lastBuildDate>Tue, 16 Nov 2010 12:29:06 GMT</lastBuildDate><pubDate>Tue, 16 Nov 2010 12:29:06 GMT</pubDate><ttl>60</ttl><item><title>Use the rsync to back up all files</title><link>http://www.cppblog.com/willcao/archive/2010/11/15/133651.html</link><dc:creator>WillCao</dc:creator><author>WillCao</author><pubDate>Mon, 15 Nov 2010 06:22:00 GMT</pubDate><guid>http://www.cppblog.com/willcao/archive/2010/11/15/133651.html</guid><wfw:comment>http://www.cppblog.com/willcao/comments/133651.html</wfw:comment><comments>http://www.cppblog.com/willcao/archive/2010/11/15/133651.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/willcao/comments/commentRss/133651.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/willcao/services/trackbacks/133651.html</trackback:ping><description><![CDATA[Here is the scripts:<br><br>rsync --progress --avze ssh --delete srcDir/&nbsp; remoteName@remoteMachine:remoteDir/<br><br>-a quick way to specify the recursion and preserve everything.<br>-v verbose<br>-z compress<br><br>And then change ssh with no password:<br>Create the private keys for local machine:<br>
<pre><code>ssh-keygen -t dsa<br></code></pre>
Copy the local keys to remote machine:<br><br>
<pre><code>ssh-copy-id -i ~/.ssh/id_dsa.pub remoteuser@remotebox<br></code></pre>
Do not set the password. <br><br>After that, add an alias into your .bashrc<br>alias bp='. ~/backup.sh'<br>So you can run bp directly to backup all things. <br>Over ~~~<br>   <img src ="http://www.cppblog.com/willcao/aggbug/133651.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/willcao/" target="_blank">WillCao</a> 2010-11-15 14:22 <a href="http://www.cppblog.com/willcao/archive/2010/11/15/133651.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何在ubuntu中使用ssh</title><link>http://www.cppblog.com/willcao/archive/2009/10/20/99003.html</link><dc:creator>WillCao</dc:creator><author>WillCao</author><pubDate>Tue, 20 Oct 2009 02:07:00 GMT</pubDate><guid>http://www.cppblog.com/willcao/archive/2009/10/20/99003.html</guid><wfw:comment>http://www.cppblog.com/willcao/comments/99003.html</wfw:comment><comments>http://www.cppblog.com/willcao/archive/2009/10/20/99003.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/willcao/comments/commentRss/99003.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/willcao/services/trackbacks/99003.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: ssh ubuntu&nbsp;&nbsp;<a href='http://www.cppblog.com/willcao/archive/2009/10/20/99003.html'>阅读全文</a><img src ="http://www.cppblog.com/willcao/aggbug/99003.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/willcao/" target="_blank">WillCao</a> 2009-10-20 10:07 <a href="http://www.cppblog.com/willcao/archive/2009/10/20/99003.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>