Amanda-Users

Re: Newbie needs Help

2006-05-05 11:56:20
Subject: Re: Newbie needs Help
From: Pavel Pragin <ppragin AT zmanda DOT com>
To: Gordon.Mills AT usa DOT net
Date: Fri, 05 May 2006 08:50:35 -0700
Gordon J. Mills III wrote:

On this same topic, is there a way to have amrecover list the available
versions of a file that are currently on tape?
i.e. list the 5 versions of the file with the dates so that you can choose
the one you want?

Regards,
Gordon
-----Original Message-----
From: owner-amanda-users AT amanda DOT org [mailto:owner-amanda-users AT amanda DOT org] On Behalf Of Geert Uytterhoeven
Sent: Thursday, May 04, 2006 10:41 AM
To: Luis Rodrigues
Cc: amanda-users AT amanda DOT org
Subject: Re: Newbie needs Help

On Thu, 4 May 2006, Luis Rodrigues wrote:
The normal everyday amanda incremental backup saves all the
touched files to the holding disk?

Yes.

If the file is changed 5 times in a backup cicle it will
get backed up
5 times? if so how do I access it using amandarecover?
By specifying the date of the version you want to recover.

On Thu, 4 May 2006 10:26:39 -0400
Jon LaBadie <jon AT jgcomp DOT com> wrote:
On Thu, May 04, 2006 at 03:52:07PM +0200, Luis Rodrigues wrote:
I've just started a job at a new company. They have an backup system with everyday copies the touched files to a disk
on a backup server and on the weekend it makes a 0 level to tape.
They say the system is not really relayable because
some times they don't find the files an want a new one.
So I will install amanda.

The problem is that they want to keep the old backup
touched files each day and zero level on the weekend.
In http://www.amanda.org/docs/topten.html#id2552255
says this is not possible.
So I will use amanda with a weekly cycle so that at
saturday everyting is backuedup.
But I still need to incremental backup the touched files since last inscremental, is it possible to force amanda to
(in its runs during week) first copy to backup server the touched files and them some others?
You can nearly mimic what they have been doing. Not
necessarily my
recommendation, but sometimes "ya gotta do what da boss
sais ya gotta do".
Think of their current backup disk as amanda's "holding disk".
Set up your amanda config to 'autoflush" the holding disk
whenever
it actually does tape.
Set up your config to not do level 0's except when forced
with amadmin.
I forget if this is "skip-full" or "incr-only".
Set up amanda to use a symbolic link to the tape device,
eg. /dev/amandatape.
This will be missing normally, so incremental backups
will collect
on the holding disk, waiting to autoflush.
Set up your daily cron job to "rm amandatape" then amdump.
Set up your weekend cronjob to amadmin force level 0's,
create the
symbolic tape device link, then do amdump, the rm amandatape.
The entire week will go to tape.

If so what will happen if a file is changed two times
in one week?
You will have a copy of each version.
During the week you can still use amrecover to get at the incrementals collecting on the holding disk.
Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert AT linux-m68k DOT org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds




You can use the "history" command within amrecover:

amrecover> sethost ppragin
200 Dump host set to ppragin.
amrecover> listdisk
200- List of disk for host ppragin
201- /boot
201- /var
201- /etc
200 List of disk for host ppragin
amrecover> setdisk /boot
200 Disk set to /boot.
amrecover> history
200- Dump history for config "tapetwo" host "ppragin" disk /boot
201- 2006-05-05-09-34-15 0 WeeklyTape-02:1
201- 2006-05-04-18-27-38 0 WeeklyTape-01:1
201- 2006-05-04-17-50-20 0 WeeklyTape-04:1
200 Dump history for config "tapetwo" host "ppragin" disk /boot
amrecover> setdate 2006-05-04-17-50-20
200 Working date set to 2006-05-04-17-50-20.
amrecover> ls
2006-05-04-17-50-20 vmlinuz-2.6.14-1.1656_lc1_FC4.root
2006-05-04-17-50-20 lost+found/
2006-05-04-17-50-20 initrd-2.6.14-1.1656_lc1_FC4.root.img
2006-05-04-17-50-20 grub/
2006-05-04-17-50-20 config-2.6.14-1.1656_lc1_FC4.root
2006-05-04-17-50-20 System.map-2.6.14-1.1656_lc1_FC4.root
2006-05-04-17-50-20 .
amrecover>



<Prev in Thread] Current Thread [Next in Thread>