<?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; Backup</title>
	<atom:link href="http://ubuntulinux.co.in/blog/category/backup/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>Sat, 21 Jan 2012 05:57:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Mysql DB Backup and Restore How to</title>
		<link>http://ubuntulinux.co.in/blog/ubuntu/mysql-db-backup-and-restore-how-to/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mysql-db-backup-and-restore-how-to</link>
		<comments>http://ubuntulinux.co.in/blog/ubuntu/mysql-db-backup-and-restore-how-to/#comments</comments>
		<pubDate>Mon, 31 May 2010 09:57:23 +0000</pubDate>
		<dc:creator>sahab</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[RHEL5]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu 10.04]]></category>
		<category><![CDATA[ubuntu 7.10]]></category>
		<category><![CDATA[ubuntu 8.04]]></category>
		<category><![CDATA[ubuntu 8.10]]></category>
		<category><![CDATA[ubuntu 9.04]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Mysql DB Backup and Restore]]></category>
		<category><![CDATA[ubuntu backup tool]]></category>
		<category><![CDATA[ubuntu guide]]></category>
		<category><![CDATA[ubuntu linux]]></category>

		<guid isPermaLink="false">http://ubuntulinux.co.in/blog/?p=197</guid>
		<description><![CDATA[Mysql DB Backup and Restore How to]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: medium;"><strong>Database Backup</strong></span></p>
<div>If you&#8217;re storing anything in MySQL databases that you do not want to lose, it is very important to make regular backups of your data to protect it from loss. It is also a good idea to create a backup before making any major changes, incase something goes wrong and you need to revert to the unmodified version. Database backups can also be used to transfer your database from one server to another if you change web hosts.</div>
<div><strong>Command Line (using mysqldump)</strong></div>
<div>
<div><strong> # mysqldump -u user_name -p your_password database_name &gt; File_name.sql</strong></p>
<p>Eg:<br />
Let&#8217;s assume that:<br />
Username: ubuntu<br />
Password: jaunty<br />
Database Name: ubuntulinux</p></div>
<div><strong># mysqldump -u ubuntu -p jaunty ubuntulinx&gt; ubuntulinux.sql</strong></p>
<p>This will backup the database to a file called ubuntulinux.sql</p></div>
<div><strong>Back up more than one database </strong></div>
<div><strong> </strong></div>
</div>
<div>
<div>In this case you can use the &#8211;database option followed by the list of databases you would like to backup. Each database name has to be separated by space.</div>
</div>
<div><strong>#mysqldump -u root -p &#8211;databases ubuntu ubuntulinux &gt; data_backup.sql </strong></div>
<div><strong> </strong></div>
<div><strong>Backup all Database</strong></div>
<div><strong> </strong></div>
<div>Back up all the databases in the server at one time you should use the &#8211;all-databases option. It tells MySQL to dump all the databases it has in storage.</div>
<div>
<div><strong>#mysqldump -u root -p &#8211;all-databases &gt; all_backup.sql </strong></div>
</div>
<div>
<div>
<h2><span style="font-size: x-small;">Database Backup From the phpMyAdmin</span></h2>
<p>1. Login to phpMyAdmin<br />
2. Click on your database name<br />
3. Click on the tab labeled EXPORT<br />
4. Select all tables you want to backup (usually all)<br />
5. Default settings usually work, just make sure SQL is checked<br />
6. Check the SAVE FILE AS box<br />
7. Hit GO</p></div>
</div>
<div>
<span style="font-size: small;"><strong>Database Restore </strong></span></p>
<h2><span style="font-size: x-small;">Restore Database From the Command Prompt</span></h2>
</div>
<div>
<div>If you are moving your data to a new server, or you have removed the old database completely you can restore it using the code below. This will only work if the database does not already exist:</p>
<p><strong>#mysql &#8211; u user_name -p your_password database_name &lt; file_name.sql</strong></p>
<p>Or using our previous example</p></div>
<div><strong>#mysql &#8211; u ubuntu -p jaunty ubuntulinux &lt; ubuntuBackup.sql</strong></p>
<p>If your database already exists and you are just restoring it, try this line instead:</p>
<p><strong>#mysqlimport -u user_name -p your_password database_name file_name.sql</strong></p>
<p>Or using our example again:</p>
<p><strong>#mysqlimport -u ubuntu -p jaunty ubuntulinux ubuntuBackup.sql<br />
</strong></div>
</div>
<div><strong><br />
Restore Database From the phpMyAdmin</strong></div>
<ol>
<li>Login to phpMyAdmin</li>
<li>Click on the tab labeled SQL</li>
<li>Unclick the &#8216;show query here again&#8217; box</li>
<li>Choose your backup file</li>
<li>Hit GO</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ubuntulinux.co.in/blog/ubuntu/mysql-db-backup-and-restore-how-to/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Thunderbird mail and profile backup on Ubuntu</title>
		<link>http://ubuntulinux.co.in/blog/ubuntu/thunderbird-mail-and-profile-backup-on-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=thunderbird-mail-and-profile-backup-on-ubuntu</link>
		<comments>http://ubuntulinux.co.in/blog/ubuntu/thunderbird-mail-and-profile-backup-on-ubuntu/#comments</comments>
		<pubDate>Fri, 28 May 2010 16:32:08 +0000</pubDate>
		<dc:creator>sahab</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[RHEL5]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu 10.04]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>
		<category><![CDATA[mail backup and resotre in linux]]></category>
		<category><![CDATA[Thunderbird mail and profile backup]]></category>

		<guid isPermaLink="false">http://ubuntulinux.co.in/blog/?p=118</guid>
		<description><![CDATA[thunderbird mail backup and restore]]></description>
			<content:encoded><![CDATA[<table cellspacing="5" cellpadding="0" width="100%">
<tbody>
<tr>
<td align="left" valign="top">
<div>
<div><span style="font-size: small;"><strong><em>Thunderbird</em> </strong>allows you to customize your <em>email</em> to  suit your  specific needs.</span></div>
<div><span style="font-size: small;"><br />
In Linux Mozilla thunderbird stores your email and profile setting in a  special directory called ~/.thunderbird  i.e. /home/you/.thunderbird/  or ~/.thunderbird directory. All you have to do is backup this  directory. </span></div>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top"></td>
</tr>
<tr>
<td align="left" valign="top">
<div>
<h2>Backup Thunderbird mail and profile</h2>
<div><span style="font-size: small;">backup thunderbird mail and profile to a /backup  directory</span></div>
<div><span style="font-size: small;"> </span></div>
<div><span style="font-size: small;">#<strong>sudo mkdir /backup</strong></span></div>
<div><span style="font-size: small;">#<span style="font-family: Times New Roman;"><strong><code>tar zcvf  /backup/email-ubuntu-181aug2009.tar.gz /home/ubuntu/.thunderbird/</code></strong></span></span></div>
<div><span style="font-family: Times New Roman;"> </span></div>
<div>
<h3>Restore Thunderbird mail and profile</h3>
<div><span style="font-size: small;">Make sure Thunderbird is not running. Simply copy  backup files from USB pen or CD to your /home/you/.mozilla-thunderbird/  directory:</span></div>
<div><span style="font-size: small;"> </span></div>
<p><span style="font-size: small;"><code>$ <strong>tar –zxvf /backup/</strong></code><strong><code>email-ubuntu-181aug2009.tar.gz</code><code>-C  /home/ubuntu</code></strong></span></p>
<p><span style="font-size: small;">Or just copy all files from USB pen/CD to  ~/.thunderbird/  directory.</span></p>
</div>
</div>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://ubuntulinux.co.in/blog/ubuntu/thunderbird-mail-and-profile-backup-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Amanda Backup Using Virtual Tape on Ubuntu</title>
		<link>http://ubuntulinux.co.in/blog/ubuntu/amandabackup/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amandabackup</link>
		<comments>http://ubuntulinux.co.in/blog/ubuntu/amandabackup/#comments</comments>
		<pubDate>Fri, 28 May 2010 08:29:11 +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>

		<guid isPermaLink="false">http://ubuntulinux.co.in/blog/?p=113</guid>
		<description><![CDATA[Amanda Backup Using Virtual Tape on Ubuntu]]></description>
			<content:encoded><![CDATA[<div><span style="font-size: small;"><strong>Amanda Client</strong></p>
<p>Here We are using two clients one is backup.ubuntulinux.co.in and another one is the same amdanda server ubuntulinux.co.in.</p>
<p>Install AMANDA client</p>
<p>Install the AMANDA client app</p>
<p><strong> sudo apt-get install amanda-client</strong></p>
<p>Create necessary amanda directory ( It is not needed for the server ubuntulinux.co.in)</p>
<p><strong> sudo mkdir -p -m 770 /etc/amanda</strong></p>
<p>Change owner</p>
<p><strong>sudo chown -R backup.backup /etc/amanda</strong></p>
<p>Become the backup user</p>
<p><strong> su backup</strong></p>
<p>Create an excludes file</p>
<p><strong>touch /etc/amanda/exclude.gtar</strong></p>
<p>Edit /etc/amandahosts to allow server to connect to client machine for backups</p>
<p><strong> localhost backup<br />
backup.ubuntulinux.co.in backup<br />
ubuntulinux.co.in backup</strong></p>
<p>Create xinetd amanda entry</p>
<p><strong>sudo vim /etc/xinetd.d/amanda</strong></p>
<p>Edit the file, mine looks like</p>
<p># default: on<br />
#<br />
# description: Amanda services for Amanda client.<br />
#<br />
service amanda<br />
{<br />
bind               = backup.ubuntulinux.co.in<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<br />
disable          = no<br />
}</p>
<p>Each of these lines is very important. The &#8220;bind&#8221; line will probably not be necessary for most configurations &#8211; this is in place because I have 2 different IP addresses binding to the same device (eth0 aliases).</p>
<p>Restart xinetd</p>
<p><strong> sudo /etc/init.d/xinetd restart</strong></p>
<p>Edit /etc/services to look like</p>
<p>#<br />
# Amanda Services<br />
#<br />
amanda          10080/udp<br />
amanda          10080/tcp<br />
kamanda         10081/udp<br />
kamanda         10081/tcp<br />
amandaidx       10082/tcp<br />
amidxtape       10083/tcp</p>
<p>Make sure your /etc/inetd.conf looks like</p>
<p></span></div>
<div><span style="font-size: small;"><br />
amanda dgram udp wait backup /usr/sbin/tcpd /usr/lib/amanda/amandad</p>
<p>On the Server</p>
<p>Verify Configuration<br />
Run amcheck on Server to verify configuration files, connections, etc lgoin as backup user<br />
Code:</p>
<p><strong> amcheck DailySet1</strong><br />
Output looks like<br />
Cod</p>
<p><strong> backup@ubuntulinux:~$ amcheck DailySet1<br />
Amanda Tape Server Host Check<br />
Holding disk /dumps/amanda: 4478364 KB disk space available, using 4375964 KB<br />
slot 2: read label `DailySet1-02&#8242;, date `X&#8217;<br />
NOTE: skipping tape-writable test<br />
Tape DailySet?1-02 label ok<br />
Server check took 0.112 seconds<br />
Amanda Backup Client Hosts Check<br />
Client check: 2 host checked in 0.017 seconds, 0 problems found<br />
(brought to you by Amanda 2.5.1p3)</strong></p>
<p></span></div>
<div><span style="font-size: small;"> </span></div>
<div><span style="font-size: small;">For taking the backup</span></div>
<div><span style="font-size: small;"> </span></div>
<div><span style="font-size: small;"><strong>amdump Dailyset1</strong></span></div>
<div><span style="font-size: small;"> </span></div>
<div><span style="font-size: small;"><strong>Amrecover</strong></span></div>
<div><span style="font-size: small;"><br />
amrecover — Amanda index database browser</p>
<p>Amrecover browses the database of Amanda index files to determine which tapes contain files to recover. Furthermore, it is able to recover files.</p>
<p>In order to restore files in place, you must invoke amrecover from the root of the backed up filesystem, or use lcd to move into that directory, otherwise a directory tree that resembles the backed up filesystem will be created in the current directory. See the examples below for details.</p>
<p>Amrecover should be run as root user.</p>
<p>Amrecover will the read the amanda-client.conf file and the config/amanda-client.conf file. If no configuration name is supplied on the command line, Amrecover will try the compiled-in default configuration, usually DailySet?1.</p>
<p>Edit the following lines in amanda-client.conf</p>
<p>conf &#8220;DailySet1&#8243; # your config name</p>
<p>index_server &#8220;ubuntulinux.co.in&#8221; # your amindexd server<br />
tape_server &#8220;ubuntulinux.co.in&#8221; # your amidxtaped server<br />
tapedev &#8220;file:/amandabackup/DailySet?1/slots&#8221; # your tape device</p>
<p>Example<br />
<strong>root@ubuntulinux:~# amrecover</strong><br />
AMRECOVER Version 2.5.1p3. Contacting server on localhost &#8230;<br />
220 ubuntulinux AMANDA index server (2.5.1p3) ready.<br />
Setting restore date to today (2008-04-22)<br />
200 Working date set to 2008-04-22.<br />
200 Config set to DailySet?1.<br />
200 Dump host set to ubuntulinux.co.in.<br />
Use the setdisk command to choose dump disk to recover<br />
<strong>amrecove</strong>r&gt; ls<br />
Must select a disk before listing files; use the setdisk command.<br />
<strong>amrecove</strong>r&gt; help<br />
valid commands are:</p>
<p>add path1 &#8230; &#8211; add to extraction list (shell wildcards)<br />
addx path1 &#8230; &#8211; add to extraction list (regular expressions)<br />
cd directory &#8211; change cwd on virtual file system (shell wildcards)<br />
cdx directory &#8211; change cwd on virtual file system (regular expressions)<br />
clear &#8211; clear extraction list<br />
delete path1 &#8230; &#8211; delete from extraction list (shell wildcards)<br />
deletex path1 &#8230; &#8211; delete from extraction list (regular expressions)<br />
extract &#8211; extract selected files from tapes<br />
exit<br />
help<br />
history &#8211; show dump history of disk<br />
list [filename] &#8211; show extraction list, optionally writing to file<br />
lcd directory &#8211; change cwd on local file system<br />
ls &#8211; list directory on virtual file system<br />
lpwd &#8211; show cwd on local file system<br />
mode &#8211; show the method used to extract SMB shares<br />
pwd &#8211; show cwd on virtual file system<br />
quit<br />
listhost &#8211; list hosts<br />
listdisk [diskdevice] &#8211; list disks<br />
setdate {YYYY-MM-DD|&#8211;MM-DD|&#8212;DD} &#8211; set date of look<br />
{YYYY-MM-DD-HH-MM-SS} &#8211; set date of look<br />
setdisk diskname [mountpoint] &#8211; select disk on dump host<br />
sethost host &#8211; select dump host<br />
settape [host:][device|default] &#8211; select tape server and/or device<br />
setmode smb|tar &#8211; select the method used to extract SMB shares</p>
<p><strong>amrecove</strong>r&gt; listhost<br />
200- List hosts for config DailySet1<br />
201- ubuntulinux.co.in<br />
200 List hosts for config DailySet1<br />
amrecover&gt; listdisk<br />
200- List of disk for host ubuntulinux.co.in<br />
201- /Project<br />
200 List of disk for host ubuntulinux.co.in<br />
amrecover&gt; setdisk /Project /Documents<br />
200 Disk set to /Project.<br />
amrecover&gt; lpwd<br />
/root<br />
<strong>amrecover&gt; ls</strong><br />
2008-04-22 ubunutlinux/<br />
2008-04-22 new/<br />
2008-04-22 myproject/<br />
2008-04-22 lost+found/</p>
<p></span></div>
<div><span style="font-size: small;"> </span></div>
<div><span style="font-size: small;"><strong>amrecover&gt; add myproject</strong><br />
Added dir /myproject/ at date 2008-04-22<br />
amrecover&gt; lpwd<br />
/root<br />
amrecover&gt; extract</p>
<p>Extracting files using tape drive @DEFAULT_TAPE_DEVICE@ on host localhost.<br />
The following tapes are needed: DailySet1-01</p>
<p>Restoring files into directory /root<br />
Continue [?/Y/n]? y</p>
<p>Extracting files using tape drive @DEFAULT_TAPE_DEVICE@ on host localhost.<br />
Load tape DailySet1-01 now<br />
Continue [/Y/n/s/t]? y<br />
Label mismatch, got DailySet?1-02 and expected DailySet?1-01<br />
Looking for tape DailySet?1-01&#8230;<br />
./myproject/<br />
./myproject/.bzr/<br />
./myproject/.bzr/branch/<br />
./myproject/.bzr/branch-lock/<br />
./myproject/.bzr/branch/lock/<br />
./myproject/.bzr/repository/<br />
./myproject/.bzr/repository/knits/<br />
./myproject/.bzr/repository/lock/<br />
./myproject/.bzr/repository/revision-store/<br />
./myproject/.bzr/README<br />
./myproject/.bzr/branch-format<br />
./myproject/.bzr/branch/branch-name<br />
./myproject/.bzr/branch/format<br />
./myproject/.bzr/branch/revision-history<br />
./myproject/.bzr/repository/format<br />
./myproject/.bzr/repository/inventory.kndx<br />
./myproject/.bzr/repository/inventory.knit<br />
./myproject/.bzr/repository/revisions.kndx<br />
./myproject/.bzr/repository/revisions.knit<br />
./myproject/.bzr/repository/signatures.kndx<br />
./myproject/.bzr/repository/signatures.knit<br />
amrecover&gt; quit<br />
200 Good bye.</p>
<p></span></div>
<p><a class="wp-caption" title=" Amanda Backup Using Virtual Tape on Ubuntu" href="http://ubuntulinux.co.in/blog/ubuntu/amanda-backup/" target="_self"><span style="font-size: small;">Page 1</span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntulinux.co.in/blog/ubuntu/amandabackup/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<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>

