<?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>Thoughts of a Sysadmin</title>
	<atom:link href="http://daniel.thegriswolds.us/feed/" rel="self" type="application/rss+xml" />
	<link>http://daniel.thegriswolds.us</link>
	<description></description>
	<lastBuildDate>Sun, 02 Aug 2009 17:13:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using rsync over ssh to perform backups</title>
		<link>http://daniel.thegriswolds.us/2009/08/01/using-rsync-over-ssh-to-perform-backups/</link>
		<comments>http://daniel.thegriswolds.us/2009/08/01/using-rsync-over-ssh-to-perform-backups/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 01:03:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://daniel.thegriswolds.us/?p=32</guid>
		<description><![CDATA[Due to the low cost of hard disk space, the popular backup method is from hard disk to hard disk.  When backing up systems, I use rsync to synchronize data directories from one system to another.  Using SSH, this data transfer can be encrypted and even performed securely across the Internet.
The first step is to [...]]]></description>
			<content:encoded><![CDATA[<p>Due to the low cost of hard disk space, the popular backup method is from hard disk to hard disk.  When backing up systems, I use rsync to synchronize data directories from one system to another.  Using SSH, this data transfer can be encrypted and even performed securely across the Internet.</p>
<p>The first step is to set up ssh and ssh keys.  These will allow one system to authenticate to another non-interactively.  Access to these keys must be tightly controlled, as they allow remote authentication.</p>
<ol>
<li> mkdir /root/keys</li>
<li>chown root:root /root/keys</li>
<li>chmod 700 /root/keys</li>
<li>ssh-keygen -t dsa -b 2048 -f /root/key/`uname -n`-rsync-key</li>
<li>When prompted for a passphrase, simply press enter</li>
<li>scp `uname -n`-rsync-key.pub user@remotehost:/root/.ssh/</li>
<li>from the remote server: cat backuphost-rsync-key.pub /root/.ssh/authorized_keys</li>
</ol>
<p>To backup systems, I create a script in /root/bin for each remote host I am backing up.  The example below is used to backup a web server&#8217;s data files and configuration.</p>
<p>#!/bin/sh</p>
<p>RSYNC=/usr/bin/rsync<br />
SSH=/usr/bin/ssh<br />
KEY=/root/keys/<em>local host name</em>-rsync-key<br />
RUSER=<em>remote user name</em><br />
RHOST=<em>remote host</em><br />
LPATH=/data/backup/$RHOST/</p>
<p>BACKUPDIR=`date +%A`<br />
OPTS=&#8221;&#8211;force &#8211;ignore-errors &#8211;delete &#8211;backup &#8211;backup-dir=$LPATH/$BACKUPDIR -az&#8221;</p>
<p>$RSYNC $OPTS -e &#8220;$SSH -i $KEY&#8221; $RUSER@$RHOST:/home $LPATH/current<br />
$RSYNC $OPTS -e &#8220;$SSH -i $KEY&#8221; $RUSER@$RHOST:/srv $LPATH/current<br />
$RSYNC $OPTS -e &#8220;$SSH -i $KEY&#8221; $RUSER@$RHOST:/etc/apache2 $LPATH/current/etc<br />
$RSYNC $OPTS -e &#8220;$SSH -i $KEY&#8221; $RUSER@$RHOST:/etc/mysql $LPATH/current/etc</p>
<p>Each backed up host will have a unique directory, with a full backup in the current directory and differentials in directories based on the day of the week.</p>
]]></content:encoded>
			<wfw:commentRss>http://daniel.thegriswolds.us/2009/08/01/using-rsync-over-ssh-to-perform-backups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webmin on Ubuntu 9.04</title>
		<link>http://daniel.thegriswolds.us/2009/06/21/webmin-on-ubuntu-9-04/</link>
		<comments>http://daniel.thegriswolds.us/2009/06/21/webmin-on-ubuntu-9-04/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 03:51:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://daniel.thegriswolds.us/?p=17</guid>
		<description><![CDATA[Install the needed prerequisites.  Perl, OpenSSL, and supporting libraries.
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
Download and install the latest webmin.
wget http://voxel.dl.sourceforge.net/sourceforge/webadmin/webmin_1.480_all.deb &#124; sudo dpkg -i
Webmin can be accessed securely on port 10000 using any credentials present in the sodoers file.
https://localhost:10000
]]></description>
			<content:encoded><![CDATA[<p>Install the needed prerequisites.  Perl, OpenSSL, and supporting libraries.<br />
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl</p>
<p>Download and install the latest webmin.<br />
wget http://voxel.dl.sourceforge.net/sourceforge/webadmin/webmin_1.480_all.deb | sudo dpkg -i</p>
<p>Webmin can be accessed securely on port 10000 using any credentials present in the sodoers file.<br />
https://localhost:10000</p>
]]></content:encoded>
			<wfw:commentRss>http://daniel.thegriswolds.us/2009/06/21/webmin-on-ubuntu-9-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Groupwise 8 client on Ubuntu 9.04</title>
		<link>http://daniel.thegriswolds.us/2009/06/20/groupwise-8-client-on-ubuntu-9-04/</link>
		<comments>http://daniel.thegriswolds.us/2009/06/20/groupwise-8-client-on-ubuntu-9-04/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 01:14:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Jaunty Jackalope 9.04]]></category>
		<category><![CDATA[Novell Groupwise]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://daniel.thegriswolds.us/?p=3</guid>
		<description><![CDATA[Novell offers a full featured Linux client for its Groupwise mail system.  The release version is built as rpm files, which integrates nicely with SuSE Linux Enterprise Desktop, but does not install directly on debian/ubuntu based systems.
Installation of the Groupwise client in Ubuntu Jaunty is relatively straight forward.
1.  Download the Groupwise 8 Client from your [...]]]></description>
			<content:encoded><![CDATA[<p>Novell offers a full featured Linux client for its Groupwise mail system.  The release version is built as rpm files, which integrates nicely with SuSE Linux Enterprise Desktop, but does not install directly on debian/ubuntu based systems.</p>
<p>Installation of the Groupwise client in Ubuntu Jaunty is relatively straight forward.</p>
<p>1.  Download the Groupwise 8 Client from your Software Distribution Directory (SDD).  Typically this is /opt/novell/groupwise/software/<br />
2.  sudo apt-get install sun-java6-jre java-common alien libstdc++5<br />
3.  sudo alien -i novell-groupwise-gwclient-8.0.0-&lt;buildnumber&gt;.i586.rpm<br />
4.  sudo rm -rf /opt/novell/groupwise/client/jre<br />
5.  sudo ln -s /usr/lib/jvm/java-6-sun/jre /opt/novell/groupwise/client/jre</p>
]]></content:encoded>
			<wfw:commentRss>http://daniel.thegriswolds.us/2009/06/20/groupwise-8-client-on-ubuntu-9-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

