... | ... | @@ -273,13 +273,13 @@ to use the option. So: |
|
|
$ mark etc
|
|
|
1,921 files marked.
|
|
|
|
|
|
|
|
|
Do **not** use the `estimate` command as it can take a long time
|
|
|
to run and will freeze the shell.
|
|
|
|
|
|
6. when done selecting files, call the `done` command
|
|
|
|
|
|
$ done
|
|
|
[...]
|
|
|
|
|
|
7. this will drop you in a confirmation dialog showing what will
|
|
|
happen. note the `Where` parameter which shows where the files
|
... | ... | @@ -405,6 +405,7 @@ command](https://www.bacula.org/9.4.x-manuals/en/main/Restore_Command.html). |
|
|
## Restore a host that has been offline for a long time
|
|
|
|
|
|
If a host has been offline for a long time its storage configuration might have been expired by puppet. You will notice that when you are trying to restore some file to a different host you will get the following error after having selected the files:
|
|
|
|
|
|
```
|
|
|
Unable to find Storage resource for
|
|
|
MediaType "File-<hostname>.torproject.org", needed by the Jobs you
|
... | ... | @@ -414,6 +415,7 @@ MediaType "File-<hostname>.torproject.org", needed by the Jobs you |
|
|
In this case you might have to manually recreate a few configuration files both on `bacula-director-01` and on `bungei`.
|
|
|
|
|
|
On `bungei`:
|
|
|
|
|
|
```
|
|
|
cd /etc/bacula/storage-conf.d
|
|
|
```
|
... | ... | @@ -457,13 +459,16 @@ Create two configuration files: |
|
|
<hostname>.torproject.org.conf
|
|
|
<hostname>.torproject.org_storage.conf
|
|
|
```
|
|
|
|
|
|
You can copy and edit the hostname from the conf file of some other host.
|
|
|
|
|
|
```
|
|
|
cd /etc/bacula/storages-list.d
|
|
|
```
|
|
|
|
|
|
Create a file `<hostname>.torproject.org.storage`, with the following line:
|
|
|
Create a file `<hostname>.torproject.org.storage`, with the following
|
|
|
line:
|
|
|
|
|
|
```
|
|
|
File-<hostname>.torproject.org
|
|
|
```
|
... | ... | @@ -487,7 +492,6 @@ of directories of tapes. You can see the contents of a tape using |
|
|
that is, `bls <file>`, with a fully qualified filename, i.e. involving all the
|
|
|
paths. `bls $(readlink -f <filename>)` is a handy way to get that.
|
|
|
|
|
|
|
|
|
root@bungei:/srv/backups/bacula/dictyotum.torproject.org# bls `readlink -f torproject-inc-dictyotum.torproject.org.2019-09-25_11:53` | head
|
|
|
bls: butil.c:292-0 Using device: "/srv/backups/bacula/dictyotum.torproject.org" for reading.
|
|
|
25-Sep 13:48 bls JobId 0: Ready to read from volume "torproject-inc-dictyotum.torproject.org.2019-09-25_11:53" on File device "FileStorage-dictyotum.torproject.org" (/srv/backups/bacula/dictyotum.torproject.org).
|
... | ... | @@ -498,7 +502,6 @@ paths. `bls $(readlink -f <filename>)` is a handy way to get that. |
|
|
bls JobId 0: -r--r--r-- 1 root root 28161 2019-09-25 00:55:50 /etc/ssl/torproject-auto/crls/ca.crl
|
|
|
...
|
|
|
|
|
|
|
|
|
You can then extract files from there
|
|
|
[bextract](https://www.bacula.org/7.2.x-manuals/en/utility/Volume_Utility_Tools.html#SECTION00260000000000000000):
|
|
|
|
... | ... | @@ -529,7 +532,6 @@ Load each database dump: |
|
|
|
|
|
See [howto/ldap](howto/ldap) for LDAP-specific procedures.
|
|
|
|
|
|
|
|
|
## Listing latest backups from a host
|
|
|
|
|
|
To see when backups have ran for a host, use the `list jobs`
|
... | ... | @@ -1039,6 +1041,7 @@ It's because you forgot to reset the director password, in step 9. |
|
|
<!-- TODO: how to setup the service from scratch -->
|
|
|
|
|
|
## SLA
|
|
|
|
|
|
<!-- TODO: acceptable level of service for this service -->
|
|
|
|
|
|
## Design
|
... | ... | @@ -1125,6 +1128,9 @@ work. |
|
|
There is no issue tracker specifically for this project, [File][] or
|
|
|
[search][] for issues in the [team issue tracker][search].
|
|
|
|
|
|
[File]: https://gitlab.torproject.org/tpo/tpa/team/-/issues/new
|
|
|
[search]: https://gitlab.torproject.org/tpo/tpa/team/-/issues
|
|
|
|
|
|
## Monitoring and testing
|
|
|
|
|
|
<!-- TODO: describe how this service is monitored and how it can be tested -->
|
... | ... | @@ -1152,6 +1158,7 @@ TODO: populate Discussion section. |
|
|
<!-- that has a launch checklist -->
|
|
|
|
|
|
## Goals
|
|
|
|
|
|
<!-- include bugs to be fixed -->
|
|
|
|
|
|
### Must have
|
... | ... | @@ -1161,6 +1168,7 @@ TODO: populate Discussion section. |
|
|
### Non-Goals
|
|
|
|
|
|
## Approvals required
|
|
|
|
|
|
<!-- for example, legal, "vegas", accounting, current maintainer -->
|
|
|
|
|
|
## Proposed Solution
|
... | ... | |