Re: Auto-flush during amdump?

2002-06-18 Thread Ben Kochie

that's an interesting idea.. maybe it would be better to make it part of
the planner..

planner sees dumps in the holding disk, adds that count to the plan for
the current day, and will flush it along with the current disks.

this would save a lot of time for me as well.

just add to amanda.conf:

autoflush true

-ben

On Tue, 18 Jun 2002, Colin Henein wrote:

 Greetings Amanda types.

 I've been using amanda for a few years now, so I'm pretty sure this can't be
 done. I thought I'd ask anyway, perhaps it will stimulate discussion of this
 as a potential new feature.

 I'm interested in having amanda flush any backups that are in the holding
 area as a part of the nightly amdump run.

 Our server is co-located with our ISP. While they are pretty good at
 changing our tapes, they do occasionally mess up, and we often don't catch
 them before the backup runs. What happens is that our backups wind up in the
 holding area, as you'd expect. The problem is that it's a multi-step
 headache to call the ISP, explain the problem, get the correct tape loaded,
 hang up; an amflush is then performed; then we have to call the ISP again,
 and get them to put the next night's tape in.

 Now, when you run amflush at the command line, it offers to put all the held
 backups onto one tape for you. What would really make life easier for us is
 if amdump essentially could be instructed to do the same thing... Take all
 the backups from the holding area, and put them on the tape with the results
 of the current amdump run.

 Can anyone think of a way to do this with the current Amanda? Would this be
 a popular addition if it appeared in a new version? Could this be put on a
 feature-request list?

 Colin





samba multiple exclude

2002-06-13 Thread Ben Kochie

i'm using amanda backup 2.4.3b3, and am setup with smbclient to backup
some NT4 and 2K workstations.. I'm running into the problem that smbclient
is returning errors for open files, such as pagefile.sys, and a few other
files that I want to ignore in backups.

since smbclient doesn't allow for 'exclude list filename', i'm stuck
with 'exclude file file'

smbclient appears to allow for multiple files at the end of the command,
but when I put this in my dumptype:

exclude file pagefile.sys WINNT/Profiles WINNT/system32/config

all backups fail with the message like:

  staff  //client1/C$ lev 0 FAILED [badly formatted response from staff]
  staff  //client2/C$ lev 0 FAILED [badly formatted response from staff]

I think this is something that will have to get fixed with code in amanda,
or is there a proper (not documented currently) way of passing multiple
files to a samba client?

-ben




Re: Multiple Backup

2002-06-11 Thread Ben Kochie

read the amanda faq..

http://amanda.sourceforge.net/fom-serve/cache/29.html

no, you can not store more than one backup session per tape.. that's
dangerous.  (cheap backup programs let you do it, well.. because they're
cheap)

-ben

On Tue, 11 Jun 2002, M. Cao wrote:


 Hi,

 I am first time install amanda.
 Please help me with these questions.


 Can I have more than one backup on single tape ?
 If so, If the first backup completed and I remove the tape from tape
 drive. Is 2nd backup on the same tape overwrite the first one ?

 How do reuse the tape if already label ?

 Thanks
 Minh






Re: exec command before backup ?

2002-06-10 Thread Ben Kochie

you could change the cron entry on the amanda server to remotely execute
the mysqldumps with ssh.

#!/bin/sh

LIST_OF_HOSTS=foo bar baz

for host in $LIST_OF_HOSTS; do
ssh $host /usr/local/sbin/do-mysql-dump.sh
done

/usr/sbin/amdump DailySet1

-ben

On Mon, 10 Jun 2002, Fabien SEISEN wrote:


 Hi,

 I would like to execute some commands on a amanda-client before
 a backup.

 Can amanda do this ?

 (i need to do a mysqldump and only backup the dump, not data in use)
 --
 Fabien Seisen [EMAIL PROTECTED] dakol@opn
 GnuPG ID 1024D/112189D8





Re: amcheck, client problem: [could not access... : Permissiondenied]

2002-06-10 Thread Ben Kochie

it sounds like amcheck is getting run with the wrong permissions.. can you
check the permissions, and paste it for both amcheck and amdump?

-ben

On Mon, 10 Jun 2002, Alessandro Prete wrote:

 I had to split a big partition of a Linux fileserver into several part due
 to the limit of Amanda backing up filesystem bigger than the tape size.
 I simply have done it specifying some subdirectories in the disklist file;
 amdump is working well, excluding the following amcheck error:

 - amcheck result:

 Amanda Tape Server Host Check
 -
 
 Server check took 156.049 seconds

 Amanda Backup Client Hosts Check
 
 ERROR: hal: [could not access /home3/ale/Storage/segmentoC
 (/home3/ale/Storage/segmentoC): Permission denied]
 ERROR: hal: [could not access /home3/ale/Storage/segmentoB
 (/home3/ale/Storage/segmentoB): Permission denied]
 ERROR: hal: [could not access /home3/ale/Storage/segmentoA
 (/home3/ale/Storage/segmentoA): Permission denied]
 ERROR: hal: [could not access /home3/ale/Privato (/home3/ale/Privato):
 Permission denied]
 ERROR: hal: [could not access /home3/ale/Lavoro (/home3/ale/Lavoro):
 Permission denied]
 .

 (brought to you by Amanda 2.4.2p2)

 - amcheck result


 Thank you in advance for any reply.


  Best regards,

   Alessandro Prete
   ICT manager
   Polytechnic of Turin, branch of Alessandria / CdCMP
   phone: +39 (0)131-22.93.40
   eMail: [EMAIL PROTECTED]
   CdCMP website: http://www.polial.polito.it/cdc


 ---
 For every complex problem there is a simple solution.
 And it is wrong.
 ---







Re: Travan 10/20GB ATAPI (IDE) use with Amanda and amlabel

2002-06-10 Thread Ben Kochie

I'm not sure why the travan tape is not working properly.. you may want to
upgrade to Redhat 7.3 for both driver issues, and security reasons..

can I say that again.. UPGRADE :)



as far as your system instability, the mdrecovery process is a program
that monitors raid disks.  it's only needed (if i remember right) when you
have a raid disk fail, and it's required to do re-mirroring, or parity
rebuilds.  as to why it locks up at that point, is a difficult question..
it may just be stalled.. how long have you let it go before powering down
the machine?

it sounds to me like you have something odd going in the kernel.. if I
remember right, 7.1 comes with either a 2.2, or a really old 2.4 kernel..
I suggest getting a copy of 7.3 from someplace like www.cheapbytes.com for
$5, and upgrading the system.

-ben

On Mon, 10 Jun 2002, Trevor Fraser wrote:

 Hi All,

 I've recently intalled a Travan 20GB tape drive ATAPI (IDE) (M/N:
 STT32A), and I'm running Linux 7.1 with Amanda 2.4.2p2. I'm yet to get
 it to work. We are able to see the /dev/nht0 device and can rewind, etc...
 We cannot amlabel or do amcheck.

 The software which comes with the tape drive only supports Microsoft Windows
 and there is no mention of Linux in the documentation or on their website. I
 plug the tape drive into a  Windows machine and install backup-exec and it
 works, but I had to first media initialize.

  I am trying to label the tape using amlabel, with the tape device in the
 config file set to nht0 instead of ht0, ie non-rewinding, but the message
 received is:

 rewinding, reading label, no label found
 rewinding, writing label archive1, checking label
 amlabel: no label found, are you sure /dev/nht0 is non-rewinding?

 when I use amcheck, the message is:
 ERROR:/dev/nht0:not an amanda tape
   (expecting a new tape)

 What am I not seeing/checking?

 Where does Linux get the driver for the tape drive from if I haven't
 installed the software that comes with it. Does the Red Hat package come
 with a driver? The autodetect on startup detects a Seagate STT2A, but on
 the drive it says STT32A. Am I way off ? Please Help!

 System Instability
 -
 The resultant problem since I've installed the tape drive is our Linux file
 server is freezing up, forced rebooting results which is obviously a no-no.

 On shutdown, I see a message:

 Sending all processes the TERM signal...
 Sending all processes the KILL signal... md: recovery thread got woken up..
 md: recovery thread finished...
 mdrecoveryd(8) flushing signals.

 ?Is this of importance to me? The system often freezes at this point.

 The other message I receive comes up at random intivals, sometimes when the
 tape's activity light is on with no activity is happening, and often causes
 the computer to freeze:

 ide-tape: hdd: cleanup_module( ) called while still busy.

 Regards
 Trevor Fraser
 [EMAIL PROTECTED]





Re: 2 tape strategy

2002-06-10 Thread Ben Kochie

you also need to update the cron entries so that it only runs on the days
you want it to.. read the crontab man page, and run the apropriate crontab
command for your system.  (i can't tell you any more, because you didn't
say what OS and version you're running)

-ben

On Mon, 10 Jun 2002, Fernan Aguero wrote:

 Hi!

 I am running amanda-2.4.2p2 succesfully with 2 hosts (1 server, 1
 client). All disklist entries (level 0 dump) fit well on a DDS-4 40GB
 using software compression (about 24 GB now).

 I have only 4 tapes in use and momentarily just 2 (I am keeping 2 of them as
 archival tapes as I am burning some of the data on CDs, and will
 return them to the tapecycle as soon as they get done).

 This is how I've set my conf file:

 dumpcycle 7
 runspercycle 2
 tapecycle 2 tapes

 Based on this I'd expected amanda to run just twice every 7 days.
 However, amanda still runs everyday.
 Is it possible to do this? (if i set a dumpcycle of 30 and
 runspercycle of 1, would amanda run just once per month?)

 I am currently forcing level 0 dumps in every run because otherwise
 amanda would almost always overwrite the only level 0 dump for a
 filesystem.

 Since all lev  0 dumps are only a few megabytes ( 100 MB), is it
 possible to have amanda append these to the end of each tape, thus
 leaving the level 0 dumps untouched?

 Currently I have this problem because on weekends amanda would run
 without being forced to do a lev 0 dump and thus would leave things in
 the holding disk that need to be flushed on Monday. That day, I will
 be left with only 1 level 0 dump in tape for each filesystem.

 Thanks in advance,

 Fernan

 PS: I know that just getting more tapes would be the ideal solution,
 but that is not economically possible in the short term. I'll
 appreciate comments on how to make amanda run as tapewise as it can,
 given my shortage of tape media.

 --

 |  F e r n a n   A g u e r o  |  B i o i n f o r m a t i c s  |
 |   [EMAIL PROTECTED]   |  genoma.unsam.edu.ar  |





Re: 2 tape strategy

2002-06-10 Thread Ben Kochie

check the other replies to your message.. some more detailed info is
included.

the dumpcycle/runspercycle is there to help the planner along.. nothing
more.. remember, the amanda planner is psudo-smart.. it tries to predict
which disk should get their full backups which days.

the cron job is there to just process a current dump.. allowing you to
decide exactly when dumps should occur, not allowing the planer to try and
figure it out for you.

-ben

On Mon, 10 Jun 2002, Fernan Aguero wrote:

 +[ Ben Kochie ([EMAIL PROTECTED]) dijo sobre Re: 2 tape strategy:
 |
 | you also need to update the cron entries so that it only runs on the days
 | you want it to.. read the crontab man page, and run the apropriate crontab
 | command for your system.  (i can't tell you any more, because you didn't
 | say what OS and version you're running)
 |
 | -ben

 Yes!

 Thanks Ben ... I completely forgot about the cron job.

 However, now my question is: how does the interaction of cron job and
 dumpcycle/runspercycle work?

 What is the meaning of runspercycle in amanda.conf if the
 actual 'runs per cycle' are set through the cron job?

 i.e. if i set a dumpcycle of 7 days (meaning I want at least 1 level 0
 dump of each fs per week) and runspercycle to 1, I would expect to
 have amanda run only once per week and do a full dump of every fs.
 However if my cron job is set to run amcheck + amdump every day, I
 suppose amanda will run daily (as it's happening now) and will try to
 dump daily to tape. (Why doesn't amanda skip some days, even if called
 from a cron job?).

 Fernan


 |
 | On Mon, 10 Jun 2002, Fernan Aguero wrote:
 |
 |  Hi!
 | 
 |  I am running amanda-2.4.2p2 succesfully with 2 hosts (1 server, 1
 |  client). All disklist entries (level 0 dump) fit well on a DDS-4 40GB
 |  using software compression (about 24 GB now).
 | 
 |  I have only 4 tapes in use and momentarily just 2 (I am keeping 2 of them as
 |  archival tapes as I am burning some of the data on CDs, and will
 |  return them to the tapecycle as soon as they get done).
 | 
 |  This is how I've set my conf file:
 | 
 |  dumpcycle 7
 |  runspercycle 2
 |  tapecycle 2 tapes
 | 
 |  Based on this I'd expected amanda to run just twice every 7 days.
 |  However, amanda still runs everyday.
 |  Is it possible to do this? (if i set a dumpcycle of 30 and
 |  runspercycle of 1, would amanda run just once per month?)
 | 
 |  I am currently forcing level 0 dumps in every run because otherwise
 |  amanda would almost always overwrite the only level 0 dump for a
 |  filesystem.
 | 
 |  Since all lev  0 dumps are only a few megabytes ( 100 MB), is it
 |  possible to have amanda append these to the end of each tape, thus
 |  leaving the level 0 dumps untouched?
 | 
 |  Currently I have this problem because on weekends amanda would run
 |  without being forced to do a lev 0 dump and thus would leave things in
 |  the holding disk that need to be flushed on Monday. That day, I will
 |  be left with only 1 level 0 dump in tape for each filesystem.
 | 
 |  Thanks in advance,
 | 
 |  Fernan
 | 
 |  PS: I know that just getting more tapes would be the ideal solution,
 |  but that is not economically possible in the short term. I'll
 |  appreciate comments on how to make amanda run as tapewise as it can,
 |  given my shortage of tape media.
 | 
 |  --
 | 
 |  |  F e r n a n   A g u e r o  |  B i o i n f o r m a t i c s  |
 |  |   [EMAIL PROTECTED]   |  genoma.unsam.edu.ar  |
 | 
 |
 |
 |
 +]

 --

 |  F e r n a n   A g u e r o  |  B i o i n f o r m a t i c s  |
 |   [EMAIL PROTECTED]   |  genoma.unsam.edu.ar  |





Re: mirrored remote backups

2002-06-09 Thread Ben Kochie

you could have a script at the end of the backup rewind the tape, and use
ssh to pipe it it to a file on the remote end.  dd if=/dev/nst0 | ssh
remotehost 'dd of=/output/file'

or something similar to that.  kinda hackish.. but it could work for you..
and ssh can be autmated securely with authorization keys.

-ben

On Sat, 8 Jun 2002, Paul Jakma wrote:

 hi,

 i'm just wondering is there any way to have amanda to write a backup
 to both a local tape device and a remote tape/filesystem?

 basically, we have an amanda tape 'server', which gathers backups and
 writes them to tape. we'd like these backups also to go to a remote
 machine. we are using RedHat's amanda 2.4.2p2-4 package.

 options i see:

 - have the remote amanda machine back up the holding disk of the
 primary amanda

 however, how do we synchronise this? (the primary amanda machine would
 have to hold backups in the holding area, and wait till the
 secondary backup was finished before flushing to tape).


 - use rmt and gnu tar's support for remote devices and have amanda
 write the backups using gtar's remote support.

 however, is it as simple as specifying host:/dev/xyz for the tapedev?
 and again, how do we synchronise?

 i suspect we could psuedo-synchronise either of the above by having
 the original backups use the file driver, and then run a second
 backup, but still..

 otherwise, i see the latest amanda code has a vtape driver interface,
 and there has been talk of writing rmt vtape interface. has anyone
 tried?

 anyway, a remote mirror vtape driver would be useful. As would
 dumptype options to run commands pre and post host-dump and tape-flush
 (and wait for them to finish).

 also, what is the latest stable code that one should use for vtape?
 HEAD? amanda-243-branch?

 regards,

 --paulj





Re: amrecover missing files

2002-06-07 Thread Ben Kochie

interesting.. i havn't tried changing the gnutar used by my amanda.. now
that I think about it.. I remember having to make changes on some old
amanda setups..

I am about ready to try changing my compiler config.. I work on a very odd
distribution (home grown) that has a slightly whack compiler setup.. and
I'm going to try doing a build against our default libc5 compiler (don't
ask.. it's not my fault, i'd be in debian bliss if I could)

did you look at the index files manualy?  what do they show.. that's thing
that made me wonder.. the index files on disk are perfectly fine.. they
show all the properly backed up data.  but amindexd doesn't return all the
listings.

-ben

On Fri, 7 Jun 2002, Jon LaBadie wrote:

 On Fri, Jun 07, 2002 at 01:52:39PM -0500, Ben Kochie wrote:
  I am using indexing, and gnutar to backup all of my filesystems, I keep
  the indexes in /etc/amanda/backupset/index/  according to my amanda.conf
  file.
 
  backups are working properly, no errors reported.  I can run amrestore on
  a tape and see all of the files that are supposed to be backed up.. I can
  also gunzip the files in the index, and see them listed..
 
  but when I run amrecover, set the host/disk, and do an ls, i only see a
  few of the directories/files that are supposed to be backed up.  it seems
  like something in amindexd is not working properly, and I have no idea
  what.
 
  has any other amanda users run into this problem?

 One of my systems has similar problems.  But because this system is a
 Windows 2000 system and I'm backing it up from an amanda client under
 Cygwin, I thought it might have been the unusual setup I'm using.

 However I'm coming to believe others are having similar problems
 so that it may not be my unique setup.

 A sample of my results.  When I look at the D: partition, there are  2100
 directories and files there.  When I look at the amanda tape of a level 0
 of that partition, it seems all the files are there.  And the size of the
 dump is reasonable.

 But the index is certainly not.  The index has 220 entries, 190 of them
 directories.  Very few, if any, of those are more than 3 levels down.
 The 30 or so files are all in the top 2 directories.

 I originally did the cygwin client using gnutar 1.13.19.  Now I'm using
 1.13.25 and seeing the same results.

 Suggestions?

 --
 Jon H. LaBadie  [EMAIL PROTECTED]
  JG Computing
  4455 Province Line Road(609) 252-0159
  Princeton, NJ  08540-4322  (609) 683-7220 (fax)





Re: Backing up incrementals onto hard disk

2001-03-27 Thread Ben Kochie

I think you need to read the amanda documentation.  download the source
to amanda, and look in the docs directory.
also read this document: http://www.backupcentral.com/amanda.html

you restore from disk, exactly the same way you restore from tape,
please read the documents on how amanda works, they explain it much
better than I do.

Abu 'Abdis-Salam wrote:
 
 also - how do i recover from the hard disk backup if something goes wrong?
 Thanks again!
 
 mnk wrote:
 
  thanks for your reply.
  The thing is - I am not sure exactly what you mean - can u explain to
  me further please?
  Thanx again
 
  Ben Kochie wrote:
 
  you are a bit mistaken as to how amanda works, amanda automaticaly
  decides if it should do a full or incremental backup each day of the
  backup cycle.  if you only want to change tapes once a week, but have
  backup every night, here is what you could do.
 
  have a dump disk big enough to handle all backups for one week, and on
  weekends, run amflush to dump those disks to tape.
 
  mnk wrote:
 
  Hello,
  I was wondering - how does one back up dail incrementals onto a hard
  disk while the weekly backups are on tape?
  Thanks.
  Mohammed
 
 
 
 

-- 
Ben Kochie   | [EMAIL PROTECTED]
IMA Systems Office   | 400 Lind Hall, 207 Church St. SE
http://www.ima.umn.edu   | Minneapolis, MN 55455-0463



Re: Backing up incrementals onto hard disk

2001-03-26 Thread Ben Kochie

you are a bit mistaken as to how amanda works, amanda automaticaly
decides if it should do a full or incremental backup each day of the
backup cycle.  if you only want to change tapes once a week, but have
backup every night, here is what you could do.

have a dump disk big enough to handle all backups for one week, and on
weekends, run amflush to dump those disks to tape.

mnk wrote:
 
 Hello,
 I was wondering - how does one back up dail incrementals onto a hard
 disk while the weekly backups are on tape?
 Thanks.
 Mohammed

-- 
Ben Kochie   | [EMAIL PROTECTED]
IMA Systems Office   | 400 Lind Hall, 207 Church St. SE
http://www.ima.umn.edu   | Minneapolis, MN 55455-0463



Re: Backing up WIN NT-Server with Amanda

2001-03-20 Thread Ben Kochie

yep, I have reliably backed up an NT PDC, and win98 workstation data
with amanda.  the only thing that does not get backed up is files open
for write, and things like the registery (because of the active file
status)

[EMAIL PROTECTED] wrote:
 
 Hi,
 
 I need to backup some Windows-Machines and want to use a linux-server
 running amanda to do this.
 Has anyone experiences with the following backup scenario:
 
 Some Windows-Machines, running WIN98, WIN95 and WIN NT
 One LINUX-Machine which is used as a fileserver (via SAMBA)
 I want to mount the Windows-Filesystems on the LINUX-Host (with smbclient),
 and use amanda to backup everything.
 (The clients are running 24h a day)
 I have an Onstream DI-30 tapedrive, which (should) work fine with the new
 Linux Kernel.
 
 Thanks for any comments,
 
 best regards,
 
 Harald Husemann
 System Admin
 Materna GmbH, 44171 Dortmund

-- 
Ben Kochie   | [EMAIL PROTECTED]
IMA Systems Office   | 400 Lind Hall, 207 Church St. SE
http://www.ima.umn.edu   | Minneapolis, MN 55455-0463



Re: amrecover on client side

2001-02-22 Thread Ben Kochie

please give an example of the command line you are using for amrecover.


Usage: amrecover [[-C] config] [-s index-server] [-t tape-server]
[-d tape-device]

Erik van der Meulen wrote:
 
 I would like to performe a resrote directly on the client, as explained
 in the amanda chapter on www.backupcentral.com.
 However, if I start amrecover on the (any) client, it tries to connect
 to localhost. I have not been able to find were to tell it to go to the
 amanda server.
 
 Any hints?
 
 --
   Erik van der Meulen [EMAIL PROTECTED]

-- 
Ben Kochie   | [EMAIL PROTECTED]
IMA Systems Office   | 400 Lind Hall, 207 Church St. SE
http://www.ima.umn.edu   | Minneapolis, MN 55455-0463



Re: Amanda MACs

2001-02-20 Thread Ben Kochie

macintosh clients have been discussed before, but as far as what I've
seen, the best way to keep mac files on an amanda backup schedual is to
keep the mac files on a unix based (linux+netatalk) fileserver

"F.M. Taylor" wrote:
 
 I know not of MAC, but have been asked "Can this new backup system backup
 a MAC".  Well, does anyone know the answer??  And if the answer is yes, by
 what method can this be accomplished.
 
 ---
 Mike Taylor
 Coordinator of Systems Administration and Network Security
 Indiana State University.   Rankin Hall Rm 039
 210 N 7th St.   Terre Haute, IN.
 Voice: 812-237-8843  47809
 ---
 "You have zero privacy anyway.  Get over it."
--Scott McNealy, Sun MicroSystems.

-- 
Ben Kochie   | [EMAIL PROTECTED]
IMA Systems Office   | 400 Lind Hall, 207 Church St. SE
http://www.ima.umn.edu   | Minneapolis, MN 55455-0463



slow backups

2001-02-20 Thread Ben Kochie
t-idle:  0:00:03 
(100.00%)
 2 dumpers busy :  0:18:42  (  4.56%)not-idle:  0:12:07  (
64.81%)
   client-constrained:  0:06:20  (
33.86%)
   start-wait:  0:00:14  ( 
1.34%)
 3 dumpers busy :  2:08:42  ( 31.34%)  client-constrained:  2:08:01  (
99.48%)
   start-wait:  0:00:40  ( 
0.52%)
 4 dumpers busy :  1:08:42  ( 16.73%)  client-constrained:  1:08:38  (
99.91%)
   start-wait:  0:00:03  ( 
0.09%)
 5 dumpers busy :  2:55:04  ( 42.64%)  client-constrained:  2:55:04 
(100.00%)
 6 dumpers busy :  0:09:43  (  2.37%)  client-constrained:  0:09:43 
(100.00%)
 7 dumpers busy :  0:03:56  (  0.96%)  client-constrained:  0:03:56 
(100.00%)
 8 dumpers busy :  0:05:04  (  1.24%)  client-constrained:  0:05:04 
(100.00%)
 9 dumpers busy :  0:00:36  (  0.15%)  client-constrained:  0:00:36 
(100.00%)

-- 
Ben Kochie   | [EMAIL PROTECTED]
IMA Systems Office   | 400 Lind Hall, 207 Church St. SE
http://www.ima.umn.edu   | Minneapolis, MN 55455-0463