<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Libre Things &#187; backup</title>
	<atom:link href="http://positon.org/tag/backup/feed" rel="self" type="application/rss+xml" />
	<link>http://positon.org</link>
	<description></description>
	<lastBuildDate>Tue, 23 Feb 2016 20:01:11 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.7.1</generator>
	<item>
		<title>Rsync command restriction over SSH</title>
		<link>http://positon.org/rsync-command-restriction-over-ssh</link>
		<comments>http://positon.org/rsync-command-restriction-over-ssh#comments</comments>
		<pubDate>Wed, 29 Dec 2010 17:36:00 +0000</pubDate>
		<dc:creator><![CDATA[dooblem]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://positon.org:81/?p=108</guid>
		<description><![CDATA[You have 2 systems and you want to set up a secure backup with rsync + SSH of one system to the other. Very simply, you can use: backup.example.com# rsync -avz --numeric-ids --delete root@myserver.example.com:/path/ /backup/myserver/ To do the backup, you have to be root on the remote server, because some files are only root readable. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>You have 2 systems and you want to set up a secure backup with rsync + SSH of one system to the other.</p>
<p>Very simply, you can use:</p>
<pre>
backup.example.com# rsync -avz --numeric-ids --delete root@myserver.example.com:/path/ /backup/myserver/
</pre>
<p>To do the backup, you have to be root on the remote server, because some files are only root readable.</p>
<p>Problem: you will allow backup.example.com to do anything on myserver.example.com, where just read only access on the directory is sufficient.</p>
<p>To solve it, you can use the <code>command=""</code> directive in the <code>authorized_keys</code> file to filter the command.</p>
<p>To find this command, start rsync adding the <code>-e'ssh -v'</code> option:</p>
<pre>
rsync -avz -e'ssh -v' --numeric-ids --delete root@myserver.example.com:/path/ /backup/myserver/ 2&gt;&amp;1 | grep &quot;Sending command&quot;
</pre>
<p>You get a result like:</p>
<pre>
debug1: Sending command: rsync --server --sender -vlogDtprze.iLsf --numeric-ids . /path/
</pre>
<p>Now, just add the command before the key in <code>/root/.ssh/authorized_keys</code>:</p>
<pre>
command=&quot;rsync --server --sender -vlogDtprze.iLsf --numeric-ids . /path/&quot; ssh-rsa AAAAB3NzaC1in2EAAAABIwAAABio......
</pre>
<p>And for even more security, you can add an IP filter, and other options:</p>
<pre>
from=&quot;backup.example.com&quot;,command=&quot;rsync --server --sender -vlogDtprze.iLsf --numeric-ids . /path/&quot;,no-agent-forwarding,no-port-forwarding,no-pty,no-user-rc,no-X11-forwarding ssh-rsa AAAAB3NzaC1in2EAAAABIwAAABio......
</pre>
<p>Now try to open a ssh shell on the remote server.. and try some unauthorized rsync commands&#8230;</p>
<p>Notes:</p>
<ul>
<li>Beware that if you change rsync command options, change also the <code>authorized_keys</code> file.</li>
<li>No need for complex chroot anymore. Forget my previous article: <a href="/sftp-chroot-rsync">sftp-chroot-rsync</a></li>
</ul>
<p><ins>See also</ins>:</p>
<ul>
<li><code>man ssh #/AUTHORIZED_KEYS FILE FORMAT</code></li>
<li><code>man rsync</code></li>
<li><code>view /usr/share/doc/rsync/scripts/rrsync.gz</code> (restricted rsync, allows you to manage allowed options precisely)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://positon.org/rsync-command-restriction-over-ssh/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Brasero Bug Copying Audio CD in Ubuntu Lucid</title>
		<link>http://positon.org/brasero-bug-copying-audio-cd-in-ubuntu-lucid</link>
		<comments>http://positon.org/brasero-bug-copying-audio-cd-in-ubuntu-lucid#comments</comments>
		<pubDate>Thu, 20 May 2010 22:53:00 +0000</pubDate>
		<dc:creator><![CDATA[dooblem]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Brasero]]></category>
		<category><![CDATA[Cdrdao]]></category>
		<category><![CDATA[cdrom]]></category>
		<category><![CDATA[CheckInstall]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Lucid]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://positon.org:81/?p=92</guid>
		<description><![CDATA[Audio CD copy is actually not possible with Brasero on Ubuntu Lucid. All details in the bug report. As a workaround, you must install cdrdao version 1.2.3, which is not yet available as a package. To install it, you can use CheckInstall which is a bit cleaner than the old make install: tar -xjvf cdrdao-1.2.3.tar.bz2 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Audio CD copy is actually not possible with <a href="http://projects.gnome.org/brasero/">Brasero</a> on Ubuntu Lucid. All details in the <a href="https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/529696">bug report</a>.</p>
<p>As a workaround, you must install <a href="http://cdrdao.sourceforge.net/">cdrdao</a> version 1.2.3, which is <a href="https://bugs.launchpad.net/ubuntu/+source/cdrdao/+bug/495655">not yet available as a package</a>.</p>
<p>To install it, you can use <a href="http://www.asic-linux.com.mx/~izto/checkinstall/">CheckInstall</a> which is a bit cleaner than the old <code>make install</code>:</p>
<pre>
tar -xjvf cdrdao-1.2.3.tar.bz2
cd cdrdao-1.2.3/
./configure
make
sudo checkinstall make install
</pre>
<p>Note: the <code>make</code> command can fail because of missing dev packages you&#8217;ll have to install.</p>
<p>CheckInstall builds and installs a nice Debian package.</p>
<p>You can also use cdrdao directly. <code>ps axf</code> shows us the command Brasero is using:</p>
<pre>
cdrdao read-cd --device /dev/sr0 --read-raw --datafile /home/dooblem/brasero.toc.bin -v 2 /home/dooblem/brasero.toc
</pre>
<p>Here we go!</p>
<p><ins>Links</ins> :</p>
<ul>
<li><a href="http://packages.debian.org/lenny/checkinstall" title="http://packages.debian.org/lenny/checkinstall">http://packages.debian.org/lenny/checkinstall</a></li>
<li><a href="http://en.wikipedia.org/wiki/CheckInstall" title="http://en.wikipedia.org/wiki/CheckInstall">http://en.wikipedia.org/wiki/CheckInstall</a></li>
<li><a href="/audio-cd-backup-archive">Audio CD Backup/Archive</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://positon.org/brasero-bug-copying-audio-cd-in-ubuntu-lucid/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Audio CD Backup/Archive</title>
		<link>http://positon.org/audio-cd-backup-archive</link>
		<comments>http://positon.org/audio-cd-backup-archive#comments</comments>
		<pubDate>Thu, 20 May 2010 22:34:00 +0000</pubDate>
		<dc:creator><![CDATA[dooblem]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Brasero]]></category>
		<category><![CDATA[Cdrdao]]></category>
		<category><![CDATA[cdrom]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://positon.org:81/?p=91</guid>
		<description><![CDATA[It&#8217;s not possible to backup an audio CD as an iso image. This format is for data CDs. You should use cdrdao. Example: cdrdao read-cd --read-raw --datafile FILE_NAME.bin --device /dev/cdrom --driver generic-mmc-raw FILE_NAME.toc Under Ubuntu, you can use Brasero with &#8220;CD copy&#8221; mode. ps axf shows us the command Brasero is using: cdrdao read-cd --device [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s not possible to backup an audio CD as an <a href="">iso image</a>. This format is for data CDs.</p>
<p>You should use <a href="http://cdrdao.sourceforge.net/">cdrdao</a>.</p>
<p>Example:</p>
<pre>
cdrdao read-cd --read-raw --datafile FILE_NAME.bin --device /dev/cdrom --driver generic-mmc-raw FILE_NAME.toc
</pre>
<p>Under Ubuntu, you can use <a href="http://projects.gnome.org/brasero/">Brasero</a> with &#8220;CD copy&#8221; mode. <code>ps axf</code> shows us the command Brasero is using:</p>
<pre>
cdrdao read-cd --device /dev/sr0 --read-raw --datafile /home/dooblem/brasero.toc.bin -v 2 /home/dooblem/brasero.toc
</pre>
<p>Note: there is a <a href="/brasero-bug-copying-audio-cd-in-ubuntu-lucid">Brasero Bug in Ubuntu Lucid with cdrdao</a>.</p>
<p><ins>Links</ins>:</p>
<ul>
<li><a href="http://cdrdao.sourceforge.net/" title="http://cdrdao.sourceforge.net/">http://cdrdao.sourceforge.net/</a></li>
<li><a href="http://projects.gnome.org/brasero/" title="http://projects.gnome.org/brasero/">http://projects.gnome.org/brasero/</a></li>
<li><a href="http://www.commandlinefu.com/commands/view/3607/backup-your-playstation-game-using-rip" title="http://www.commandlinefu.com/commands/view/3607/backup-your-playstation-game-using-rip">http://www.commandlinefu.com/commands/view/3607/backup-your-playstation-game-using-rip</a></li>
<li><a href="http://ubuntuforums.org/archive/index.php/t-258392.html" title="http://ubuntuforums.org/archive/index.php/t-258392.html">http://ubuntuforums.org/archive/index.php/t-258392.html</a></li>
<li><a href="http://news.softpedia.com/news/How-to-Manage-CD-Images-in-Linux-39806.shtml" title="http://news.softpedia.com/news/How-to-Manage-CD-Images-in-Linux-39806.shtml">http://news.softpedia.com/news/How-to-Manage-CD-Images-in-Linux-39806.shtml</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://positon.org/audio-cd-backup-archive/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>(Français) Sauvegarde intelligente avec rsync</title>
		<link>http://positon.org/sauvegarde-intelligente-avec-rsync</link>
		<comments>http://positon.org/sauvegarde-intelligente-avec-rsync#comments</comments>
		<pubDate>Tue, 29 Jul 2008 13:43:00 +0000</pubDate>
		<dc:creator><![CDATA[dooblem]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://positon.org:81/?p=35</guid>
		<description><![CDATA[Sorry, this entry is only available in Français.]]></description>
				<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://fr.positon.org/tag/backup/feed">Français</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://positon.org/sauvegarde-intelligente-avec-rsync/feed</wfw:commentRss>
		<slash:comments></slash:comments>
		</item>
	</channel>
</rss>
