2021-07-25 12:22:13 +00:00
|
|
|
# Receive Archive
|
|
|
|
|
|
|
|
|
|
## Why
|
|
|
|
|
|
2021-07-25 13:16:10 +00:00
|
|
|
Once the archive file is sent, you need to download it from its intermediate
|
2021-08-15 06:55:48 +00:00
|
|
|
location if the source and destination locations are not directly connected.
|
2021-07-25 13:16:10 +00:00
|
|
|
|
2021-07-25 14:02:06 +00:00
|
|
|
You can user other tools you have available to download the archive file.
|
|
|
|
|
|
2021-07-25 12:22:13 +00:00
|
|
|
## When
|
|
|
|
|
|
2021-08-15 06:55:48 +00:00
|
|
|
The archive is received after it sent. The assumption is that cloud storage
|
2021-07-25 13:16:10 +00:00
|
|
|
is being used as an intermediary.
|
|
|
|
|
|
2021-07-25 12:22:13 +00:00
|
|
|
## How
|
|
|
|
|
|
2021-07-25 13:16:10 +00:00
|
|
|
To receive the archive file you sent using the ```Send-Peter``` function you can
|
|
|
|
|
execute the ```Receive-Peter``` function.
|
|
|
|
|
|
|
|
|
|
```powershell
|
|
|
|
|
Receive-Peter
|
|
|
|
|
-SourcePath <String>
|
|
|
|
|
-ArchiveFile <String>
|
|
|
|
|
-SecretFile <String>
|
|
|
|
|
-SourceProfile <String>
|
|
|
|
|
-AccountId <String>
|
|
|
|
|
-AccountKey <String>
|
|
|
|
|
-LogPath <String>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The ```SourcePath``` is specified as follows:
|
|
|
|
|
|
|
|
|
|
* s3://bucketname/path/path/archivefile.7z
|
|
|
|
|
* b2://bucketname/path/path/archivefile.7z
|
|
|
|
|
|
|
|
|
|
The "s3" prefix is to download from AWS S3. The "b2" prefix
|
|
|
|
|
is to download from Backblaze.
|
|
|
|
|
|
2021-08-15 06:55:48 +00:00
|
|
|
If you are downloading from AWS you can specify the AWS profile name
|
|
|
|
|
in parameter ```SourceProfile```. In this situation the profile
|
2021-07-25 13:16:10 +00:00
|
|
|
needs to exist in the AWS credentials on your local device and user profile.
|
|
|
|
|
|
|
|
|
|
If you are downloading from Backblaze you specify the ```AccountId``` and the
|
|
|
|
|
```AccountKey```. For better security you can save the Account Key as an
|
|
|
|
|
environment variable named ```PETERDOCS_ACCOUNTKEY```
|
|
|
|
|
|
|
|
|
|
You can override the ```SecretFile``` file name location on the local device,
|
|
|
|
|
but it is recommended to leave at defaults for a better experience.
|
|
|
|
|
|
2021-07-25 12:22:13 +00:00
|
|
|
## What
|
|
|
|
|
|
2021-07-25 13:16:10 +00:00
|
|
|
The function will retrieve the archive file either from an AWS S3 bucket or
|
|
|
|
|
from a Backblaze bucket.
|
|
|
|
|
|
|
|
|
|
If your archive file is on a web site or network folder then you will need to
|
|
|
|
|
use other tools to download the archive file and the key file.
|
|
|
|
|
|
|
|
|
|
The function will not expand or reconcile the restore at the destination.
|
|
|
|
|
|
2021-08-15 06:55:48 +00:00
|
|
|
Please ensure you have sufficient storage to accommodate the local copy of the
|
2021-07-25 13:16:10 +00:00
|
|
|
archive and space to unpack it.
|
|
|
|
|
|
2021-07-25 12:22:13 +00:00
|
|
|
## Expand Usage
|
|
|
|
|
|
|
|
|
|
Please read next the documentation on [expand the archive](Expand.md)
|