Bacula-users

[Bacula-users] unable to save on different files

2009-11-06 04:44:58
Subject: [Bacula-users] unable to save on different files
From: Aladino Amantini <aladino.amantini AT kitesolutions DOT it>
To: Bacula-users AT lists.sourceforge DOT net
Date: Fri, 06 Nov 2009 10:16:20 +0100
Hi all.

I have this configurations on my machines

. One client machine running windows server 2003 with file daemon 3.0.1

. One machine running windows server 2008 with directory daemon 3.0.2 
and storage daemon 3.0.2

I have no tape and the backup is performed saving on Files on the second 
machine HD. On the client I have several websites that I want to backup.
My goal is to save each backup for each website in a separate file on 
the machine, but I'm not able to obtain it.

I attach some pieces of my configuration files:

-- bacula-dir.conf --

JobDefs {
   Name = "DefaultJob"
   Type = Backup
   Level = Incremental
   Client = serverdedicato-fd
   Schedule = "WeeklyCycle"
   Messages = Standard
   Pool = Default
   Enabled = yes
}

Job {
        Name = "iterate_root"
        JobDefs = "DefaultJob"
        Storage = iterate-root-sd
        FileSet = iterate_root
}
Job {
        Name = "isi-padas_root"
        JobDefs = "DefaultJob"
        Storage = isi-padas-root-sd
        FileSet = isi-padas_root
}
...
Storage {
   Name = iterate-root-sd
   Address = XXX
   SDPort = 9103
   Password = XXX
   Device = iterate-root-storage
   Media Type = File
}
Storage {
   Name = isi-padas-root-sd
   Address = XXX
   SDPort = 9103
   Password = XXX
   Device = isi-padas-root-storage
   Media Type = File
}
...

-- bacula-sd.conf --
Device {
   Name = iterate-root-storage
   Media Type = File
   Archive Device = "C:\\backup\\iterate"
   LabelMedia = yes                   # lets Bacula label unlabeled media
   Random Access = Yes
   AutomaticMount = yes               # when device opened, read it
   RemovableMedia = no
   AlwaysOpen = no
}
Device {
   Name = isi-padas-root-storage
   Media Type = File
   Archive Device = "C:\\backup\\isi-padas"
   LabelMedia = yes                   # lets Bacula label unlabeled media
   Random Access = Yes
   AutomaticMount = yes               # when device opened, read it
   RemovableMedia = no
   AlwaysOpen = no
}

As you can see I created several jobs for each website, and I have 
associated different storage and devices.
Everything seems work properly but when I try to specify the name of the 
file, using the label command from the console, the name is associated 
to all the jobs.

#status director
archimede-dir Version: 3.0.2 (18 July 2009) Linux Cross-compile Win32
Daemon started 05-Nov-09 23:07, 2 Jobs run since started.
  Heap: heap=0 smbytes=124,886 max_bytes=125,431 bufs=560 max_bufs=580

Scheduled Jobs:
Level          Type     Pri  Scheduled          Name               Volume
===================================================================================
Incremental    Backup    10  07-Nov-09 00:05    iterate_root       *unknown*
Incremental    Backup    10  07-Nov-09 00:05    isi-padas_root     *unknown*
...

#label storage=iterate-root-sd volume=iterate_root.bak
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Pool: Default
Connecting to Storage daemon iterate-root-sd at XXX:9103 ...
Sending label command for Volume "iterate_root.bak" Slot 0 ...
3000 OK label. VolBytes=209 DVD=0 Volume="iterate_root.bak" 
Device="iterate-root-storage" (C:\backup\iterate)
Catalog record for Volume "iterate_root.bak", Slot 0  successfully created.
Requesting to mount iterate-root-storage ...
3906 File device "iterate-root-storage" (C:\backup\iterate) is always 
mounted.

#status director
archimede-dir Version: 3.0.2 (18 July 2009) Linux Cross-compile Win32
Daemon started 05-Nov-09 23:07, 9 Jobs run since started.
  Heap: heap=0 smbytes=106,313 max_bytes=129,322 bufs=457 max_bufs=580

Scheduled Jobs:
Level          Type     Pri  Scheduled          Name               Volume
===================================================================================
Incremental    Backup    10  07-Nov-09 00:05    iterate_root 
iterate_root.bak
Incremental    Backup    10  07-Nov-09 00:05    isi-padas_root 
iterate_root.bak

#label storage=isi-padas-root-sd volume=iisi-padas_root.bak
Automatically selected Pool: Default
Connecting to Storage daemon isi-padas-root-sd at XXX:9103 ...
Sending label command for Volume "iisi-padas_root.bak" Slot 0 ...
3000 OK label. VolBytes=212 DVD=0 Volume="iisi-padas_root.bak" 
Device="isi-padas-root-storage" (C:\backup\isi-padas)
Catalog record for Volume "iisi-padas_root.bak", Slot 0  successfully 
created.
Requesting to mount isi-padas-root-storage ...
3906 File device "isi-padas-root-storage" (C:\backup\isi-padas) is 
always mounted.
#status director
archimede-dir Version: 3.0.2 (18 July 2009) Linux Cross-compile Win32
Daemon started 05-Nov-09 23:07, 9 Jobs run since started.
  Heap: heap=0 smbytes=106,313 max_bytes=129,322 bufs=457 max_bufs=580

Scheduled Jobs:
Level          Type     Pri  Scheduled          Name               Volume
===================================================================================
Incremental    Backup    10  07-Nov-09 00:05    iterate_root 
iterate_root.bak
Incremental    Backup    10  07-Nov-09 00:05    isi-padas_root 
iterate_root.bak

So a single file (iterate_root.bak) is associated to the jobs, while the 
second one (iterate_root.bak) is ignored.

Is this due to my misunderstanding of the Bacula commands/system or to 
misconfiguration?

Thank you in advance.

-- 
Aladino Amantini
Kite Solutions s.n.c.
Via Labiena 93, 21014 Laveno Mombello (VA) - Italy
http://www.kitesolutions.it/
Phone: +39 0332 626910
Fax: +39 0332 660413
Skype: aladino.amantini

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] unable to save on different files, Aladino Amantini <=