<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1174582407965783154</id><updated>2024-09-27T15:59:41.966+03:00</updated><category term="VirtualBox"/><category term="Zend Framework"/><category term="backup"/><category term="recaptcha"/><category term="rsync"/><title type='text'>Progger</title><subtitle type='html'>Заметки на тему программирования под web, администрирования linux и многое другое</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://voooova.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1174582407965783154/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://voooova.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vladimir</name><uri>http://www.blogger.com/profile/17198563307840468118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1174582407965783154.post-8726478883841208643</id><published>2016-03-02T22:16:00.001+02:00</published><updated>2016-03-02T22:16:21.148+02:00</updated><title type='text'>пример ~/.ssh/config</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;cat ~/.ssh/config&lt;br /&gt; Host *&lt;br /&gt;&amp;nbsp; &amp;nbsp; ServerAliveInterval 60&lt;br /&gt;Host rasberry&lt;br /&gt;&amp;nbsp; &amp;nbsp; Hostname vk*****.ddns.net&lt;br /&gt;&amp;nbsp; &amp;nbsp; User pi&lt;br /&gt;&amp;nbsp; &amp;nbsp; Port 3022&lt;br /&gt;&amp;nbsp; &amp;nbsp; IdentityFile ~/.ssh/id_rsa&lt;/span&gt;&lt;/blockquote&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://voooova.blogspot.com/feeds/8726478883841208643/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1174582407965783154/8726478883841208643' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1174582407965783154/posts/default/8726478883841208643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1174582407965783154/posts/default/8726478883841208643'/><link rel='alternate' type='text/html' href='http://voooova.blogspot.com/2016/03/sshconfig.html' title='пример ~/.ssh/config'/><author><name>Vladimir</name><uri>http://www.blogger.com/profile/17198563307840468118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1174582407965783154.post-4271206522011158712</id><published>2012-05-10T17:26:00.003+03:00</published><updated>2012-12-01T00:25:03.305+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VirtualBox"/><title type='text'>Работа с VirtualBox VM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Часто бывает, что для какого-то проекта нужна особая среда, например, Ruby, и проще настроить одну виртуальную машину и разослать ее всем разработчикам, чем настраивать каждому у себя.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
В качестве гостевой машины рекомендую&amp;nbsp;Ubuntu Server 12.04. Тут я пропущу описание процесса установки VirtualBox и самой системы. После успешной загрузки установленной системы сразу&amp;nbsp;устанавливаем ssh сервер командой&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo apt-get install openssh-server&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;Если он уже установлен, то ничего не произойдет. Через окно VirtualBox&#39;а работать неудобно, поэтому выключаем машину и продолжаем настройку. Для этого надо открыть к ней доступ с основной системы&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;VirtualBox предоставляет много средств, вплоть до создания нового сетевого устройства с выделенным IP, но лучшим способом является проброс портов.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;



Проброс портов&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
В настройках &amp;nbsp;виртуальной машины ищем Сеть (Network).&amp;nbsp;По умолчанию создается один сетевой интерфейс, который использует NAT. Его и &amp;nbsp;будем использовать. Разворачиваем &quot;Дополнительно&quot; (Advanced)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIEF9veofldwqWPm64nhXLfQzVYRHdsLiJAS5-EycM6OelXk4uvRJIa-ZUyST0GUduvyst3QLJfaFAUzVoF5Wa5DWFKGO9NzzBpvbZ5yLeBlxUp_A0I4foid_4m-UZUmAdfbDja-r7MlzL/s1600/network.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;443&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIEF9veofldwqWPm64nhXLfQzVYRHdsLiJAS5-EycM6OelXk4uvRJIa-ZUyST0GUduvyst3QLJfaFAUzVoF5Wa5DWFKGO9NzzBpvbZ5yLeBlxUp_A0I4foid_4m-UZUmAdfbDja-r7MlzL/s640/network.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;text-align: justify;&quot;&gt;нажимаем &quot;Проброс портов&quot; и заполняем по примеру.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfEyNT1XTcrdb4M1BotHWnQJu1cdWmgfZ1gAf84Y0CFXLX-RYv2LaCdOp3HWWCAg81AYYSeG3hneuzLVmHKqvueUEglKzfZWqOrfRWwxp-p6oGt5vKa8ClLxwzIIkrQkdvODlwEzVLVEJh/s1600/ports-forwarding.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfEyNT1XTcrdb4M1BotHWnQJu1cdWmgfZ1gAf84Y0CFXLX-RYv2LaCdOp3HWWCAg81AYYSeG3hneuzLVmHKqvueUEglKzfZWqOrfRWwxp-p6oGt5vKa8ClLxwzIIkrQkdvODlwEzVLVEJh/s400/ports-forwarding.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Как минимум надо настроить 2 порта - один для редактирования файлов (ssh/ftp), второй для просмотра результатов, обычно http. Кстати, это можно сделать из консоли, набрав&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;VBoxManage modifyvm senti --natpf1 &quot;ssh,tcp,,3022,,22&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;VBoxManage modifyvm senti --natpf1 &quot;Ruby server,tcp,,3000,,3000&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
где senti - имя виртуальной машины.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Главное здесь не выбрать зарезервированные порты, потому начинаем с 3000.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Теперь настраиваем то, что хотели. Запускать созданную виртуалку можно через оконный VirtualBox Менеджер, но это не всегда удобно.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;



Запуск и остановка из командной строки&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Чтоб лишнее окно Virtualbox&#39;а не мешало или чтоб автоматизировать процесс можно использовать такие команды:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
запуск&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;VBoxHeadless -s senti &amp;amp;&lt;/span&gt;&lt;br /&gt;
останов&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;VBoxManage controlvm senti poweroff&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Подробнее, как настроить включение/выключение вместе с основной linux системой неплохо написано тут&amp;nbsp;&lt;/span&gt;- &lt;a href=&quot;http://synapse.wordpress.com/2007/03/24/run-a-script-on-startup-shutdown-in-linux/&quot;&gt;Run a script on Startup / Shutdown in Linux &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;


&lt;span style=&quot;font-family: inherit;&quot;&gt;Почитать&lt;/span&gt;&lt;/h4&gt;
&lt;span id=&quot;internal-source-marker_0.2560367158148438&quot; style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;a href=&quot;http://www.virtualbox.org/manual/ch06.html&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;color: #000099; font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;http://www.virtualbox.org/manual/ch06.html&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;http://www.virtualbox.org/manual/ch07.html&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;color: #000099; font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;http://www.virtualbox.org/manual/ch07.html&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;http://www.virtualbox.org/manual/ch08.html&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;color: #000099; font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;http://www.virtualbox.org/manual/ch08.html&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://tombuntu.com/index.php/2008/12/17/configure-port-forwarding-to-a-virtualbox-guest-os/&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;color: #000099; font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;http://tombuntu.com/index.php/2008/12/17/configure-port-forwarding-to-a-virtualbox-guest-os/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #555555; font-family: Verdana;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://voooova.blogspot.com/feeds/4271206522011158712/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1174582407965783154/4271206522011158712' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1174582407965783154/posts/default/4271206522011158712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1174582407965783154/posts/default/4271206522011158712'/><link rel='alternate' type='text/html' href='http://voooova.blogspot.com/2012/05/virtualbox-vm.html' title='Работа с VirtualBox VM'/><author><name>Vladimir</name><uri>http://www.blogger.com/profile/17198563307840468118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIEF9veofldwqWPm64nhXLfQzVYRHdsLiJAS5-EycM6OelXk4uvRJIa-ZUyST0GUduvyst3QLJfaFAUzVoF5Wa5DWFKGO9NzzBpvbZ5yLeBlxUp_A0I4foid_4m-UZUmAdfbDja-r7MlzL/s72-c/network.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1174582407965783154.post-1043217692458787847</id><published>2012-05-09T18:37:00.001+03:00</published><updated>2012-11-29T20:53:23.846+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="recaptcha"/><category scheme="http://www.blogger.com/atom/ns#" term="Zend Framework"/><title type='text'>Recaptcha в Zend Framework</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Вот так просто можно добавить recaptcha в форму на Zend Framework&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$this-&amp;gt;addElement(&#39;captcha&#39;, &#39;captcha&#39;, array(&lt;br /&gt;//&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;label&#39; =&amp;gt; &#39;Please enter two words displayed below:&#39;,&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;required&#39; =&amp;gt; true,&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;captcha&#39; =&amp;gt; array(&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;pubkey&#39; =&amp;gt; &#39;6LfYA9ASAAAAAOuXUnGy1KXeosRuK9elHxAzy0**&#39;,&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;privkey&#39; =&amp;gt; &#39;6LfYA9ASAAAAAPxb21osjExcexZT7r1tTx2CCm**&#39;,&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;captcha&#39; =&amp;gt; &#39;reCaptcha&#39;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;)&lt;br /&gt;));&lt;br /&gt;$this-&amp;gt;getElement(&#39;captcha&#39;)-&amp;gt;removeDecorator(&#39;Label&#39;);&lt;/span&gt;&lt;/blockquote&gt;
Ключи можно получить тут -&amp;nbsp;&lt;a href=&quot;https://www.google.com/recaptcha/admin/list&quot;&gt;https://www.google.com/recaptcha/admin/list&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://voooova.blogspot.com/feeds/1043217692458787847/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1174582407965783154/1043217692458787847' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1174582407965783154/posts/default/1043217692458787847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1174582407965783154/posts/default/1043217692458787847'/><link rel='alternate' type='text/html' href='http://voooova.blogspot.com/2012/05/recaptcha-zend-framework.html' title='Recaptcha в Zend Framework'/><author><name>Vladimir</name><uri>http://www.blogger.com/profile/17198563307840468118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1174582407965783154.post-5309011565111976202</id><published>2010-09-28T21:11:00.000+03:00</published><updated>2010-09-28T21:11:55.509+03:00</updated><title type='text'>Определение местоположения пользователя по его IP | Блог PHP программиста</title><content type='html'>&lt;a href=&quot;http://js-php.ru/web-development/php-development/get-geo-info-by-ip/&quot;&gt;Определение местоположения пользователя по его IP | Блог PHP программиста&lt;/a&gt;: &quot;Отправлено через панель инструментов Google:&quot;</content><link rel='replies' type='application/atom+xml' href='http://voooova.blogspot.com/feeds/5309011565111976202/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1174582407965783154/5309011565111976202' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1174582407965783154/posts/default/5309011565111976202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1174582407965783154/posts/default/5309011565111976202'/><link rel='alternate' type='text/html' href='http://voooova.blogspot.com/2010/09/ip-php.html' title='Определение местоположения пользователя по его IP | Блог PHP программиста'/><author><name>Vladimir</name><uri>http://www.blogger.com/profile/17198563307840468118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1174582407965783154.post-4417785698813580099</id><published>2008-12-07T21:54:00.000+02:00</published><updated>2012-11-29T20:55:04.445+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="backup"/><category scheme="http://www.blogger.com/atom/ns#" term="rsync"/><title type='text'>Использование rsync</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Бекап домашнего каталога&lt;br /&gt;
rsync --force --ignore-errors --delete --delete-excluded --backup --backup-dir=`date +%Y-%m-%d` -azv /home/vova/ /mnt/alt/home/backup/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Асинхронная синхронизация каталогов&lt;br /&gt;
rsync --force --progress --keep-dirlinks --copy-dirlinks --ignore-errors --delete --delete-excluded -azv /mnt/duo/srv/www/htdocs/clipshare /srv/www/htdocs/&lt;br /&gt;
или для непримонтированного каталога&lt;br /&gt;
rsync --force --progress --keep-dirlinks --copy-dirlinks --ignore-errors --delete --delete-excluded -azv vova@192.168.0.102:/srv/www/htdocs/clipshare /srv/www/htdocs/&lt;br /&gt;
&lt;br /&gt;
где&lt;br /&gt;
-b, --backup                make backups (see --suffix &amp;amp; --backup-dir)&lt;br /&gt;
--backup-dir=DIR        make backups into hierarchy based in DIR&lt;br /&gt;
-K, --keep-dirlinks         treat symlinked dir on receiver as dir&lt;br /&gt;
-k, --copy-dirlinks         transform symlink to dir into referent dir&lt;br /&gt;
-v, --verbose               increase verbosity&lt;br /&gt;
-a, --archive               archive mode; equals -rlptgoD (no -H,-A,-X)&lt;br /&gt;
-z, --compress              compress file data during the transfer&lt;br /&gt;
--delete                delete extraneous files from dest dirs&lt;br /&gt;
--delete-excluded       also delete excluded files from dest dirs&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://voooova.blogspot.com/feeds/4417785698813580099/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1174582407965783154/4417785698813580099' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1174582407965783154/posts/default/4417785698813580099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1174582407965783154/posts/default/4417785698813580099'/><link rel='alternate' type='text/html' href='http://voooova.blogspot.com/2008/12/rsync-force-ignore-errors-delete-delete.html' title='Использование rsync'/><author><name>Vladimir</name><uri>http://www.blogger.com/profile/17198563307840468118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>