Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Directions to open

  1. Launch Command Prompt normally (not as admin)

  2. Change the directory to location of the preveil_client.exe file
    Example

    cd C:\preveil\filesync
  1. Run the tool’s help command
    Example:

    .\preveil_client.exe --help

    Dot backslash means it’s referring to the relative path

Note: Double-clicking the executable will not work

Running commands

The executable must be launched for each command.

Examples

  1. If you are NOT in the directory with the executable (preveil_client.exe):

    C:\PreVeil\filesync\preveil_client.exe upload [insert parameters]
    C:\PreVeil\filesync\preveil_client.exe --help

  2. If you are in the directory with the executable (preveil_client.exe):

    .\preveil_client upload [insert parameters]
    .\preveil_client.exe --help

General

Usage:

preveil_client.exe [flags]
preveil_client.exe [command]

Available Commands:

help        Help about any command
upload      Upload the input folder or file into the user's specified collection

Flags:

-h, --help        help for preveil_client.exe
--logdir string   custom log dir location (default "C:\Users\<username>\AppData\Local\PreVeil\drive\logs")
--mode string     PREVEIL_MODE (default "prod")
--port string     port used to specify which drive daemon we are connecting to

Upload Command

Usage:

preveil_client.exe upload [flags]

Examples:

01. Upload to a user's default collection:

.\preveil_client.exe upload -u <preveil_user_id> -s <path_to_file_or_folder>

The upload will go to My PreVeil or the top level area

02. Upload to a user's specified collection (the target collection must already exist):

.\preveil_client.exe upload -u <preveil_user_id> -s <path_to_file_or_folder> -d <target_collection>

A collection is a folder and the target folder must be a shared folder

03 Upload to a user's specified collection and retain the folder structure from the source location (the target collection folder structure must already exist):

.\preveil_client.exe upload -u <preveil_user_id> -s <path_to_file_or_folder>\* -d <target_collection>

A collection is a folder and the target folder must be a shared folder

04. Upload to a user's specified collection (create the target collection if it does not exist):

.\preveil_client.exe upload -c -u <preveil_user_id> -s <path_to_file_or_folder> -d <target_collection>

By default the folder is set to not sync-to-device

05. Hide the upload progress bar:

.\preveil_client.exe upload ... --quiet

06. Enable local sync for the newly uploaded items:

.\preveil_client.exe upload ... --localsync

Flags:

-c, --create          Create target collection if it doesn't exist (default=false)
-d, --dest string     destination (default=user's default collection)
-h, --help            Help for upload
--localsync           Enable local sync for the newly uploaded target (default=false)
--quiet               Will not show upload progress bars (default=false)
-s, --source string   source (required)
-u, --user string     userID (required)
--skipverify          The content integrity of the file is not checked if a file name matches. 
                      Only applies to the 6-14-2022 version
--verbose             More detailed logs are produced. Only applies to the 6-14-2022 version.

Global Flags:
--logdir string custom log dir location (default "C:\Users\<username>\AppData\Local\PreVeil\drive\logs")
--mode string PREVEIL_MODE (default "prod")
--port string port used to specify which drive daemon we are connecting to

Running on a Mac

Mac OS has a similar way to use the CLI tool in Terminal. For a Mac, no additional files are needed, you can just call upon to the client file in the filesync folder to do the same thing.

  1. Open a Terminal window.

  2. Type in cd /Applications/PreVeil/filesync to navigate to the correct location.

  3. Type in ./client and any of the upload commands listed above to migrate the data into PreVeil.

  4. Use the steps detailed here to locate the log file for the upload.

Best Practices

  • If the data to be migrated is on a file server and not a user’s local device, the migration should be initiated from the file server directly.

    • Install PreVeil on the file server.

    • Use the Add Device process to add the key of the person whose account the data will be migrated into.

    • Run the CLI tool from the file server.

  • No labels