<?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>Peter Glaeser &#187; backup</title>
	<atom:link href="http://www.peterglaeser.com/tag/backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peterglaeser.com</link>
	<description>opinions on online marketing, mobile advertising and technology</description>
	<lastBuildDate>Tue, 27 Sep 2011 07:00:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Downloading sites using WGET</title>
		<link>http://www.peterglaeser.com/downloading-sites-using-wget/</link>
		<comments>http://www.peterglaeser.com/downloading-sites-using-wget/#comments</comments>
		<pubDate>Fri, 23 May 2008 23:00:16 +0000</pubDate>
		<dc:creator>Peter Glaeser</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://www.peterglaeser.com/?p=81</guid>
		<description><![CDATA[Sometimes it is necessary to create offline versions of a page or a complete website. For example you might want to put an offline version of a site on your USB stick for a presentation. Or perhaps you need to &#8230; <a href="http://www.peterglaeser.com/downloading-sites-using-wget/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sometimes it is necessary to create offline versions of a page or a complete website. For example you might want to put an offline version of a site on your USB stick for a presentation. Or perhaps you need to create static backups of your site.</p>
<p>Today I&#8217;m going to describe how to download pages and/or complete sites onto your linux server or desktop computer. <strong>wget</strong> is the Linux command you&#8217;re looking for and here is how to use it:</p>
<p>Downloading a single file (without linked elements such as images):<br />
<code>wget http://www.google.com</code></p>
<p>Downloading a complete page (including linked elements such as images):<br />
<code>wget -p http://www.google.com</code></p>
<p>Downloading multiple complete pages (up to 7 levels):<br />
<code>wget -rkpl 7 http://www.google.com</code></p>
<p>Downloading (mirroring) a whole site (up to 10 levels):<br />
<code>wget -m 10 http://www.google.com</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.peterglaeser.com/downloading-sites-using-wget/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Backup Scripts for Your Server</title>
		<link>http://www.peterglaeser.com/backup-scripts-for-your-server/</link>
		<comments>http://www.peterglaeser.com/backup-scripts-for-your-server/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 17:46:29 +0000</pubDate>
		<dc:creator>Peter Glaeser</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.affiliatetracking.de/backup-scripts-for-your-server/</guid>
		<description><![CDATA[In a previous comment I was asked to post a backup procedure that I use on my root servers. The following is a backup stategy that I use on my SuSE servers. Backup directories You create the following directories: /root/backup/scripts &#8230; <a href="http://www.peterglaeser.com/backup-scripts-for-your-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In a previous comment I was asked to post a backup procedure that I use on my root servers. The following is a backup stategy that I use on my SuSE servers.</p>
<h3>Backup directories</h3>
<p>You create the following directories:</p>
<ul>
<li>/root/backup/scripts</li>
<li>/root/backup/files</li>
</ul>
<h3>Hourly backup script</h3>
<p>Create /root/backup/scripts/1h.sh with the following contents and make it executable:<br />
<code>tar -czf /root/backup/files/partial_`date +%Y-%m-%d_%H-%M`.tar.gz `find /etc /home /srv /var -type f -mmin -60` 2> /dev/null<br />
find /root/backup/files -name 'partial*' -mtime +7 -exec unlink '{}' \;</code><br />
This creates backups of files that were changed in the past 60 minutes. Also it deletes those hourly backups that are older than 7 days.</p>
<h3>Daily backup script</h3>
<p>Create /root/backup/scripts/1d.sh with the following contents and make it executable:<br />
<code>rm /root/backup/files/complete*<br />
tar -czf /root/backup/files/complete.tar.gz /etc/ /home/ /srv/ /var/ 2> /dev/null<br />
lftp ftp://#username#:#password#@#host# -e "put /root/backup/files/complete.tar.gz; quit"</code></p>
<p>This creates a full daily backup of the important files of your server. That complete backup is then copied to an external FTP server. That way you can access your backup even if the whole machine becomes inaccessible. You may need to install the lftp program if it&#8217;s not on your machine by default.</p>
<p>You don&#8217;t need to create separate MySQL dumps. The MySQL data are stored in the /var structure, in my case under /var/lib/mysql/#database#.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.peterglaeser.com/backup-scripts-for-your-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

