Re: [Bacula-users] Restore question

2007-07-12 Thread Frank Sweetser
Ivan Adzhubey wrote:
 Hi,
 
 I have been using bacula for 5 years now and finally comes the first time I 
 need to do a major restore from our tapes. I read the tutorial, tried the 
 instructions and it seemingly worked as designed (I haven't run actual 
 restore yet) but I am not sure which exactly files it was going to restore. I 
 have two pools of tapes: one for full backups (run monthly) and another one 
 for incremental (run every night). The 'restore all' command, when instructed 
 to find JobIds of the most recent backup for a client, correctly located and 
 listed all relevant full backups plus all incremental ones. It then proceeded 
 creating directory tree and in the process went through both latest full 
 backup and all incrementals since. So I assume this tree contains the latest 
 snapshot? Or should I actually run two restores to get all the latest files: 
 one for last full set and another one for all incrementals? I guess this is a 
 stupid question but I'd really appreciate if someone could enlighten me since 
 going through 50,000+ files manually to check the versions restored is really 
 not an option.

Bacula will handle making sure that only the latest version of each file is
restored, so you only have to do it once.

-- 
Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution that
WPI Network Engineer  |  is simple, elegant, and wrong. - HL Mencken
GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore question

2007-07-12 Thread Rich
On 2007.07.12. 14:16, Frank Sweetser wrote:
 Ivan Adzhubey wrote:
 Hi,

 I have been using bacula for 5 years now and finally comes the first time I 
 need to do a major restore from our tapes. I read the tutorial, tried the 
 instructions and it seemingly worked as designed (I haven't run actual 
 restore yet) but I am not sure which exactly files it was going to restore. 
 I 
 have two pools of tapes: one for full backups (run monthly) and another one 
 for incremental (run every night). The 'restore all' command, when 
 instructed 
 to find JobIds of the most recent backup for a client, correctly located and 
 listed all relevant full backups plus all incremental ones. It then 
 proceeded 
 creating directory tree and in the process went through both latest full 
 backup and all incrementals since. So I assume this tree contains the latest 
 snapshot? Or should I actually run two restores to get all the latest files: 
 one for last full set and another one for all incrementals? I guess this is 
 a 
 stupid question but I'd really appreciate if someone could enlighten me 
 since 
 going through 50,000+ files manually to check the versions restored is 
 really 
 not an option.
 
 Bacula will handle making sure that only the latest version of each file is
 restored, so you only have to do it once.

it probably is a good time to remind that files deleted/moved at some 
point inbetween backups also will be restored.
-- 
  Rich

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore question

2007-07-12 Thread Michael Nelson
Chris Hoogendyk wrote:
 So, anyone out there who is doing regular backups and hasn't done a 
 restore, set aside some time and do a test restore.
   

Thanks for reminding me of this critical test, Chris.  I just did a 
couple test restores (one Linux server and one Windows 2003 server, just 
a few files on each), and naturally bacula did it perfectly.

I had tested restores right after set up and installation, but that was 
about a year ago, and since then I have not tested very often, nor have 
I had occasion do do a REAL restore (knock on my wooden head), so I had 
become complacent.

I feel good seeing that the restore system does still actually restore. ;-)

Michael

-- 
The music business is a cruel and shallow money trench, a long plastic hallway 
where thieves and pimps run free, and good men die like dogs. There's also a 
negative side.  Hunter S. Thompson


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore question

2007-07-12 Thread Ivan Adzhubey
Hi Chris,

Thanks for your reply.

On Thursday 12 July 2007 01:48:55 pm Chris Hoogendyk wrote:
 Rich wrote:
  On 2007.07.12. 14:16, Frank Sweetser wrote:
  Ivan Adzhubey wrote:
  Hi,
 
  I have been using bacula for 5 years now and finally comes the first
  time I need to do a major restore from our tapes. I read the tutorial,
  tried the instructions and it seemingly worked as designed (I haven't
  run actual restore yet) but I am not sure which exactly files it was
  going to restore. I have two pools of tapes: one for full backups (run
  monthly) and another one for incremental (run every night). The
  'restore all' command, when instructed to find JobIds of the most
  recent backup for a client, correctly located and listed all relevant
  full backups plus all incremental ones. It then proceeded creating
  directory tree and in the process went through both latest full backup
  and all incrementals since. So I assume this tree contains the latest
  snapshot? Or should I actually run two restores to get all the latest
  files: one for last full set and another one for all incrementals? I
  guess this is a stupid question but I'd really appreciate if someone
  could enlighten me since going through 50,000+ files manually to check
  the versions restored is really not an option.
 
  Bacula will handle making sure that only the latest version of each file
  is restored, so you only have to do it once.
 
  it probably is a good time to remind that files deleted/moved at some
  point inbetween backups also will be restored.

 Probably also a good time to exclaim, 5 years of backups and you're
 just now familiarizing yourself with restore?!

Well, I've restored a few individual files now and then and also did a few 
test restores as suggested in the user guide so I am quite familiar with the 
routine and it always worked just fine for me. But restoring 50 something 
thousand files is definitely something different. I also never tried to 
emulate a real world file usage with my test backups/restores, hence my 
question. You are right of course, this should have been done long ago.

 It cannot be said enough times, you don't have a backup system until you
 have restored data from it. Becoming familiar with restore and doing
 some trial restores should be part of getting any backup system set up.
 It should also be a periodic routine to check your backup system and
 confirm that you can still restore. You want to confirm that your system
 works, but you also want the first hand personal experience so that you
 are comfortable and confident when the time comes that you really need
 to do it.

 Not to be hard on anyone individually -- just tossing this out for
 anyone and everyone to emphasize the importance of it.

 So, anyone out there who is doing regular backups and hasn't done a
 restore, set aside some time and do a test restore.

Not to undermine your perfectly valid advice but let me note that we are 
living in a non perfect world, so even if you invest tremendous amounts of 
time and effort into testing your setup, you could never be sure you've 
tested all factors that may affect it in every possible real life situation. 
So even if all of your test restores work seamlessly this does not 100% mean 
your really critical one will. As usual, this is a question of reasonable 
compromise...

Thanks also for everyone who replied to my personal address, your help was 
most appreciated!

Cheers,
Ivan

P.S. My restore is at 40GB and counting, we'll see soon...





The information transmitted in this electronic communication is intended only 
for the person or entity to whom it is addressed and may contain confidential 
and/or privileged material. Any review, retransmission, dissemination or other 
use of or taking of any action in reliance upon this information by persons or 
entities other than the intended recipient is prohibited. If you received this 
information in error, please contact the Compliance HelpLine at 800-856-1983 
and properly dispose of this information.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Restore question

2007-07-11 Thread Ivan Adzhubey
Hi,

I have been using bacula for 5 years now and finally comes the first time I 
need to do a major restore from our tapes. I read the tutorial, tried the 
instructions and it seemingly worked as designed (I haven't run actual 
restore yet) but I am not sure which exactly files it was going to restore. I 
have two pools of tapes: one for full backups (run monthly) and another one 
for incremental (run every night). The 'restore all' command, when instructed 
to find JobIds of the most recent backup for a client, correctly located and 
listed all relevant full backups plus all incremental ones. It then proceeded 
creating directory tree and in the process went through both latest full 
backup and all incrementals since. So I assume this tree contains the latest 
snapshot? Or should I actually run two restores to get all the latest files: 
one for last full set and another one for all incrementals? I guess this is a 
stupid question but I'd really appreciate if someone could enlighten me since 
going through 50,000+ files manually to check the versions restored is really 
not an option.

Thanks,
Ivan

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Restore Question.

2006-07-12 Thread Erik P. Olsen
In the manual (on page 92) you find a scenario with the command restore all. 
What other arguments can be given to the restore command? And what's the 
difference between restore all and just restore?

-- 
Erik P. Olsen, Civilingeniør, MSc
Solsortvej 30, DK-2000 Frederiksberg, Denmark
Phone: +45 38346480, Fax: +45 38346470, Mobil: +45 40765300


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore Question

2005-05-13 Thread Kern Sibbald
On Wednesday 11 May 2005 11:47, Danie Theron wrote:
 Kern Sibbald wrote:
 On Wednesday 11 May 2005 10:52, Danie Theron wrote:
 Kern Sibbald wrote:
 It looks to me like you are running on a pretty old version of Bacula
 since the bsr file does not contain counts.  What version are you using?
 
 If you are on anything older than 1.36.2, then please upgrade to 1.36.3
 and retry.  If it produces the same thing, please submit a bug report
 with the commands you used to do the restore (as you have below), the
  bsr file (as below), and the job report output from the restore job as
  you have summarized it below, but please also include the Job Report
  Summary written at the end of the job.
 
 ...
 
 
 
 
 
 Well, if I understand what you are doing, you are using the restore
  command, but at the last minute you set the Bootstrap file to none.  If
  that is the case, I am surprised that it works at all, and if it does
  work, surely it is going to restore everything.  In effect, you shot
  yourself in the foot.
 
 Without a bootstrap file you cannot restore only a portion of the files.

 Kern ,

 I ran the same job with the bootstrap specified  (sorry for the long
 paste , thought I'd include all the steps I did)

 Building directory tree for JobId 495 ...
 ++
 1 Job, 184 files inserted into the tree.

 You are now entering file selection mode where you add (mark) and
 remove (unmark) files to be restored. No files are initially added, unless
 you used the all keyword on the command line.
 Enter done to leave this mode.

 cwd is: /
 $ unmark
 No files unmarked.
 $ cd d:
 cwd is: d:/
 $ cd Users
 cwd is: d:/Users/
 $ cd kaygee
 cwd is: d:/Users/kaygee/
 $ mark *
 1 files marked.
 $ done
 Bootstrap records written to /var/bacula/restore.bsr

 The job will require the following Volumes:

apollousersincr-0022


 1 file selected to be restored.

 The defined Restore Job resources are:
  1: RestoreFiles
  2: RestoreApolloUsersFull
 Select Restore Job (1-2): 2
 Defined Clients:
  1: mailx3-fd
  2: danie-fd
  3: rock-fd
  4: venus-fd
  5: apollo-fd
  6: mercury-fd
  7: tyrone-fd
  8: errol-fd
 Select the Client (1-8): 2
 Run Restore job
 JobName:RestoreApolloUsersFull
 Bootstrap:  /var/bacula/restore.bsr
 Where:  /e/tmp/bacula-restores
 Replace:always
 FileSet:apollousers Set
 Client: danie-fd
 Storage:verpaktshareFile
 When:   2005-05-11 11:05:47
 Catalog:MyCatalog
 Priority:   10
 OK to run? (yes/mod/no): mod
 Parameters to modify:
  1: Level
  2: Storage
  3: Job
  4: FileSet
  5: Client
  6: When
  7: Priority
  8: Bootstrap
  9: Where
 10: Replace
 11: JobId
 Select parameter to modify (1-11): 8
 Please enter the Bootstrap file name: /var/bacula/apollousers.bsr
 Run Restore job
 JobName:RestoreApolloUsersFull
 Bootstrap:  /var/bacula/apollousers.bsr
 Where:  /e/tmp/bacula-restores
 Replace:always
 FileSet:apollousers Set
 Client: danie-fd
 Storage:verpaktshareFile
 When:   2005-05-11 11:05:47
 Catalog:MyCatalog
 Priority:   10
 OK to run? (yes/mod/no): mod
 Parameters to modify:
  1: Level
  2: Storage
  3: Job
  4: FileSet
  5: Client
  6: When
  7: Priority
  8: Bootstrap
  9: Where
 10: Replace
 11: JobId
 Select parameter to modify (1-11): 2
 The defined Storage resources are:
  1: verpaktshareFile
  2: mailx3File
  3: apolloprofFile
  4: apollosqlFile
  5: apollousersFile
  6: rocksqlFile
  7: rockprofFile
  8: sqlFile
  9: winFile
 10: File
 Select Storage resource (1-10): 5
 Run Restore job
 JobName:RestoreApolloUsersFull
 Bootstrap:  /var/bacula/apollousers.bsr
 Where:  /e/tmp/bacula-restores
 Replace:always
 FileSet:apollousers Set
 Client: danie-fd
 Storage:apollousersFile
 When:   2005-05-11 11:05:47
 Catalog:MyCatalog
 Priority:   10
 OK to run? (yes/mod/no): mod
 Parameters to modify:
  1: Level
  2: Storage
  3: Job
  4: FileSet
  5: Client
  6: When
  7: Priority
  8: Bootstrap
  9: Where
 10: Replace
 11: JobId
 Select parameter to modify (1-11): 4
 The defined FileSet resources are:
  1: verpaktshare Set
  2: mailx3 Set
  3: apollosql Set
  4: apolloprof Set
  5: apollousers Set
  6: te_hdrive Set
  7: rocksql Set
  8: rockprof Set
  9: sql Set
 10: Windows 2000 Set
 11: Full Set
 12: Catalog
 Select FileSet resource (1-12): 5
 Run Restore job
 JobName:RestoreApolloUsersFull
 Bootstrap:  /var/bacula/apollousers.bsr
 Where:  /e/tmp/bacula-restores
 Replace:always
 FileSet:apollousers Set
 Client: danie-fd
 Storage:apollousersFile
 When:   2005-05-11 11:05:47
 Catalog:MyCatalog
 Priority:   10
 OK to run? (yes/mod/no): yes
 Job started. JobId=529


 Still it restores 

Re: [Bacula-users] Restore Question

2005-05-13 Thread Danie Theron
Kern Sibbald wrote:
I just upgrade and see if that solves the problem?
   

Yes please upgrade -- be careful, I believe there is a database upgrade.
 

OK , I read the documentation on upgrading , I have however used the 
install binaries for FC3. Does this change the upgrade procedure in any 
way ? Will the rpm handle the database upgrade aswell ? (obviously I'm 
making a dump of my database etc).

Awaiting your response and thanks in advance
D
---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore Question

2005-05-11 Thread Kern Sibbald
It looks to me like you are running on a pretty old version of Bacula since 
the bsr file does not contain counts.  What version are you using?

If you are on anything older than 1.36.2, then please upgrade to 1.36.3 and 
retry.  If it produces the same thing, please submit a bug report with the 
commands you used to do the restore (as you have below), the bsr file (as 
below), and the job report output from the restore job as you have summarized 
it below, but please also include the Job Report Summary written at the end 
of the job.

On Wednesday 11 May 2005 09:28, Danie Theron wrote:
 Kern Sibbald wrote:
 On Tuesday 10 May 2005 16:15, Danie Theron wrote:
 Hi ,
 
 I want to do a restore of a single user directory from a full volume ,
 and everytime it wants to restore ALL the files of that full backup. I
 have defined the bootstrap , Filestorage etc correctly... Why would this
 happen?
 
 *restore
 
 First you select one or more JobIds that contain files
 to be restored. You will be presented several methods
 of specifying the JobIds. Then you will be allowed to
 select which files from those JobIds are to be restored.
 
 To select the JobIds, you have the following choices:
  1: List last 20 Jobs run
  2: List Jobs where a given File is saved
  3: Enter list of comma separated JobIds to select
  4: Enter SQL list command
  5: Select the most recent backup for a client
  6: Select backup for a client before a specified time
  7: Enter a list of files to restore
  8: Enter a list of files to restore before a specified time
  9: Cancel
 Select item:  (1-9): 3
 Enter JobId(s), comma separated, to restore: 157
 You have selected the following JobId: 157
 
 Building directory tree for JobId 157 ...
 +
 1 Job, 20,229 files inserted into the tree.
 
 cwd is: /
 $ unmark *
 20230 files unmarked.
 $ count
 20,230 total files/dirs. 0 marked to be restored.
 $ cd d:/Users/rudolf
 cwd is: d:/Users/rudolf/
 $ mark *
 3,248 files marked.
 $ count
 20,230 total files/dirs. 3,251 marked to be restored.
 
 All is fine , I modify the needed parameters , but it restores
 everything
 
 It is hard to believe, please show me the output and the bootstrap file.

 Kern ,

 Here's a snip of the restore job

 10-May 17:59 venus-dir: Start Restore Job
 RestoreApolloUsersFull.2005-05-10_17.59.56
 10-May 18:00 venus-sd: Ready to read from volume apollousersfull-0002
 on device /arch/apollo/users.
 danie-fd: drwxrwxrwx   1 00  0 2003-12-10 17:05:17
 /e/tmp/bacula-restores/d//Users/Admin/
 danie-fd: drwxrwxrwx   1 00  0 2003-12-10 17:05:58
 /e/tmp/bacula-restores/d//Users/antoinette/
 danie-fd: drwxrwxrwx   1 00  0 2003-12-10 16:09:05
 /e/tmp/bacula-restores/d//Users/Barry/
 danie-fd: -rwxrwxrwx   1 00   1997 2005-02-11 10:46:35
 /e/tmp/bacula-restores/d//Users/ben/Credit.csv
 danie-fd: -rwxrwxrwx   1 00 118272 2005-02-11 10:49:44
 /e/tmp/bacula-restores/d//Users/ben/Problem on Casper.doc
 danie-fd: -rwxrwxrwx   1 00  0 2005-02-23 16:22:49
 /e/tmp/bacula-restores/d//Users/ben/
 danie-fd: drwxrwxrwx   1 00  0 2005-02-04 15:05:44
 /e/tmp/bacula-restores/d//Users/ben/
 danie-fd: -rwxrwxrwx   1 00  19968 2005-02-21 16:13:12
 /e/tmp/bacula-restores/d//Users/celeste/Celeste/Interview Questions.doc
 danie-fd: -rwxrwxrwx   1 00  20480 2005-02-23 17:47:24
 /e/tmp/bacula-restores/d//Users/celeste/Celeste/LIST OF THINGS TO DO FOR
 NEW PA.doc
 danie-fd: -rwxrwxrwx   1 00  22016 2005-01-06 15:47:32
 /e/tmp/bacula-restores/d//Users/celeste/Celeste/Terminology.doc
 danie-fd: drwxrwxrwx   1 00  0 2005-01-06 15:47:27
 /e/tmp/bacula-restores/d//Users/celeste/Celeste/
 danie-fd: -rwxrwxrwx   1 00  41984 2004-11-24 10:12:56
 /e/tmp/bacula-restores/d//Users/celeste/Correspondence/E.Goott Balance
 Sheet.doc
 danie-fd: -rwxrwxrwx   1 00  33280 2004-11-15 09:58:45
 /e/tmp/bacula-restores/d//Users/celeste/Correspondence/MLS address
 change.doc
 danie-fd: -rwxrwxrwx   1 00 108544 2005-01-31 17:48:06
 /e/tmp/bacula-restores/d//Users/celeste/Correspondence/Pierre Lease
 Norwood.doc
 danie-fd: -rwxrwxrwx   1 00  43520 2004-11-24 11:20:01
 /e/tmp/bacula-restores/d//Users/celeste/Correspondence/Sandra Mart
 Letter.doc
 danie-fd: -rwxrwxrwx   1 00  41472 2004-11-24 10:57:33
 /e/tmp/bacula-restores/d//Users/celeste/Correspondence/Std Bank Delivery
 Balance Sheet.doc
 danie-fd: drwxrwxrwx   1 00  0 2004-11-15 09:57:43
 /e/tmp/bacula-restores/d//Users/celeste/Correspondence/
 danie-fd: -rwxrwxrwx   1 00  23040 2004-12-14 15:10:08
 /e/tmp/bacula-restores/d//Users/celeste/Errol/Expenses London Nebraska
 Nov04.xls
 danie-fd: drwxrwxrwx   1 00  0 

Re: [Bacula-users] Restore Question

2005-05-11 Thread Danie Theron
Kern Sibbald wrote:
It looks to me like you are running on a pretty old version of Bacula since 
the bsr file does not contain counts.  What version are you using?

If you are on anything older than 1.36.2, then please upgrade to 1.36.3 and 
retry.  If it produces the same thing, please submit a bug report with the 
commands you used to do the restore (as you have below), the bsr file (as 
below), and the job report output from the restore job as you have summarized 
it below, but please also include the Job Report Summary written at the end 
of the job.

On Wednesday 11 May 2005 09:28, Danie Theron wrote:
 

Kern Sibbald wrote:
   

On Tuesday 10 May 2005 16:15, Danie Theron wrote:
 

Hi ,
I want to do a restore of a single user directory from a full volume ,
and everytime it wants to restore ALL the files of that full backup. I
have defined the bootstrap , Filestorage etc correctly... Why would this
happen?
*restore
First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.
To select the JobIds, you have the following choices:
   1: List last 20 Jobs run
   2: List Jobs where a given File is saved
   3: Enter list of comma separated JobIds to select
   4: Enter SQL list command
   5: Select the most recent backup for a client
   6: Select backup for a client before a specified time
   7: Enter a list of files to restore
   8: Enter a list of files to restore before a specified time
   9: Cancel
Select item:  (1-9): 3
Enter JobId(s), comma separated, to restore: 157
You have selected the following JobId: 157
Building directory tree for JobId 157 ...
+
1 Job, 20,229 files inserted into the tree.
cwd is: /
$ unmark *
20230 files unmarked.
$ count
20,230 total files/dirs. 0 marked to be restored.
$ cd d:/Users/rudolf
cwd is: d:/Users/rudolf/
$ mark *
3,248 files marked.
$ count
20,230 total files/dirs. 3,251 marked to be restored.
All is fine , I modify the needed parameters , but it restores
everything
   

It is hard to believe, please show me the output and the bootstrap file.
 

Kern ,
Here's a snip of the restore job
10-May 17:59 venus-dir: Start Restore Job
RestoreApolloUsersFull.2005-05-10_17.59.56
10-May 18:00 venus-sd: Ready to read from volume apollousersfull-0002
on device /arch/apollo/users.
danie-fd: drwxrwxrwx   1 00  0 2003-12-10 17:05:17
/e/tmp/bacula-restores/d//Users/Admin/
danie-fd: drwxrwxrwx   1 00  0 2003-12-10 17:05:58
/e/tmp/bacula-restores/d//Users/antoinette/
danie-fd: drwxrwxrwx   1 00  0 2003-12-10 16:09:05
/e/tmp/bacula-restores/d//Users/Barry/
danie-fd: -rwxrwxrwx   1 00   1997 2005-02-11 10:46:35
/e/tmp/bacula-restores/d//Users/ben/Credit.csv
danie-fd: -rwxrwxrwx   1 00 118272 2005-02-11 10:49:44
/e/tmp/bacula-restores/d//Users/ben/Problem on Casper.doc
danie-fd: -rwxrwxrwx   1 00  0 2005-02-23 16:22:49
/e/tmp/bacula-restores/d//Users/ben/
danie-fd: drwxrwxrwx   1 00  0 2005-02-04 15:05:44
/e/tmp/bacula-restores/d//Users/ben/
danie-fd: -rwxrwxrwx   1 00  19968 2005-02-21 16:13:12
/e/tmp/bacula-restores/d//Users/celeste/Celeste/Interview Questions.doc
danie-fd: -rwxrwxrwx   1 00  20480 2005-02-23 17:47:24
/e/tmp/bacula-restores/d//Users/celeste/Celeste/LIST OF THINGS TO DO FOR
NEW PA.doc
danie-fd: -rwxrwxrwx   1 00  22016 2005-01-06 15:47:32
/e/tmp/bacula-restores/d//Users/celeste/Celeste/Terminology.doc
danie-fd: drwxrwxrwx   1 00  0 2005-01-06 15:47:27
/e/tmp/bacula-restores/d//Users/celeste/Celeste/
danie-fd: -rwxrwxrwx   1 00  41984 2004-11-24 10:12:56
/e/tmp/bacula-restores/d//Users/celeste/Correspondence/E.Goott Balance
Sheet.doc
danie-fd: -rwxrwxrwx   1 00  33280 2004-11-15 09:58:45
/e/tmp/bacula-restores/d//Users/celeste/Correspondence/MLS address
change.doc
danie-fd: -rwxrwxrwx   1 00 108544 2005-01-31 17:48:06
/e/tmp/bacula-restores/d//Users/celeste/Correspondence/Pierre Lease
Norwood.doc
danie-fd: -rwxrwxrwx   1 00  43520 2004-11-24 11:20:01
/e/tmp/bacula-restores/d//Users/celeste/Correspondence/Sandra Mart
Letter.doc
danie-fd: -rwxrwxrwx   1 00  41472 2004-11-24 10:57:33
/e/tmp/bacula-restores/d//Users/celeste/Correspondence/Std Bank Delivery
Balance Sheet.doc
danie-fd: drwxrwxrwx   1 00  0 2004-11-15 09:57:43
/e/tmp/bacula-restores/d//Users/celeste/Correspondence/
danie-fd: -rwxrwxrwx   1 00  23040 2004-12-14 15:10:08
/e/tmp/bacula-restores/d//Users/celeste/Errol/Expenses London Nebraska
Nov04.xls
danie-fd: drwxrwxrwx   1 00  0 2004-12-14 15:10:01
/e/tmp/bacula-restores/d//Users/celeste/Errol/
danie-fd: 

Re: [Bacula-users] Restore Question

2005-05-11 Thread Kern Sibbald
On Wednesday 11 May 2005 10:52, Danie Theron wrote:
 Kern Sibbald wrote:
 It looks to me like you are running on a pretty old version of Bacula
  since the bsr file does not contain counts.  What version are you using?
 
 If you are on anything older than 1.36.2, then please upgrade to 1.36.3
  and retry.  If it produces the same thing, please submit a bug report
  with the commands you used to do the restore (as you have below), the bsr
  file (as below), and the job report output from the restore job as you
  have summarized it below, but please also include the Job Report Summary
  written at the end of the job.
 
...

 Kern ,

 OK I checked and I'm running 1.36.2 , I do the restore as follows :

 JobName:RestoreApolloUsersFull
 Bootstrap:  *None*
 Where:  /e/tmp/bacula-restores
 Replace:always
 Client: danie-fd
 Storage:apollousersFile
 JobId:  495
 When:   2005-05-11 10:37:41
 Catalog:MyCatalog
 Priority:   10
 OK to run? (yes/mod/no): yes
 Job started. JobId=528

 As you can see I decided not to specify a bootstrap file , and this is
 one of my Incremental volumes (where I selected just one dir to
 restore). But , it still restores the whole volume set for some reason:

 11-May 10:45 venus-dir: Bacula 1.36.2 (28Feb05): 11-May-2005 10:45:23
   JobId:  528
   Job:RestoreApolloUsersFull.2005-05-11_10.38.34
   Client: danie-fd
   Start time: 11-May-2005 10:38:36
   End time:   11-May-2005 10:45:23
   Files Expected: 1
   Files Restored: 184
   Bytes Restored: 5,910,277,837
   Rate:   14521.6 KB/s
   FD Errors:  0
   FD termination status:  OK
   SD termination status:  OK
   Termination:Restore OK

 11-May 10:45 venus-dir: Begin pruning Jobs.
 11-May 10:45 venus-dir: No Jobs found to prune.
 11-May 10:45 venus-dir: Begin pruning Files.
 11-May 10:45 venus-dir: No Files found to prune.
 11-May 10:45 venus-dir: End auto prune.

 Should I upgrade to 1.36.3 ? What are your recommendations? Also , I
 installed from a binary , can I just run the updated binary (making sure I
 backed up my bacula dir of cource :) )

 Thanks in advance!

Well, if I understand what you are doing, you are using the restore command, 
but at the last minute you set the Bootstrap file to none.  If that is the 
case, I am surprised that it works at all, and if it does work, surely it is 
going to restore everything.  In effect, you shot yourself in the foot.

Without a bootstrap file you cannot restore only a portion of the files.

-- 
Best regards,

Kern

  (
  /\
  V_V


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore Question

2005-05-11 Thread Danie Theron
Kern Sibbald wrote:
On Wednesday 11 May 2005 10:52, Danie Theron wrote:
 

Kern Sibbald wrote:
   

It looks to me like you are running on a pretty old version of Bacula
since the bsr file does not contain counts.  What version are you using?
If you are on anything older than 1.36.2, then please upgrade to 1.36.3
and retry.  If it produces the same thing, please submit a bug report
with the commands you used to do the restore (as you have below), the bsr
file (as below), and the job report output from the restore job as you
have summarized it below, but please also include the Job Report Summary
written at the end of the job.
 

...
 

   

Well, if I understand what you are doing, you are using the restore command, 
but at the last minute you set the Bootstrap file to none.  If that is the 
case, I am surprised that it works at all, and if it does work, surely it is 
going to restore everything.  In effect, you shot yourself in the foot.

Without a bootstrap file you cannot restore only a portion of the files.
 

Kern ,
I ran the same job with the bootstrap specified  (sorry for the long 
paste , thought I'd include all the steps I did)

Building directory tree for JobId 495 ...  
++
1 Job, 184 files inserted into the tree.

You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the all keyword on the command line.
Enter done to leave this mode.
cwd is: /
$ unmark
No files unmarked.
$ cd d:
cwd is: d:/
$ cd Users
cwd is: d:/Users/
$ cd kaygee
cwd is: d:/Users/kaygee/
$ mark *
1 files marked.
$ done
Bootstrap records written to /var/bacula/restore.bsr
The job will require the following Volumes:
  apollousersincr-0022
1 file selected to be restored.
The defined Restore Job resources are:
1: RestoreFiles
2: RestoreApolloUsersFull
Select Restore Job (1-2): 2
Defined Clients:
1: mailx3-fd
2: danie-fd
3: rock-fd
4: venus-fd
5: apollo-fd
6: mercury-fd
7: tyrone-fd
8: errol-fd
Select the Client (1-8): 2
Run Restore job
JobName:RestoreApolloUsersFull
Bootstrap:  /var/bacula/restore.bsr
Where:  /e/tmp/bacula-restores
Replace:always
FileSet:apollousers Set
Client: danie-fd
Storage:verpaktshareFile
When:   2005-05-11 11:05:47
Catalog:MyCatalog
Priority:   10
OK to run? (yes/mod/no): mod
Parameters to modify:
1: Level
2: Storage
3: Job
4: FileSet
5: Client
6: When
7: Priority
8: Bootstrap
9: Where
   10: Replace
   11: JobId
Select parameter to modify (1-11): 8
Please enter the Bootstrap file name: /var/bacula/apollousers.bsr
Run Restore job
JobName:RestoreApolloUsersFull
Bootstrap:  /var/bacula/apollousers.bsr
Where:  /e/tmp/bacula-restores
Replace:always
FileSet:apollousers Set
Client: danie-fd
Storage:verpaktshareFile
When:   2005-05-11 11:05:47
Catalog:MyCatalog
Priority:   10
OK to run? (yes/mod/no): mod
Parameters to modify:
1: Level
2: Storage
3: Job
4: FileSet
5: Client
6: When
7: Priority
8: Bootstrap
9: Where
   10: Replace
   11: JobId
Select parameter to modify (1-11): 2
The defined Storage resources are:
1: verpaktshareFile
2: mailx3File
3: apolloprofFile
4: apollosqlFile
5: apollousersFile
6: rocksqlFile
7: rockprofFile
8: sqlFile
9: winFile
   10: File
Select Storage resource (1-10): 5
Run Restore job
JobName:RestoreApolloUsersFull
Bootstrap:  /var/bacula/apollousers.bsr
Where:  /e/tmp/bacula-restores
Replace:always
FileSet:apollousers Set
Client: danie-fd
Storage:apollousersFile
When:   2005-05-11 11:05:47
Catalog:MyCatalog
Priority:   10
OK to run? (yes/mod/no): mod
Parameters to modify:
1: Level
2: Storage
3: Job
4: FileSet
5: Client
6: When
7: Priority
8: Bootstrap
9: Where
   10: Replace
   11: JobId
Select parameter to modify (1-11): 4
The defined FileSet resources are:
1: verpaktshare Set
2: mailx3 Set
3: apollosql Set
4: apolloprof Set
5: apollousers Set
6: te_hdrive Set
7: rocksql Set
8: rockprof Set
9: sql Set
   10: Windows 2000 Set
   11: Full Set
   12: Catalog
Select FileSet resource (1-12): 5
Run Restore job
JobName:RestoreApolloUsersFull
Bootstrap:  /var/bacula/apollousers.bsr
Where:  /e/tmp/bacula-restores
Replace:always
FileSet:apollousers Set
Client: danie-fd
Storage:apollousersFile
When:   2005-05-11 11:05:47
Catalog:MyCatalog
Priority:   10
OK to run? (yes/mod/no): yes
Job started. JobId=529
Still it restores everything. not sure what I'm doing wrong , should 
I just upgrade and see if that solves the problem?



---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the 

[Bacula-users] Restore Question

2005-05-10 Thread Danie Theron
Hi ,
I want to do a restore of a single user directory from a full volume , 
and everytime it wants to restore ALL the files of that full backup. I 
have defined the bootstrap , Filestorage etc correctly... Why would this 
happen?

*restore
First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.
To select the JobIds, you have the following choices:
1: List last 20 Jobs run
2: List Jobs where a given File is saved
3: Enter list of comma separated JobIds to select
4: Enter SQL list command
5: Select the most recent backup for a client
6: Select backup for a client before a specified time
7: Enter a list of files to restore
8: Enter a list of files to restore before a specified time
9: Cancel
Select item:  (1-9): 3
Enter JobId(s), comma separated, to restore: 157
You have selected the following JobId: 157
Building directory tree for JobId 157 ...  
+
1 Job, 20,229 files inserted into the tree.

cwd is: /
$ unmark *
20230 files unmarked.
$ count
20,230 total files/dirs. 0 marked to be restored.
$ cd d:/Users/rudolf
cwd is: d:/Users/rudolf/
$ mark *
3,248 files marked.
$ count
20,230 total files/dirs. 3,251 marked to be restored.
All is fine , I modify the needed parameters , but it restores 
everything

--
Danie Theron
IT Consultant
[EMAIL PROTECTED]
+27833552998
--
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited.  If you received this in error, please 
contact the sender and delete the material from any computer.
--


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore Question

2005-05-10 Thread Kern Sibbald
On Tuesday 10 May 2005 16:15, Danie Theron wrote:
 Hi ,

 I want to do a restore of a single user directory from a full volume ,
 and everytime it wants to restore ALL the files of that full backup. I
 have defined the bootstrap , Filestorage etc correctly... Why would this
 happen?

 *restore

 First you select one or more JobIds that contain files
 to be restored. You will be presented several methods
 of specifying the JobIds. Then you will be allowed to
 select which files from those JobIds are to be restored.

 To select the JobIds, you have the following choices:
  1: List last 20 Jobs run
  2: List Jobs where a given File is saved
  3: Enter list of comma separated JobIds to select
  4: Enter SQL list command
  5: Select the most recent backup for a client
  6: Select backup for a client before a specified time
  7: Enter a list of files to restore
  8: Enter a list of files to restore before a specified time
  9: Cancel
 Select item:  (1-9): 3
 Enter JobId(s), comma separated, to restore: 157
 You have selected the following JobId: 157

 Building directory tree for JobId 157 ...
 +
 1 Job, 20,229 files inserted into the tree.

 cwd is: /
 $ unmark *
 20230 files unmarked.
 $ count
 20,230 total files/dirs. 0 marked to be restored.
 $ cd d:/Users/rudolf
 cwd is: d:/Users/rudolf/
 $ mark *
 3,248 files marked.
 $ count
 20,230 total files/dirs. 3,251 marked to be restored.

 All is fine , I modify the needed parameters , but it restores
 everything

It is hard to believe, please show me the output and the bootstrap file.
-- 
Best regards,

Kern

  (
  /\
  V_V


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore question

2005-05-05 Thread Matthew Hawkins
Russell Howe ([EMAIL PROTECTED]) wrote:
 Marcin Wasilewski wrote:
  I am running Bacula on 1.36.2 Debian with MySQL and it is working fine.
[snip]
  What should I do to restore those files I need and do not damage anything.
 
 I think bscan is the tool you're looking for.

In the Debian packages that's /usr/lib/bacula/bscan.mysql
(its not in the path)

I ended up writing a script which I placed in the path called bscan that
looks something like this:

--- bscan.sh ---
#!/bin/sh

BSCAN=/usr/lib/bacula/bscan.mysql

echo \n*** bscan wrapper\n\nDevice: HP_C5713A\n
$BSCAN -c /usr/bacula/bacula-sd.conf -P password -h dbhost $@
--- end snip ---

which gets called like so:

$ bscan -s -V Daily0001 HP_C5713A

Where Daily0001 is the currently mounted tape you wish to bscan and HP_C5713A
is the name of the device in bacula-sd.conf (I have that echo in there so I can
cut  paste it ;)

FWIW I did this with my own restore problem of a few weeks back, and it
resurrected files from a completely different host, I was unable to use bscan
to retrieve the files I needed.

-- 
Matt


pgpnsGp6a9PDJ.pgp
Description: PGP signature


[Bacula-users] Restore question

2005-04-29 Thread Marcin Wasilewski
Hello,
I am running Bacula on 1.36.2 Debian with MySQL and it is working fine.
Some time ago I done very important backup on my tape, and now I need to 
restore some files from this backup, but when I run my wx-console I cannot 
find that job and files which I wrote on the tape.
It seems that file retetntion period  set was wrong:
JobRetention=1 month FileRetention=1 month AutoPrune=1

but the pool definition seems to be ok:
use_cat=1 use_once=0 acpt_any=1 cat_files=1
max_vols=0 auto_prune=0 VolRetention=1 year
VolUse=0 secs recycle=1 LabelFormat=*None*
CleaningPrefix=*None*
recyleOldest=0 MaxVolJobs=0 MaxVolFiles=0
What should I do to restore those files I need and do not damage anything.
Best regards
Marcin

---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore question

2005-04-29 Thread Russell Howe
Marcin Wasilewski wrote:
 Hello,
 
 I am running Bacula on 1.36.2 Debian with MySQL and it is working fine.
 Some time ago I done very important backup on my tape, and now I need to
 restore some files from this backup, but when I run my wx-console I
 cannot find that job and files which I wrote on the tape.
 It seems that file retetntion period  set was wrong:
 JobRetention=1 month FileRetention=1 month AutoPrune=1
 
 What should I do to restore those files I need and do not damage anything.

I think bscan is the tool you're looking for.

-- 
Russell Howe
[EMAIL PROTECTED]

Today's Nemi: http://www.metro.co.uk/img/pix/nemi_apr29.jpg


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users