LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-08-2012, 02:52 AM   #1
abselect
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Rep: Reputation: 0
Bacula simple backup to tape problem


Hi any bacula experts out there,

I installed bacula it some time ago and at the time could manually backup to an LT03 tape drive but never managed to get it to back up acording to the schedual I had set.

I consistantly receive the following error

08-Mar 08:05 linux-f9oa-sd JobId 442: Job BackupClient1.2012-03-08_01.05.00_07 is waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "LTO-3" (/dev/st0)
Pool: File
Media type: LTO-3

All I need is to backup one location to tape every night and overwrite the tapes regardless, I rotate these tapes on daily basis.

I have gone round in circles trying to get bacula to do this simple task I would appreciate any help.
 
Old 03-08-2012, 08:07 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
If you're not worried about rotation, schedules, tape identifying etc. then just use
Code:
tar -f /dev/st0 foldername
to dump foldername to a tape.
 
Old 03-08-2012, 09:38 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
What's in the Pool definition for the tapes in In bacula-dir.conf?

Assuming you have 7 tapes (not enough!) you could try including:
Code:
  ActionOnPurge = Truncate
  MaximumVolumes = 7
  PurgeOldestVolume = yes
 
Old 03-12-2012, 10:53 AM   #4
abselect
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Catkin,

Thanks for your reply, I have posted below my director config file I wonder would you mind taking a look.

Will I need to re label all the tapes again? I saw something about an auto label command in the man pages.



Thanks again


----------------------------------------------------
Director { # define myself
Name = linux-f9oa-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/etc/bacula/bin/working"
PidDirectory = "/etc/bacula/bin/working"
Maximum Concurrent Jobs = 1
Password = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # Console password
Messages = Daemon
}

JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Full
Client = linux-f9oa-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = LTO-3
Messages = Standard
Pool = File
Priority = 10
Write Bootstrap = "/root/bacula/bin/working/%c.bsr"
}

# Default pool definition
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
LabelFormat = "Vol"

}

# File Pool definition
Pool {
Name = File
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
}


# Scratch pool definition
Pool {
Name = Scratch
Pool Type = Backup
}

#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = linux-f9oa-mon
Password = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
CommandACL = status, .status
}

Last edited by abselect; 03-12-2012 at 10:56 AM.
 
Old 03-12-2012, 12:18 PM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Mmm ... only one JobDef and it uses Pool File ...

You could try removing the Volume Retention and adding ActionOnPurge = Truncate and PurgeOldestVolume = yes
 
Old 03-14-2012, 05:48 AM   #6
abselect
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Again,

Now it's all going wrong restarted daemon no joy password's I am sure these are untouched from installation.

Is there anything obvioius in this lot?

I just need straight forward backup daily to tape over write tapes how hard can this be.

Arrrgggggg losing the will to live now.


14-Mar 11:03 linux-f9oa-dir JobId 457: shell command: run BeforeJob "/etc/bacula/make_catalog_backup.pl MyCatalog"
14-Mar 11:03 linux-f9oa-dir JobId 457: Start Backup JobId 457, Job=BackupCatalog.2012-03-14_11.03.38_05
14-Mar 11:12 linux-f9oa-dir JobId 457: Fatal error: authenticate.c:120 Director unable to authenticate with Storage daemon at "linux-f9oa.site:9103". Possible causes:
Passwords or names not the same or
Maximum Concurrent Jobs exceeded on the SD or SD networking messed up (restart daemon).
Please see http://www.bacula.org/en/rel-manual/...00000000000000 for help.
14-Mar 11:12 linux-f9oa-dir JobId 457: Error: Bacula linux-f9oa-dir 5.0.2 (28Apr10): 14-Mar-2012 11:12:05
Build OS: i686-pc-linux-gnu suse 11.2
JobId: 457
Job: BackupCatalog.2012-03-14_11.03.38_05
Backup Level: Full
Client: "linux-f9oa-fd" 5.0.2 (28Apr10) i686-pc-linux-gnu,suse,11.2
FileSet: "Full Set" 2010-07-07 14:18:21
Pool: "Default" (From User input)
Catalog: "MyCatalog" (From Client resource)
Storage: "LTO-3" (From command line)
Scheduled time: 14-Mar-2012 11:02:00
Start time: 14-Mar-2012 11:03:41
End time: 14-Mar-2012 11:12:05
Elapsed time: 8 mins 24 secs
Priority: 10
FD Files Written: 0
SD Files Written: 0
FD Bytes Written: 0 (0 B)
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Software Compression: None
VSS: no
Encryption: no
Accurate: no
Volume name(s):
Volume Session Id: 0
Volume Session Time: 0
Last Volume Bytes: 0 (0 B)
Non-fatal FD errors: 0
SD Errors: 0
FD termination status:
SD termination status:
Termination: *** Backup Error ***
 
Old 03-14-2012, 10:10 AM   #7
abselect
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Original Poster
Rep: Reputation: 0
If I wanted to completely start again and trim all the config files down to a simple setup removing pools etc could I do that?

Also I have only posted smal part's of director conf would it help if I posted all config file's

Last edited by abselect; 03-14-2012 at 10:11 AM.
 
Old 03-15-2012, 04:23 AM   #8
abselect
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Does anyone have an example set of config files I could work with?
 
Old 03-16-2012, 11:26 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by abselect View Post
Does anyone have an example set of config files I could work with?
There are some here.

Your requirement to overwrite regardless of what's on the tape is unusual so examples of that will not be easy to find.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bacula backup to tape arunns Linux - Server 1 12-20-2011 09:20 AM
Bacula and tape backups tqz Linux - Software 2 02-23-2010 10:46 AM
Problem with tape backup garaemon Linux - Hardware 8 08-19-2009 05:27 AM
bacula - How do I setup up tape daily tape changes neocontrol Linux - Software 3 01-23-2008 09:27 PM
Simple Gui Tape Backup + RH 7.2 chosmer Linux - General 0 08-12-2002 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration