SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Batch restore
Author Message
Post Batch restore 
Hello,


I am trying to do batch restores with commands such as the following:


restore restoreclient=lancelot-sd-fd client=harbor-fd select jobid=15807 all done yes where=/mnt/2010-10-01/harbor-fd


Where lancelot-sd is the machine with the tape drive and harbor is the client being restored.  /mnt on lancelot-sd is an external drive to be used for the restores.  I've generated over 200 such entries spanning 12 tapes that I need to do bulk restores on.  However, here's the problem:  When I run the above command, Bacula returns the output below.  As you can see, in addition to the jobid I specified, it has also picked a second job, which I believe is the most recent backup of that client. How can I modify my restore command to select /only/ the specified jobid?

Thanks for your assistance.
-Ben




Using Catalog "MyCatalog"
Automatically selected FileSet: harbor-fs
+--------+-------+----------+-----------------+---------------------+------------------+
| JobId  | Level | JobFiles | JobBytes        | StartTime           | VolumeName       |
+--------+-------+----------+-----------------+---------------------+------------------+
| 24,590 | F     |  145,699 | 177,548,197,808 | 2011-11-23 17:01:42 | db-LTO4-20111123 |
+--------+-------+----------+-----------------+---------------------+------------------+
You have selected the following JobIds: 24590,15807


Building directory tree for JobId(s) 24590,15807 ...  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
295,800 files inserted into the tree and marked for extraction.
Bootstrap records written to /usr/db/bacula//lancelot-dir.restore.6.bsr


The job will require the following
   Volume(s)                 Storage(s)                SD Device(s)
===========================================================================


    db-LTO4-20111123          LTO-4                     LTO-4
    db-20101001               lancelot-sd               LTO-4


Volumes marked with "*" are online.




316,680 files selected to be restored.


Job queued. JobId=27798
You have messages.





===
Benjamin Blakely, PhD, CISSP
Information Systems Security Engineer
Krell Institute
blakely < at > krellinst.org ([email]blakely < at > krellinst.org[/email])

Post Batch restore 
From: Benjamin Blakely <blakely < at > krellinst.org>
To: bacula-users < at > lists.sourceforge.net
Sent: Tuesday, April 10, 2012 1:56 PM
Subject: [Bacula-users] Batch restore


Hello,


I am trying to do batch restores with commands such as the following:


restore restoreclient=lancelot-sd-fd client=harbor-fd select jobid=15807 all done yes where=/mnt/2010-10-01/harbor-fd


Where lancelot-sd is the machine with the tape drive and harbor is the client being restored. /mnt on lancelot-sd is an external drive to be used for the restores. I've generated over 200 such entries spanning 12 tapes that I need to do bulk restores on. However, here's the problem: When I run the above command, Bacula returns the output below. As you can see, in addition to the jobid I specified, it has also picked a second job, which I believe is the most recent backup of that client. How can I modify my restore command to select /only/ the specified jobid?

Thanks for your assistance.
-Ben




Using Catalog "MyCatalog"
Automatically selected FileSet: harbor-fs
+--------+-------+----------+-----------------+---------------------+------------------+
| JobId | Level | JobFiles | JobBytes | StartTime | VolumeName |
+--------+-------+----------+-----------------+---------------------+------------------+
| 24,590 | F | 145,699 | 177,548,197,808 | 2011-11-23 17:01:42 | db-LTO4-20111123 |
+--------+-------+----------+-----------------+---------------------+------------------+
You have selected the following JobIds: 24590,15807


Building directory tree for JobId(s) 24590,15807 ... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

=======

If you do the command manually, running 'bconsole', does it still want to use 2 JobIds?

Post Batch restore 
Yes.
===
Benjamin Blakely, PhD, CISSP
Information Systems Security Engineer
Krell Institute
blakely < at > krellinst.org ([email]blakely < at > krellinst.org[/email])
515-598-2720


On Tue, Apr 10, 2012 at 16:37, Joseph Spenner <joseph85750 < at > yahoo.com ([email]joseph85750 < at > yahoo.com[/email])> wrote:


From: Benjamin Blakely <blakely < at > krellinst.org ([email]blakely < at > krellinst.org[/email])>
To: bacula-users < at > lists.sourceforge.net ([email]bacula-users < at > lists.sourceforge.net[/email])
Sent: Tuesday, April 10, 2012 1:56 PM
Subject: [Bacula-users] Batch restore


Hello,


I am trying to do batch restores with commands such as the following:


restore restoreclient=lancelot-sd-fd client=harbor-fd select jobid=15807 all done yes where=/mnt/2010-10-01/harbor-fd


Where lancelot-sd is the machine with the tape drive and harbor is the client being restored.  /mnt on lancelot-sd is an external drive to be used for the restores.  I've generated over 200 such entries spanning 12 tapes that I need to do bulk restores on.  However, here's the problem:  When I run the above command, Bacula returns the output below.  As you can see, in addition to the jobid I specified, it has also picked a second job, which I believe is the most recent backup of that client. How can I modify my restore command to select /only/ the specified jobid?

Thanks for your assistance.
-Ben





Using Catalog "MyCatalog"
Automatically selected FileSet: harbor-fs
+--------+-------+----------+-----------------+---------------------+------------------+
| JobId  | Level | JobFiles | JobBytes        | StartTime           | VolumeName       |
+--------+-------+----------+-----------------+---------------------+------------------+
| 24,590 | F     |  145,699 | 177,548,197,808 | 2011-11-23 17:01:42 | db-LTO4-20111123 |
+--------+-------+----------+-----------------+---------------------+------------------+
You have selected the following JobIds: 24590,15807


Building directory tree for JobId(s) 24590,15807 ...  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


=======

If you do the command manually, running 'bconsole', does it still want to use 2 JobIds?












Post Batch restore 
On Tue, 10 Apr 2012 15:56:23 -0500, Benjamin Blakely said:

Hello,

I am trying to do batch restores with commands such as the following:

restore restoreclient=lancelot-sd-fd client=harbor-fd select jobid=15807
all done yes where=/mnt/2010-10-01/harbor-fd

Where lancelot-sd is the machine with the tape drive and harbor is the
client being restored. /mnt on lancelot-sd is an external drive to be used
for the restores. I've generated over 200 such entries spanning 12 tapes
that I need to do bulk restores on. However, here's the problem: When I
run the above command, Bacula returns the output below. As you can see, in
addition to the jobid I specified, it has also picked a second job, which I
believe is the most recent backup of that client. How can I modify my
restore command to select /only/ the specified jobid?

Remove the "select" argument.

__Martin

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB