Page MenuHomePhabricator
Paste P10111

restoring a webperf backup
ActivePublic

Authored by Dzahn on Jan 9 2020, 9:17 PM.
Tags
None
Referenced Files
F31506528: raw.txt
Jan 9 2020, 9:17 PM
Subscribers
None
ssh backup1001.eqiad.wmnet
backup1001 is a Backup server (backup)
[backup1001:~] $ sudo bconsole
Connecting to Director backup1001.eqiad.wmnet:9101
1000 OK: 103 backup1001.eqiad.wmnet Version: 9.4.2 (04 February 2019)
Enter a period to cancel a command.
*restore
Automatically selected Catalog: production
Using Catalog "production"
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: Find the JobIds of the most recent backup for a client
10: Find the JobIds for a backup for a client before a specified time
11: Enter a list of directories to restore for found JobIds
12: Select full restore to a specified Job date
13: Cancel
Select item: (1-13): 5
Defined Clients:
1: an-master1002.eqiad.wmnet-fd
2: analytics1002.eqiad.wmnet-fd
3: analytics1029.eqiad.wmnet-fd
...
165: wasat.codfw.wmnet-fd
166: webperf1002.eqiad.wmnet-fd
167: webperf2002.codfw.wmnet-fd
168: wezen.codfw.wmnet-fd
...
Select the Client (1-170): 166
Automatically selected FileSet: arclamp-application-data
+---------+-------+----------+-----------------+---------------------+----------------+
| JobId | Level | JobFiles | JobBytes | StartTime | VolumeName |
+---------+-------+----------+-----------------+---------------------+----------------+
| 192,344 | F | 13,953 | 216,479,256,864 | 2020-01-01 02:37:09 | production0076 |
| 192,344 | F | 13,953 | 216,479,256,864 | 2020-01-01 02:37:09 | production0077 |
| 192,434 | I | 112 | 946,839,568 | 2020-01-01 04:45:39 | production0077 |
| 192,563 | I | 781 | 7,530,853,376 | 2020-01-02 05:02:32 | production0078 |
| 192,690 | I | 790 | 7,414,383,200 | 2020-01-03 04:34:17 | production0078 |
| 192,816 | I | 763 | 8,069,507,120 | 2020-01-04 04:35:04 | production0078 |
| 192,940 | I | 799 | 7,728,817,200 | 2020-01-05 04:55:43 | production0079 |
| 193,066 | I | 764 | 8,527,912,800 | 2020-01-06 04:46:25 | production0079 |
| 194,152 | I | 946 | 9,896,843,104 | 2020-01-07 09:23:41 | production0080 |
| 194,266 | I | 669 | 8,017,165,936 | 2020-01-08 05:01:12 | production0080 |
| 194,379 | I | 801 | 8,146,442,368 | 2020-01-09 04:41:07 | production0080 |
+---------+-------+----------+-----------------+---------------------+----------------+
You have selected the following JobIds: 192344,192434,192563,192690,192816,192940,193066,194152,194266,194379
Building directory tree for JobId(s) 192344,192434,192563,192690,192816,192940,193066,194152,194266,194379 ... ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
19,816 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: /
cd /srv/xenon/logs/daily
cwd is: /srv/xenon/logs/daily/
$ ls
...
$ m 2020-01-09.excimer.thumb.log
1 file marked.
...
$ done
Bootstrap records written to /var/lib/bacula/backup1001.eqiad.wmnet.restore.4205.bsr
The Job will require the following (*=>InChanger):
Volume(s) Storage(s) SD Device(s)
===========================================================================
production0080 backup1001-FileStorageProduction FileStorageProduction
Volumes marked with "*" are in the Autochanger.
1 file selected to be restored.
Using Catalog "production"
Run Restore job
JobName: RestoreFiles
Bootstrap: /var/lib/bacula/backup1001.eqiad.wmnet.restore.4205.bsr
Where: /var/tmp/bacula-restores
Replace: Always
FileSet: root
Backup Client: webperf1002.eqiad.wmnet-fd
Restore Client: webperf1002.eqiad.wmnet-fd
Storage: backup1001-FileStorageProduction
When: 2020-01-09 21:15:17
Catalog: production
Priority: 1
Plugin Options: *None*
OK to run? (yes/mod/no): yes
Job queued. JobId=194398
*
*exit
---
ssh webperf1001.eqiad.wmnet
cd /var/tmp/bacula-restores
ls