<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Debian / Ubuntu Linux Install and Configure Remote Filesystem Snapshot with rsnapshot Incremental Backup Utility</title> <atom:link href="http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: syaman</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-51734</link> <dc:creator>syaman</dc:creator> <pubDate>Thu, 09 Dec 2010 22:45:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-51734</guid> <description>Riger you will need to edit the lockfile line in /etc/rsnapshot.conf to point to a location to the user running rsnapshot
e.g.
lockfile      /home/rsnapshotuser/rsnapshot.pid</description> <content:encoded><![CDATA[<p>Riger you will need to edit the lockfile line in /etc/rsnapshot.conf to point to a location to the user running rsnapshot</p><p>e.g.</p><p>lockfile      /home/rsnapshotuser/rsnapshot.pid</p> ]]></content:encoded> </item> <item><title>By: Kevin Ernst</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-48418</link> <dc:creator>Kevin Ernst</dc:creator> <pubDate>Mon, 19 Jul 2010 19:05:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-48418</guid> <description>Scott, I believe that &lt;code&gt;command=”/root/backupscript” ssh-rsa AAAAB…..&lt;/code&gt; should be added to &lt;strong&gt;~/.ssh/authorized_keys&lt;/strong&gt; instead of ~/.ssh/config.</description> <content:encoded><![CDATA[<p>Scott, I believe that <code>command=”/root/backupscript” ssh-rsa AAAAB…..</code> should be added to <strong>~/.ssh/authorized_keys</strong> instead of ~/.ssh/config.</p> ]]></content:encoded> </item> <item><title>By: Kevin Ernst</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-48417</link> <dc:creator>Kevin Ernst</dc:creator> <pubDate>Mon, 19 Jul 2010 19:02:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-48417</guid> <description>I believe Scott meant to say that:
&lt;code&gt;command=”/root/backupscript” ssh-rsa AAAAB…..&lt;/code&gt;
should be added to &lt;strong&gt;~/.ssh/authorized_keys&lt;/strong&gt; instead of ~/.ssh/config. Anyone interested in using this method should also look into the &lt;strong&gt;PermitRootLogin forced-commands-only&lt;/strong&gt; option in sshd_config.</description> <content:encoded><![CDATA[<p>I believe Scott meant to say that:</p><p><code>command=”/root/backupscript” ssh-rsa AAAAB…..</code></p><p>should be added to <strong>~/.ssh/authorized_keys</strong> instead of ~/.ssh/config. Anyone interested in using this method should also look into the <strong>PermitRootLogin forced-commands-only</strong> option in sshd_config.</p> ]]></content:encoded> </item> <item><title>By: syaman</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-47943</link> <dc:creator>syaman</dc:creator> <pubDate>Sun, 20 Jun 2010 01:06:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-47943</guid> <description>Thank you for this great article! I also needed to uncomment the cmd_ssh directive /etc/rsnapshot.conf in order to backup a remote server to my backup machine.</description> <content:encoded><![CDATA[<p>Thank you for this great article! I also needed to uncomment the cmd_ssh directive /etc/rsnapshot.conf in order to backup a remote server to my backup machine.</p> ]]></content:encoded> </item> <item><title>By: justin</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-39549</link> <dc:creator>justin</dc:creator> <pubDate>Sat, 20 Dec 2008 21:04:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-39549</guid> <description>Riger:
how about:
sudo rsnapshot hourly</description> <content:encoded><![CDATA[<p>Riger:<br
/> how about:</p><p>sudo rsnapshot hourly</p> ]]></content:encoded> </item> <item><title>By: Riger</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-39214</link> <dc:creator>Riger</dc:creator> <pubDate>Thu, 13 Nov 2008 21:54:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-39214</guid> <description>Also, when I was connected, something happened in the transmission and my network card disconnected.
Now whenever I run the:
&lt;code&gt;rsnapshot hourly&lt;/code&gt;
command to test, I keep getting this error:
&lt;code&gt;ERROR: Could not write lockfile +&quot;/var/run/rsnapshot.pid&quot;&lt;/code&gt;
There is no file by this name and I cannot find any online resource to fix this issue. So it seems there is a serious weakness in this - Meaning if the connection gets broken, they the system also breaks?
Sorry, I&#039;d appreciate anyone who knows how to fix this. :)
THANK YOU!</description> <content:encoded><![CDATA[<p>Also, when I was connected, something happened in the transmission and my network card disconnected.</p><p>Now whenever I run the:</p><p><code>rsnapshot hourly</code></p><p>command to test, I keep getting this error:</p><p><code>ERROR: Could not write lockfile +"/var/run/rsnapshot.pid"</code></p><p>There is no file by this name and I cannot find any online resource to fix this issue. So it seems there is a serious weakness in this &#8211; Meaning if the connection gets broken, they the system also breaks?</p><p>Sorry, I&#8217;d appreciate anyone who knows how to fix this. :)</p><p>THANK YOU!</p> ]]></content:encoded> </item> <item><title>By: Riger</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-39213</link> <dc:creator>Riger</dc:creator> <pubDate>Thu, 13 Nov 2008 21:16:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-39213</guid> <description>When I run:
&lt;code&gt;rsnapshot hourly&lt;/code&gt;
I still have to enter the root password on the remote server (WHM/cPanel).
I checked and the remote server does have my public key and it is also authorized.
Where in the local script can I try to force rsnapshot/rsync to use the ssh key? Maybe that&#039;s the issue?
I really hope someone can help thanks.
After manually logging in the rsnapshot does work, so the only sticking point (for me) is to get the automated ssh key login to be used.
Thanks for any help!</description> <content:encoded><![CDATA[<p>When I run:</p><p><code>rsnapshot hourly</code></p><p>I still have to enter the root password on the remote server (WHM/cPanel).</p><p>I checked and the remote server does have my public key and it is also authorized.</p><p>Where in the local script can I try to force rsnapshot/rsync to use the ssh key? Maybe that&#8217;s the issue?</p><p>I really hope someone can help thanks.</p><p>After manually logging in the rsnapshot does work, so the only sticking point (for me) is to get the automated ssh key login to be used.</p><p>Thanks for any help!</p> ]]></content:encoded> </item> <item><title>By: uid0</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-38574</link> <dc:creator>uid0</dc:creator> <pubDate>Thu, 14 Aug 2008 19:39:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-38574</guid> <description>Ok, what if you configure your backup server as a raid5, how much different would this set up?
Furthermore, i want to be able to mount an external tape drive to the back up server, so to store to tape the back up media.
Thanks.</description> <content:encoded><![CDATA[<p>Ok, what if you configure your backup server as a raid5, how much different would this set up?</p><p>Furthermore, i want to be able to mount an external tape drive to the back up server, so to store to tape the back up media.</p><p>Thanks.</p> ]]></content:encoded> </item> <item><title>By: Klas Wirholm</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37536</link> <dc:creator>Klas Wirholm</dc:creator> <pubDate>Wed, 27 Feb 2008 18:33:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37536</guid> <description>Looks like it functions know. I just changed the line in fstab to:
/dev/sdc1 /media/usb_backup auto rw,user,auto 0 0
So the problem occured when I had noauto, like this:
/dev/sdc1 /media/usb_backup auto rw,user,noauto 0 0
Can that bee true, that the disk whasnt mounted at al becourse of that (trying to learn al about linux)?
Thanks for your help!</description> <content:encoded><![CDATA[<p>Looks like it functions know. I just changed the line in fstab to:<br
/> /dev/sdc1 /media/usb_backup auto rw,user,auto 0 0</p><p>So the problem occured when I had noauto, like this:</p><p>/dev/sdc1 /media/usb_backup auto rw,user,noauto 0 0</p><p>Can that bee true, that the disk whasnt mounted at al becourse of that (trying to learn al about linux)?</p><p>Thanks for your help!</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37535</link> <dc:creator>vivek</dc:creator> <pubDate>Wed, 27 Feb 2008 17:06:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37535</guid> <description>Klas,
Are you sure your usb hard disk mounted at /media/usb_backup? Use df or mount command to verify the same. df will also give out information about used disk space.</description> <content:encoded><![CDATA[<p>Klas,</p><p>Are you sure your usb hard disk mounted at /media/usb_backup? Use df or mount command to verify the same. df will also give out information about used disk space.</p> ]]></content:encoded> </item> <item><title>By: Klas Wirholm</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37534</link> <dc:creator>Klas Wirholm</dc:creator> <pubDate>Wed, 27 Feb 2008 16:09:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37534</guid> <description>I&#039;m doing a backup to an external usb drive who I mounted in fstab like this:
/dev/sdc1	/media/usb_backup auto  rw,user,auto 	0	0
I get an error that the disk is full when I do my second backup. It looks like rsnapshot thinks that the catalog where the partion is mounted  is the messure of who big the backup can bee.The usb drive is 250 Gb and my main partion where I mount it is  (root) is 39Gb.
How do I solve this?</description> <content:encoded><![CDATA[<p>I&#8217;m doing a backup to an external usb drive who I mounted in fstab like this:</p><p>/dev/sdc1	/media/usb_backup auto  rw,user,auto 	0	0</p><p> I get an error that the disk is full when I do my second backup. It looks like rsnapshot thinks that the catalog where the partion is mounted  is the messure of who big the backup can bee.The usb drive is 250 Gb and my main partion where I mount it is  (root) is 39Gb.</p><p>How do I solve this?</p> ]]></content:encoded> </item> <item><title>By: Michael</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37465</link> <dc:creator>Michael</dc:creator> <pubDate>Wed, 13 Feb 2008 02:03:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37465</guid> <description>Another good tool to look at is rdiff-backup (&lt;a href=&quot;http://www.nongnu.org/rdiff-backup/&quot; rel=&quot;nofollow&quot;&gt;http://www.nongnu.org/rdiff-backup/&lt;/a&gt;).  It keeps a full copy of the current version of each file, with a diff of changed files. If you have a large file that changes a little at a time, you will  use even less disk space than with rsnapshot.</description> <content:encoded><![CDATA[<p>Another good tool to look at is rdiff-backup (<a
href="http://www.nongnu.org/rdiff-backup/" rel="nofollow">http://www.nongnu.org/rdiff-backup/</a>).  It keeps a full copy of the current version of each file, with a diff of changed files. If you have a large file that changes a little at a time, you will  use even less disk space than with rsnapshot.</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37459</link> <dc:creator>vivek</dc:creator> <pubDate>Tue, 12 Feb 2008 09:56:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37459</guid> <description>Scott,
Good suggestion. I&#039;m adding additional content to this FAQ including your exclude_file and mysql backup issue.</description> <content:encoded><![CDATA[<p>Scott,</p><p>Good suggestion. I&#8217;m adding additional content to this FAQ including your exclude_file and mysql backup issue.</p> ]]></content:encoded> </item> <item><title>By: Scott Carlson</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37455</link> <dc:creator>Scott Carlson</dc:creator> <pubDate>Mon, 11 Feb 2008 20:03:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37455</guid> <description>Also, I use a script around rsnapshot that helps cut out a lot of my unneeded files from being backed-up. (Think cache files, or rapidly changing files like history in eclipse)
In rsnapshot.conf I have &quot;exclude_file    /var/backups/snapshot/excludefile.txt&quot;
Then my script does a
find /home/user1/ -xdev -name .nobackup -print0 &#124; xargs -0 -n1 dirname &gt; $EXCLUDEFILE
cat /home/user1/.backupexcludes &gt;&gt; $EXCLUDEFILE
So this first uses the hdup style .nobackup flag files to ignore whole directories.  This works pretty well, except for directories that get deleted like firefox cache directories.  Those I put in the .backupexcludes file.
I do a similiar thing for the remote servers I backup.</description> <content:encoded><![CDATA[<p>Also, I use a script around rsnapshot that helps cut out a lot of my unneeded files from being backed-up. (Think cache files, or rapidly changing files like history in eclipse)</p><p>In rsnapshot.conf I have &#8220;exclude_file    /var/backups/snapshot/excludefile.txt&#8221;</p><p>Then my script does a<br
/> find /home/user1/ -xdev -name .nobackup -print0 | xargs -0 -n1 dirname &gt; $EXCLUDEFILE<br
/> cat /home/user1/.backupexcludes &gt;&gt; $EXCLUDEFILE</p><p>So this first uses the hdup style .nobackup flag files to ignore whole directories.  This works pretty well, except for directories that get deleted like firefox cache directories.  Those I put in the .backupexcludes file.</p><p>I do a similiar thing for the remote servers I backup.</p> ]]></content:encoded> </item> <item><title>By: Scott Carlson</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37454</link> <dc:creator>Scott Carlson</dc:creator> <pubDate>Mon, 11 Feb 2008 19:55:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37454</guid> <description>Never mind that ipython link, cut and paste issue</description> <content:encoded><![CDATA[<p>Never mind that ipython link, cut and paste issue</p> ]]></content:encoded> </item> <item><title>By: Scott Carlson</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37453</link> <dc:creator>Scott Carlson</dc:creator> <pubDate>Mon, 11 Feb 2008 19:54:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37453</guid> <description>I do use this technique.  Since you are running this from cron, the ssh-key you are using should probably be passwordless.  In your .ssh/config on the the server you are going to backup use :
http://ipython.scipy.org/moin/Documentation
command=&quot;/root/backupscript&quot;  ssh-rsa AAAAB.....
Then &quot;/root/backupscript&quot; can be setup like this:
# allow rsnapshot to backup /etc
if [ &quot;$SSH_ORIGINAL_COMMAND&quot; = &quot;rsync --server --sender -logDtprRx --numeric-ids . /etc&quot; ]
then
eval $SSH_ORIGINAL_COMMAND
exit 0
fi
echo no match $SSH_ORIGINAL_COMMAND &gt;&gt; /root/backupnomatch.log
#If the rsync server sends a slightly different command, modify backed on what is in /root/backupnomatch.log</description> <content:encoded><![CDATA[<p>I do use this technique.  Since you are running this from cron, the ssh-key you are using should probably be passwordless.  In your .ssh/config on the the server you are going to backup use :<br
/> <a
href="http://ipython.scipy.org/moin/Documentation" rel="nofollow">http://ipython.scipy.org/moin/Documentation</a><br
/> command=&#8221;/root/backupscript&#8221;  ssh-rsa AAAAB&#8230;..</p><p>Then &#8220;/root/backupscript&#8221; can be setup like this:<br
/> # allow rsnapshot to backup /etc<br
/> if [ "$SSH_ORIGINAL_COMMAND" = "rsync --server --sender -logDtprRx --numeric-ids . /etc" ]<br
/> then<br
/> eval $SSH_ORIGINAL_COMMAND<br
/> exit 0<br
/> fi<br
/> echo no match $SSH_ORIGINAL_COMMAND &gt;&gt; /root/backupnomatch.log</p><p>#If the rsync server sends a slightly different command, modify backed on what is in /root/backupnomatch.log</p> ]]></content:encoded> </item> <item><title>By: Vinícius</title><link>http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37451</link> <dc:creator>Vinícius</dc:creator> <pubDate>Mon, 11 Feb 2008 13:13:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/linux-rsnapshot-backup-howto/#comment-37451</guid> <description>I&#039;ll try to backup my VPS from my notebook.
Thanks for the info! :)</description> <content:encoded><![CDATA[<p>I&#8217;ll try to backup my VPS from my notebook.<br
/> Thanks for the info! :)</p> ]]></content:encoded> </item> </channel> </rss>
