Re: [Bacula-users] restoreing from a concurrent backup
2009-04-15 15:57:23
On Wed, Apr 15, 2009 at 3:34 PM, Andreas Schuldei
<schuldei+bacula-users AT spotify DOT com> wrote:
> Hi!
>
> tonight i ran my very first concurrent backup and the backup time went
> down nicely. yay.
>
> when trying to restore something from the backup i got this:
>
> ==========
>
> 15-Apr 15:00 lettuce.spotify.net-dir JobId 17536: Start Restore Job
> RestoreFiles.2009-04-15_15.00.51
> 15-Apr 15:00 lettuce.spotify.net-dir JobId 17536: Using Device "FileStorage3"
> 15-Apr 15:00 lettuce.spotify.net-sd JobId 17536: Ready to read from
> volume "File-00001521" on device "FileStorage3"
> (/var/backups/bacula/unit_03/backups/).
> 15-Apr 15:00 lettuce.spotify.net-sd JobId 17536: Forward spacing
> Volume "File-00001521" to file:block 0:210.
> 15-Apr 15:01 lettuce.spotify.net-sd JobId 17536: End of Volume at file
> 0 on device "FileStorage3" (/var/backups/bacula/unit_03/backups/),
> Volume "File-00001521"
> 15-Apr 15:01 lettuce.spotify.net-sd JobId 17536: End of all volumes.
> 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: Bacula
> lettuce.spotify.net-dir 2.4.0 (04Jun08): 15-Apr-2009 15:01:04
> Build OS: x86_64-pc-linux-gnu debian 4.0
> JobId: 17536
> Job: RestoreFiles.2009-04-15_15.00.51
> Restore Client: angie.lon.spotify.net-fd
> Start time: 15-Apr-2009 15:00:10
> End time: 15-Apr-2009 15:01:04
> Files Expected: 1
> Files Restored: 0
> Bytes Restored: 0
> Rate: 0.0 KB/s
> FD Errors: 0
> FD termination status: OK
> SD termination status: OK
> Termination: Restore OK -- warning file count mismatch
>
> 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: Begin pruning Jobs.
> 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: No Jobs found to prune.
> 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: Begin pruning Files.
> 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: No Files found to prune.
> 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: End auto prune.
>
> ===========
>
> i restored like this (transscript from bconsole):
>
> ===========
>
> No file specification given.
> $ find *
> /var/
> /var/backups/
> /var/backups/bacula/
> /var/backups/bacula/postgres/
> /var/backups/bacula/postgres/postgres_globals_2009_04_15_01_53_39.gz
> /var/backups/bacula/postgres/postgres_postgres_2009_04_15_01_53_39.gz
> /var/backups/bacula/postgres/postgres_template1_2009_04_15_01_53_39.gz
> /var/backups/bacula/postgres/postgres_users_2009_04_15_01_53_39.gz
> /var/backups/bacula/postgres/postgres_users2_2009_04_15_01_55_07.gz
> $ mark /var/backups/bacula/postgres/postgres_users_2009_04_15_01_53_39.gz
> No files marked.
> $ cd /var/backups/bacula/postgres/
> cwd is: /var/backups/bacula/postgres/
> $ makr postgres_users_2009_04_15_01_53_39.gz
> Invalid command. Enter "done" to exit.
> $ mark postgres_users_2009_04_15_01_53_39.gz
> 1 file marked.
> $ done
> Storage "" not found, using Storage "lettuce.spotify.net-sd" from
> MediaType "File".
> Bootstrap records written to
> /var/lib/bacula/lettuce.spotify.net-dir.restore.3.bsr
>
> The job will require the following
> Volume(s) Storage(s) SD Device(s)
> ===========================================================================
>
> File-00001521
>
>
> 1 file selected to be restored.
>
> Run Restore job
> JobName: RestoreFiles
> Bootstrap: /var/lib/bacula/lettuce.spotify.net-dir.restore.3.bsr
> Where: /tmp/bacula-restores
> Replace: always
> FileSet: Full Set
> Backup Client: angie.lon.spotify.net-fd
> Restore Client: angie.lon.spotify.net-fd
> Storage: lettuce.spotify.net-sd
> When: 2009-04-15 14:45:47
> Catalog: backup
> Priority: 10
> OK to run? (yes/mod/no): mod
> Parameters to modify:
> 1: Level
> 2: Storage
> 3: Job
> 4: FileSet
> 5: Restore Client
> 6: When
> 7: Priority
> 8: Bootstrap
> 9: Where
> 10: File Relocation
> 11: Replace
> 12: JobId
> Select parameter to modify (1-12): 9
> Please enter path prefix for restore (/ for none): /var/backups/restore
> Run Restore job
> JobName: RestoreFiles
> Bootstrap: /var/lib/bacula/lettuce.spotify.net-dir.restore.3.bsr
> Where: /var/backups/restore
> Replace: always
> FileSet: Full Set
> Backup Client: angie.lon.spotify.net-fd
> Restore Client: angie.lon.spotify.net-fd
> Storage: lettuce.spotify.net-sd
> When: 2009-04-15 14:45:47
> Catalog: backup
> Priority: 10
> OK to run? (yes/mod/no): yes
> Job queued. JobId=17536
> *
> 15-Apr 15:00 lettuce.spotify.net-dir JobId 17536: Start Restore Job
> RestoreFiles.2009-04-15_15.00.51
> 15-Apr 15:00 lettuce.spotify.net-dir JobId 17536: Using Device "FileStorage3"
> 15-Apr 15:00 lettuce.spotify.net-sd JobId 17536: Ready to read from
> volume "File-00001521" on device "FileStorage3"
> (/var/backups/bacula/unit_03/backups/).
> 15-Apr 15:00 lettuce.spotify.net-sd JobId 17536: Forward spacing
> Volume "File-00001521" to file:block 0:210.
> *
> 15-Apr 15:01 lettuce.spotify.net-sd JobId 17536: End of Volume at file
> 0 on device "FileStorage3" (/var/backups/bacula/unit_03/backups/),
> Volume "File-00001521"
> 15-Apr 15:01 lettuce.spotify.net-sd JobId 17536: End of all volumes.
> 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: Bacula
> lettuce.spotify.net-dir 2.4.0 (04Jun08): 15-Apr-2009 15:01:04
> Build OS: x86_64-pc-linux-gnu debian 4.0
> JobId: 17536
> Job: RestoreFiles.2009-04-15_15.00.51
> Restore Client: angie.lon.spotify.net-fd
> Start time: 15-Apr-2009 15:00:10
> End time: 15-Apr-2009 15:01:04
> Files Expected: 1
> Files Restored: 0
> Bytes Restored: 0
> Rate: 0.0 KB/s
> FD Errors: 0
> FD termination status: OK
> SD termination status: OK
> Termination: Restore OK -- warning file count mismatch
>
> 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: Begin pruning Jobs.
> 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: No Jobs found to prune.
> 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: Begin pruning Files.
> 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: No Files found to prune.
> 15-Apr 15:01 lettuce.spotify.net-dir JobId 17536: End auto prune.
>
> =========
>
> the backup was not empty:
>
> =========
>
> *list files jobid=17511
> Automatically selected Catalog: backup
> Using Catalog "backup"
> +------------------------------------------------------------------------+
> | filename |
> +------------------------------------------------------------------------+
> | /var/backups/bacula/postgres/ |
> | /var/backups/bacula/postgres/postgres_template1_2009_04_15_01_53_39.gz |
> | /var/backups/bacula/postgres/postgres_users_2009_04_15_01_53_39.gz |
> | /var/backups/bacula/postgres/postgres_users2_2009_04_15_01_55_07.gz |
> | /var/backups/bacula/postgres/postgres_postgres_2009_04_15_01_53_39.gz |
> | /var/backups/bacula/postgres/postgres_globals_2009_04_15_01_53_39.gz |
> +------------------------------------------------------------------------+
> +--------+---------------------------------+---------------------+------+-------+----------+-------------+-----------+
> | jobid | name | starttime |
> type | level | jobfiles | jobbytes | jobstatus |
> +--------+---------------------------------+---------------------+------+-------+----------+-------------+-----------+
> | 17,511 | angie.lon.spotify.net: Postgres | 2009-04-15 02:01:32 | B
> | F | 6 | 388,870,297 | T |
> +--------+---------------------------------+---------------------+------+-------+----------+-------------+-----------+
>
> ==========
>
>
> and the encoding is right in the database:
>
> ==============
>
> postgres@lettuce:~$ psql -l
> List of databases
> Name | Owner | Encoding
> -----------+----------+-----------
> bacula | postgres | SQL_ASCII
> postgres | postgres | UTF8
> template0 | postgres | UTF8
> template1 | postgres | UTF8
> (4 rows)
>
> ===============
>
> this is my bacula director-config:
>
> ===========
>
> Director { # Myself defined by myself
> Name = lettuce.spotify.net-dir # Name of the directory
> DIRport = 9101 # where we listen for UA connections
> QueryFile = "/etc/bacula-devel/scripts/query.sql" # For sql
> WorkingDirectory = "/var/lib/bacula"
> PidDirectory = "/var/run/bacula"
> Maximum Concurrent Jobs = 30
> Password = "burp"
> Messages = Daemon # Where to send messages for the director
> DirAddress = 127.0.0.1 # How to contact it
> TLS Require = no
> }
>
> .... (tons of jobs and clients and stuff)
>
> ============
>
> this is my bacula-sd.conf:
>
> ===========
>
> Storage { # definition of myself
> Name = lettuce.spotify.net-sd
> SDPort = 9103 # Director's port
> WorkingDirectory = "/var/lib/bacula"
> Pid Directory = "/var/run/bacula"
> Maximum Concurrent Jobs = 20
> SDAddress = 0.0.0.0
> TLS Enable = yes
> TLS Require = yes
> TLS Certificate = /etc/bacula-devel/bacula-sd.pem
> TLS Verify Peer = no
> TLS Key = /etc/bacula-devel/bacula-sd.pem
> #TLS CA Certificate File = /etc/bacula-devel/bacula-dir.ca
> }
>
> # List Directors who are permitted to contact Storage daemon
> #
> Director {
> Name = lettuce.spotify.net-dir
> Password = "burp"
> TLS Enable = yes
> TLS Require = yes
> TLS Certificate = /etc/bacula-devel/bacula-sd.pem
> TLS Key = /etc/bacula-devel/bacula-sd.pem
> TLS Verify Peer = no
> #TLS CA Certificate File = /etc/bacula-devel/bacula-dir.ca
> }
>
> #
> # Restricted Director, used by tray-monitor to get the
> # status of the storage daemon
> #
> Director {
> Name = lettuce-mon
> Password = "burp"
> Monitor = yes
> }
>
> Device {
> Name = FileStorage
> Media Type = File
> Archive Device = /var/backups/bacula/unit_01/
> LabelMedia = yes; # lets Bacula label unlabeled media
> Random Access = yes;
> AutomaticMount = yes; # when device opened, read it
> RemovableMedia = no;
> AlwaysOpen = no;
> }
> Device {
> Name = FileStorage2
> Media Type = File
> Archive Device = /var/backups/bacula/unit_02/
> LabelMedia = yes; # lets Bacula label unlabeled media
> Random Access = yes;
> AutomaticMount = yes; # when device opened, read it
> RemovableMedia = no;
> AlwaysOpen = no;
> }
> Device {
> Name = FileStorage3
> Media Type = File
> Archive Device = /var/backups/bacula/unit_03/backups/
> LabelMedia = yes; # lets Bacula label unlabeled media
> Random Access = yes;
> AutomaticMount = yes; # when device opened, read it
> RemovableMedia = no;
> AlwaysOpen = no;
> }
>
> #
> # Send all messages to the Director,
> # mount messages also are sent to the email address
> #
> Messages {
> Name = Standard
> director = bacula.spotify.net-dir = all
> }
>
> ========
>
>
> what is wrong with my setup?
>
Is your bacula version 2.4.X or greater?
John
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|