PeterDocs/Docs/Compress.md

74 lines
2.5 KiB
Markdown
Raw Permalink Normal View History

2021-07-25 12:22:13 +00:00
# Compress and Protect
## Source Documents
2021-07-25 13:16:10 +00:00
PeterDocs is intended to be used with documents (files) that need to be transferred
or cloned to a remote location securely. The documents can be binary or text documents,
including personal photographs or sensitive Microsoft Word documents.
At the remote location a reconciliation can be performed to verify that the documents
2021-08-15 06:55:48 +00:00
have been received and no alteration occurred.
2021-07-25 13:16:10 +00:00
2021-07-25 12:22:13 +00:00
## Why
2021-07-25 13:16:10 +00:00
When you have a sensitive document or many documents to transfer or clone, it is
efficient to compress, consolidate and encrypt the documents into one archive file and
then restore this archive file at the destination.
2021-07-25 12:22:13 +00:00
## When
2021-07-25 13:16:10 +00:00
You create the archive file when you are ready to transfer the documents.
2021-07-25 12:22:13 +00:00
## How
2021-07-25 13:16:10 +00:00
To create the archive file you execute the ```Compress-Peter``` function.
2021-07-25 12:22:13 +00:00
```powershell
Compress-Peter
-SourceFolder <String>
-RecipientKey <String>
-SecretKey <String>
-ArchiveFile <String>
-ReconcileFile <String>
-FileFilter <String>
-SecretFile <String>
-ExcludeHash
-RootFolder <String>
-LogPath <String>
```
2021-07-25 13:16:10 +00:00
The function requires a ```SourceFolder```. You need to have
read rights of the source folder and the source folder can be a
lcoal drive or a network drive.
2021-07-25 12:22:13 +00:00
Either a ```RecipientKey``` or ```SecretKey``` is required.
If no ```ArchiveFile``` name is specified a default name is used.
You can ignore the remaining parameters if you are happy with the defaults.
## What
2021-08-15 06:55:48 +00:00
The ```Compress-Peter``` compresses the content of the ```SourceFolder``` and saves the result
2021-07-25 12:22:13 +00:00
as the encrypted ```ArchiveFile```. The archive file also contains the reconciliation file
so that the recipient of the archive is able to reconcile the restore at the remote location.
2021-07-25 13:16:10 +00:00
The archive file contains a snapshot of all the existing documents in the source folder,
subject to any filter applied.
2021-07-25 12:22:13 +00:00
If a ```RecipientKey``` is used then an extra file (```SecretFile``) is also created. Do not
loose this file as without it you cannot decrypt the archive contents.
2021-07-25 13:16:10 +00:00
The ```SourceFolder``` is not written to or updated.
If subsequent changes are made to the documents or more documents are added, then you need
execute the compress again. The PeterDocs process does not have the capability to
generate delta archive files.
2021-07-25 12:22:13 +00:00
## Send Usage
2021-08-15 06:55:48 +00:00
Once the archive file is created you will commonly send or transfer it to another
2021-07-25 13:16:10 +00:00
location where it wll be unpacked.
2021-07-25 12:22:13 +00:00
Please read next the documentation on [sending the archive](SendArchive.md)