PeterDocs/Docs/Usage.md

1.7 KiB

Usage

Usage PeterDocs

The syntax is for each function is below:

Compress-Peter
    -SourceFolder <string>    
    [-RecipientKey <string>] | [-SecretKey <string>]
    [-ArchiveFile <string>]
    [-ReconcileFile <string>]
    [-FileFilter <string>]
    [-SecretFile <string>]
    [-ExcludeHash]
    [-IncludeExif]
    [-RootFolder  <string>]
    [-VolumeSize <string>]
    [-LogPath <string>]
    [<CommonParameters>]

Expand-Peter
    -ArchiveFile <string>
    -RestoreFolder <string>    
    [-RecipientKey <string>] | [-SecretKey <string>]
    [-SecretFile <string>]
    [-LogPath <string>]
    [<CommonParameters>]

New-PeterReconcile
    -SourceFolder <string>    
    -ReconcileFile <string>
    [-RootFolder <string>}
    [-FileFilter <string>]
    [-ProcessFileCount <long>]
    [-ExcludeHash]
    [-IncludeExif]
    [-Feedback]
    [-LogPath <string>]
    [<CommonParameters>]

Compare-Peter
    -RestoreFolder <string>    
    [-ReconcileFile <string>]
    [-RootFolder <string>}
    [-ExcludeHash]
    [-ExtendedCheck]
    [-LogPath <string>]
    [<CommonParameters>]

Usage PeterTask

For using the PeterTask, syntax is simple as shown below. Behind the scenes the PeterTask calls the functions above:


PeterTask
    -Task {Compress, Expand, Compare, NewReconcile, Put, Get, ArchiveInformation}
    -Path <string>
    [-RecipientKey <string>] | [-SecretKey <string>]
    [-ArchiveFile  <string>]
    [-RootFolder  <string>]
    [-FileFilter <string>]
    [-ReconcileFile <string>]
    [-SecretFile <string>]
    [-CloudProfile <string>]
    [-ExcludeHash]
    [-IncludeExif]
    [-VolumeSize <string>]
    [-LogPath <string>]
    [<CommonParameters>]