<?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>Ubuntu Linux, ubuntu desktop, Linux operating system, ubuntu guide &#187; Amanda Backup Using Virtual Tape on Ubuntu</title>
	<atom:link href="http://ubuntulinux.co.in/blog/tag/amanda-backup-using-virtual-tape-on-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://ubuntulinux.co.in/blog</link>
	<description>How to fix the Technical issue in Ubuntu linux</description>
	<lastBuildDate>Thu, 17 May 2012 13:12:03 +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>Amanda Backup Using Virtual Tape on Ubuntu</title>
		<link>http://ubuntulinux.co.in/blog/ubuntu/amanda-backup/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amanda-backup</link>
		<comments>http://ubuntulinux.co.in/blog/ubuntu/amanda-backup/#comments</comments>
		<pubDate>Fri, 28 May 2010 08:23:40 +0000</pubDate>
		<dc:creator>sahab</dc:creator>
				<category><![CDATA[Amanda]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu 10.04]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>
		<category><![CDATA[Amanda Backup Using Virtual Tape on Ubuntu]]></category>
		<category><![CDATA[ubuntu backup tool]]></category>

		<guid isPermaLink="false">http://ubuntulinux.co.in/blog/?p=109</guid>
		<description><![CDATA[Amanda Backup Using Virtual Tape on Ubuntu]]></description>
			<content:encoded><![CDATA[<div><span style="font-family: Times New Roman; font-size: large;"><a href="../../Backup---Amanda-Setup-in-Ubuntu-7-10-with-Virtual-Tapes.php"><strong>Amanda Backup Using Virtual Tape on Ubuntu 7.10</strong></a></span></div>
<div><span style="font-family: Times New Roman; font-size: small;"> </span></div>
<div>
<h2><span style="font-family: Times New Roman; font-size: small;"><span style="text-decoration: underline;">Amanda:</span></span></h2>
<p><span style="font-family: Times New Roman; font-size: small;">AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that allows the administrator to set up a single master backup server to back up multiple hosts over network to tape drives/changers or disks or optical media. Amanda uses native dump and/or GNU tar facilities and can back up a large number of workstations running multiple versions of Unix.</span></p>
<p>This will guide you through setting up virtual tapes (utilize hard disk space for backups)<br />
<strong><br />
Install and Modify the xinetd</strong></p>
</div>
<div><span style="font-family: Times New Roman; font-size: small;"> </span></div>
<div><span style="font-family: Times New Roman; font-size: small;"> Create an amanda xinetd entry </span></div>
<div><span style="font-family: Times New Roman; font-size: small;"><br />
If you haven&#8217;t already installed xinetd, install it </span><span style="font-family: Times New Roman; font-size: small;"><br />
</span></div>
<div><span style="font-family: Times New Roman; font-size: small;"><strong>sudo apt-get install xinetd</strong></p>
<p>Create an amanda xinetd entry<br />
Code:</p>
<p><strong>sudo vim /etc/xinetd.d/amanda<br />
</strong><br />
Give it the following contents<br />
Code:</p>
<p># default: on<br />
# description: The amanda service<br />
service amanda<br />
{<br />
only_from            = ubunutlinux.co.in<br />
disable                  = no<br />
socket_type         = dgram<br />
protocol                = udp<br />
wait                        = yes<br />
user                        = backup<br />
group                     = backup<br />
groups                   = yes<br />
server                     = /usr/lib/amanda/amandad<br />
server_args           = -auth=bsd amdump amindexd amidxtaped<br />
}<br />
service amandaidx<br />
{<br />
socket_type             = stream<br />
protocol                    = tcp<br />
wait                            = no</p>
<p></span><span style="font-family: Times New Roman; font-size: small;"> user                             = backup<br />
</span><span style="font-family: Times New Roman; font-size: small;"> group                          = backup<br />
groups                        = yes<br />
server                          = /usr/lib/amanda/amindexd<br />
disable                        = no<br />
}<br />
service amidxtape<br />
{<br />
socket_type             = stream<br />
protocol                   = tcp<br />
wait                           = no<br />
user                           = backup<br />
group                       = backup<br />
groups                     = yes<br />
server                       = /usr/lib/amanda/amidxtaped<br />
disable                     = no<br />
}</p>
<p><strong>Install the AMANDA Server</strong></p>
<p>Install AMANDA and dependencies</p>
<p><strong>sudo apt-get install amanda-server</strong></p>
<p>Restart xinetd</p>
<p><strong>sudo /etc/init.d/xinetd restart</strong></p>
<p>Become &#8220;backup&#8221; user</p>
<p><strong>su backup</strong></p>
<p>Create copies of the configuration files, just in case</p>
<p><strong> cp -R /etc/amanda/DailySet1 /etc/amanda/DailySet1.bak</strong></p>
<p>Edit amanda.conf</p>
<p>Let&#8217;s get in and edit the amanda.conf<br />
Code:</p>
<p><strong>vim /etc/amanda/DailySet?1/amanda.conf</strong></p>
<p>Make the following changes in the file<br />
Code:</p>
<p>org “&#8221;<br />
mailto &#8220;backupadmin@ubuntulinux.co.in &#8221;<br />
tpchanger &#8220;chg-disk&#8221;<br />
changerfile &#8220;/etc/amanda/daily/changer&#8221;<br />
tapedev &#8220;file:/amandabackup/DailySet1/slots&#8221;<br />
tapetype HARDDISK<br />
#tapetype HP-DAT   &lt;&#8212; comment this out<br />
#labelstr &#8220;^HISS[0-9][0-9]*$&#8221;           &lt;&#8212; comment this out<br />
amrecover_do_fsf yes<br />
amrecover_check_label yes<br />
amrecover_changer &#8220;changer&#8221;<br />
define tapetype HARDDISK {<br />
length  mbytes<br />
}<br />
<strong> </strong></p>
<p></span></div>
<div><span style="font-family: Times New Roman; font-size: small;"><strong>Edit disklist<br />
</strong><br />
The format for the disklist file is :</p>
<p>Dumptypes are deinfed in /etc/amanda/amanda.conf, but we&#8217;ll use the GNUTAR dumptype &#8220;comp-user-tar&#8221; for this example</p>
<p>Let&#8217;s get in and edit the disklist<br />
Code:</p>
<p>vim /etc/amanda/DailySet1/disklist</p>
<p>Add a line like so<br />
Code:</p>
<p>ubuntulinux.co.in /Project comp-user-tar</p>
<p>ubuntlinux.co.in  /clientbackup comp-user-tar</p>
<p>What this line is telling AMANDA is that when it attempts to do a dump that it should connect to ubuntlinux.co.in, backup the directory /project and /clientbackup and user the options that are defined in amanda.conf for the &#8220;comp-user-tar&#8221; dumptype.<br />
<strong><br />
Create Virtual Tapes</strong></p>
<p>Choose a location for your tapes to reside</p>
<p></span></div>
<div><span style="font-family: Times New Roman; font-size: small;"> Here we using /amandabackups/</p>
<p>Create the tapelist file that is necessary for indexing tapes available<br />
Code:</p>
<p><strong>touch /etc/amanda/DailySet1/tapelist<br />
</strong><br />
Create the location and set permissions for the virtual tapes<br />
Code:</p>
<p><strong>mkdir -p -m 770 /amandabackup/DailySet1/slots</strong></p>
<p><strong> chown -R backup:backup /amdndahosts</strong></p>
<p>CD to the new directory</p>
<p><strong>cd /amandabackup/DailySet1/slots</strong></p>
<p>Create the necessary directories for the tapes<br />
Code:</p>
<p><strong>for (i=1; $i&lt;=25; i++)?; do mkdir slot$i; done<br />
</strong><br />
Create symlink for the data directory to point to the first tape<br />
Code:</p>
<p><strong> ln -s slot1 data</strong></p>
<p>Test the vtapes to be sure that we get an ONLINE message<br />
Code:</p>
<p><strong>ammt -f file:/amandabackup/DailySet?1/slots status</strong></p>
<p>Label the tapes</p>
<p><strong>for (i=1; $i&lt;=9; i++)?; do amlabel DailySet1 DailySet?1-0$i slot $i; done</strong></p>
<p><strong>for (i=10; $i&lt;=25; i++)?; do amlabel DailySet1 DailySet?1-$i slot $i; done</strong></p>
<p>Output should look like (for each slot)</p>
<p><strong> labeling tape in slot 1 (file:/amandabackup/DailySet?1/slots)<br />
rewinding, reading label, not an amanda tape<br />
rewinding, writing label DailySet?1-01, checking label, done.</strong></p>
<p>Reset the changer back to slot 1</p>
<p><strong>amtape DailySet1 reset</strong></p>
<p>Output should look like</p>
<p><strong> amtape: changer is reset, slot 1 is loaded.</strong></p>
<p><strong>Edit .amandahosts</strong></p>
<p>On Ubuntu the .amandahosts file is located as /etc/amandahosts</p>
<p>Open the file</p>
<p>vim /etc/amandahosts</p>
<p>The file looks like</p>
<p></span></div>
<div><span style="font-family: Times New Roman; font-size: small;"> <strong> localhost backup<br />
localhost root amindexd amidxtaped<br />
ubuntlinux.co.in backup</strong></p>
<p><strong>ubuntlinux.co.in backup amindexd amidxtaped</strong><br />
<strong> ubuntlinux.co.in root amindexd amidxtaped</strong></p>
<p></span></div>
<div><span style="font-family: Times New Roman; font-size: small;"> </span></div>
<p><span style="font-family: Times New Roman; font-size: small;"><a href="http://ubuntulinux.co.in/blog/ubuntu/amandabackup/" target="_self">Page 2</a> (amanda client and backup and restore procedure</span></p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntulinux.co.in/blog/ubuntu/amanda-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

