Quantcast

Pulling to disk backups back into bacula

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Pulling to disk backups back into bacula

Thing
Hi,

So I am backing up to volumes on a separate disk drive for my email server.  I thought I'd lost my original 500gb drive but this turned out to be the sata controller instead.   In the meantime I had attached a 2TB disk and I have been backing up to this.

My wish if possible since I have recovered these backup files off the 500gb drive is to pull their contents back into bacula so I can restore an old file if need be but not stuff up Local-0028 nor Local-0034 which seem to be valid.  If I cannot do that I will live with the loss but I'd like to recover an early "tape" if I can.

So my disk structure looks like this,

============
root@warlocke:/bacula/backup# ls -l
total 242034528
drwxr-xr-x 2 root   root         108 Oct 25 14:53 archive
-rw-r----- 1 bacula tape 53687027950 Nov  6 23:09 Local-0001
-rw-r----- 1 bacula tape 16133765463 Nov 19 23:11 Local-0002
-rw-r----- 1 bacula tape 53687036451 Aug  8 01:04 Local-0017
-rw-r----- 1 bacula tape 53687039015 Sep  5 16:51 Local-0023
-rw-r----- 1 bacula tape 53687056553 Jan 14 23:11 Local-0028
-rw-r----- 1 bacula tape  4279127939 Jan 24 23:12 Local-0029
-rw-r----- 1 bacula tape 10616901216 Jan 26 10:48 Local-0034
root@warlocke:/bacula/backup# ls -al archive/
total 62238516
drwxr-xr-x 2 root   root           108 Oct 25 14:53 .
drwxrwxr-x 3 bacula bacula         139 Jan 26 06:58 ..
-rw-r----- 1 bacula bacula 24387874497 Oct 14 12:44 Local-0003
-rw-r----- 1 bacula bacula  3574119505 Oct 14 12:50 Local-0004
-rw-r----- 1 bacula bacula         201 Jun 21  2016 Local-0011
-rw-r----- 1 bacula bacula 25142864762 Jun 29  2016 Local-0012
-rw-r----- 1 bacula bacula 10152122461 Aug 28 23:17 Local-0018
-rw-r----- 1 bacula bacula   475246886 Nov 10  2015 Local-0019
root@warlocke:/bacula/backup#
============

Only volume Local-0028 and 34 are I think valid? possibly Local-0001?  in the web ui (and below)  the rest that are even seen have "error"

I would like to recover at least one early volume if I can. 

=============
*list volumes
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Pool: Default
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+---------                          --+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChange                          r | MediaType | LastWritten         |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+---------                          --+-----------+---------------------+
|      10 | Local-0011 | Append    |       1 |      201 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 0000-00-00 00:00:00 |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+---------                          --+-----------+---------------------+
Pool: File
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+---                          --------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes       | VolFiles | VolRetention | Recycle | Slot | In                          Changer | MediaType | LastWritten         |
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+---                          --------+-----------+---------------------+
|       1 | Local-0001 | Full      |       1 | 53,687,027,950 |       12 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-11-06 23:11:21 |
|       2 | Local-0002 | Error     |       1 | 16,133,765,463 |        3 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-11-19 23:11:45 |
|       3 | Local-0003 | Error     |       1 | 24,387,874,497 |        5 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-05-21 23:10:11 |
|       4 | Local-0004 | Error     |       1 |  3,574,119,505 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-19 23:22:39 |
|       5 | Local-0005 | Error     |       1 |  3,574,119,505 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-20 23:06:04 |
|       6 | Local-0006 | Error     |       1 |  3,574,119,505 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-20 23:06:04 |
|       7 | Local-0007 | Error     |       1 |  3,574,119,505 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-20 23:06:05 |
|       8 | Local-0008 | Error     |       1 |  3,574,119,505 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-20 23:06:05 |
|       9 | Local-0009 | Error     |       1 |              0 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 0000-00-00 00:00:00 |
|      11 | Local-0012 | Error     |       1 | 25,142,864,762 |        5 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-29 23:11:33 |
|      12 | Local-0013 | Error     |       1 | 25,142,864,762 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-30 23:06:05 |
|      13 | Local-0014 | Error     |       1 | 25,142,864,762 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-30 23:06:05 |
|      14 | Local-0015 | Error     |       1 | 25,142,864,762 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-30 23:06:06 |
|      15 | Local-0016 | Error     |       1 | 25,142,864,762 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-30 23:06:06 |
|      16 | Local-0017 | Full      |       1 | 53,687,036,451 |       12 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-08-08 01:04:46 |
|      17 | Local-0018 | Error     |       1 | 10,152,122,461 |        2 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-08-28 23:17:40 |
|      18 | Local-0019 | Error     |       1 | 10,152,122,461 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-08-29 23:06:05 |
|      19 | Local-0020 | Error     |       1 | 10,152,122,461 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-08-29 23:06:06 |
|      20 | Local-0021 | Error     |       1 | 10,152,122,461 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-08-29 23:06:07 |
|      21 | Local-0022 | Error     |       1 | 10,152,122,461 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-08-29 23:06:07 |
|      22 | Local-0023 | Full      |       1 | 53,687,039,015 |       12 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-09-05 16:51:36 |
|      23 | Local-0024 | Error     |       1 | 16,133,765,463 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-11-20 23:06:04 |
|      24 | Local-0025 | Error     |       1 | 16,133,765,463 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-11-20 23:06:05 |
|      25 | Local-0026 | Error     |       1 | 16,133,765,463 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-11-20 23:06:05 |
|      26 | Local-0027 | Error     |       1 | 16,133,765,463 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-11-20 23:06:06 |
|      27 | Local-0028 | Full      |       1 | 53,687,056,553 |       12 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-14 23:11:11 |
|      28 | Local-0029 | Error     |       1 |  4,279,127,939 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-24 23:12:06 |
|      29 | Local-0030 | Error     |       1 |  4,279,127,939 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-25 23:06:05 |
|      30 | Local-0031 | Error     |       1 |  4,279,127,939 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-25 23:06:05 |
|      31 | Local-0032 | Error     |       1 |  4,279,127,939 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-25 23:06:06 |
|      32 | Local-0033 | Error     |       1 |  4,279,127,939 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-25 23:06:06 |
|      33 | Local-0034 | Append    |       1 | 10,992,083,321 |        2 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-26 10:55:02 |
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+---                          --------+-----------+---------------------+
Pool: Scratch
No results to list.
============

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Pulling to disk backups back into bacula

Radosław Korzeniewski
Hello,

2017-01-25 23:12 GMT+01:00 Thing <[hidden email]>:
Hi,

So I am backing up to volumes on a separate disk drive for my email server.  I thought I'd lost my original 500gb drive but this turned out to be the sata controller instead.   In the meantime I had attached a 2TB disk and I have been backing up to this.

My wish if possible since I have recovered these backup files off the 500gb drive is to pull their contents back into bacula so I can restore an old file if need be but not stuff up Local-0028 nor Local-0034 which seem to be valid.  If I cannot do that I will live with the loss but I'd like to recover an early "tape" if I can.

If you did not deleted your "lost" volumes from catalog then you can simple transfer them to the correct location and use it as usual. I see that same of your volumes has a status of Error, so it is possible (but not guaranteed) to change this status from Error to i.e. Full and use as usual.
 

So my disk structure looks like this,

============
root@warlocke:/bacula/backup# ls -l
total <a href="tel:24%20203%2045%2028" value="+48242034528" target="_blank">242034528
drwxr-xr-x 2 root   root         108 Oct 25 14:53 archive
-rw-r----- 1 bacula tape 53687027950 Nov  6 23:09 Local-0001
-rw-r----- 1 bacula tape 16133765463 Nov 19 23:11 Local-0002
-rw-r----- 1 bacula tape 53687036451 Aug  8 01:04 Local-0017
-rw-r----- 1 bacula tape 53687039015 Sep  5 16:51 Local-0023
-rw-r----- 1 bacula tape 53687056553 Jan 14 23:11 Local-0028
-rw-r----- 1 bacula tape  4279127939 Jan 24 23:12 Local-0029
-rw-r----- 1 bacula tape 10616901216 Jan 26 10:48 Local-0034
root@warlocke:/bacula/backup# ls -al archive/
total 62238516
drwxr-xr-x 2 root   root           108 Oct 25 14:53 .
drwxrwxr-x 3 bacula bacula         139 Jan 26 06:58 ..
-rw-r----- 1 bacula bacula 24387874497 Oct 14 12:44 Local-0003
-rw-r----- 1 bacula bacula  3574119505 Oct 14 12:50 Local-0004
-rw-r----- 1 bacula bacula         201 Jun 21  2016 Local-0011
-rw-r----- 1 bacula bacula 25142864762 Jun 29  2016 Local-0012
-rw-r----- 1 bacula bacula 10152122461 Aug 28 23:17 Local-0018
-rw-r----- 1 bacula bacula   475246886 Nov 10  2015 Local-0019
root@warlocke:/bacula/backup#
============

Only volume Local-0028 and 34 are I think valid? possibly Local-0001?  in the web ui (and below)  the rest that are even seen have "error"


I do not understand your structure. Which are your "lost" volumes and which are your current and new (on 2TB new drive)?
 
I would like to recover at least one early volume if I can. 

=============
*list volumes
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Pool: Default
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+---------                          --+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChange                          r | MediaType | LastWritten         |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+---------                          --+-----------+---------------------+
|      10 | Local-0011 | Append    |       1 |      201 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 0000-00-00 00:00:00 |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+---------                          --+-----------+---------------------+
Pool: File
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+---                          --------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes       | VolFiles | VolRetention | Recycle | Slot | In                          Changer | MediaType | LastWritten         |
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+---                          --------+-----------+---------------------+
|       1 | Local-0001 | Full      |       1 | 53,687,027,950 |       12 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-11-06 23:11:21 |
|       2 | Local-0002 | Error     |       1 | 16,133,765,463 |        3 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-11-19 23:11:45 |
|       3 | Local-0003 | Error     |       1 | 24,387,874,497 |        5 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-05-21 23:10:11 |
|       4 | Local-0004 | Error     |       1 |  3,574,119,505 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-19 23:22:39 |
|       5 | Local-0005 | Error     |       1 |  3,574,119,505 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-20 23:06:04 |
|       6 | Local-0006 | Error     |       1 |  3,574,119,505 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-20 23:06:04 |
|       7 | Local-0007 | Error     |       1 |  3,574,119,505 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-20 23:06:05 |
|       8 | Local-0008 | Error     |       1 |  3,574,119,505 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-20 23:06:05 |
|       9 | Local-0009 | Error     |       1 |              0 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 0000-00-00 00:00:00 |
|      11 | Local-0012 | Error     |       1 | 25,142,864,762 |        5 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-29 23:11:33 |
|      12 | Local-0013 | Error     |       1 | 25,142,864,762 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-30 23:06:05 |
|      13 | Local-0014 | Error     |       1 | 25,142,864,762 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-30 23:06:05 |
|      14 | Local-0015 | Error     |       1 | 25,142,864,762 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-30 23:06:06 |
|      15 | Local-0016 | Error     |       1 | 25,142,864,762 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-06-30 23:06:06 |
|      16 | Local-0017 | Full      |       1 | 53,687,036,451 |       12 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-08-08 01:04:46 |
|      17 | Local-0018 | Error     |       1 | 10,152,122,461 |        2 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-08-28 23:17:40 |
|      18 | Local-0019 | Error     |       1 | 10,152,122,461 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-08-29 23:06:05 |
|      19 | Local-0020 | Error     |       1 | 10,152,122,461 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-08-29 23:06:06 |
|      20 | Local-0021 | Error     |       1 | 10,152,122,461 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-08-29 23:06:07 |
|      21 | Local-0022 | Error     |       1 | 10,152,122,461 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-08-29 23:06:07 |
|      22 | Local-0023 | Full      |       1 | 53,687,039,015 |       12 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-09-05 16:51:36 |
|      23 | Local-0024 | Error     |       1 | 16,133,765,463 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-11-20 23:06:04 |
|      24 | Local-0025 | Error     |       1 | 16,133,765,463 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-11-20 23:06:05 |
|      25 | Local-0026 | Error     |       1 | 16,133,765,463 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-11-20 23:06:05 |
|      26 | Local-0027 | Error     |       1 | 16,133,765,463 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2016-11-20 23:06:06 |
|      27 | Local-0028 | Full      |       1 | 53,687,056,553 |       12 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-14 23:11:11 |
|      28 | Local-0029 | Error     |       1 |  4,279,127,939 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-24 23:12:06 |
|      29 | Local-0030 | Error     |       1 |  4,279,127,939 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-25 23:06:05 |
|      30 | Local-0031 | Error     |       1 |  4,279,127,939 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-25 23:06:05 |
|      31 | Local-0032 | Error     |       1 |  4,279,127,939 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-25 23:06:06 |
|      32 | Local-0033 | Error     |       1 |  4,279,127,939 |        0 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-25 23:06:06 |
|      33 | Local-0034 | Append    |       1 | 10,992,083,321 |        2 |   31,536,000 |       1 |    0 |                                   0 | File      | 2017-01-26 10:55:02 |
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+---                          --------+-----------+---------------------+

This list does not correspond to the "disk structure" shown above. Which volumes are your "lost" volumes and which are your new?

best regards
--
Radosław Korzeniewski
[hidden email]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Loading...