ppk encrypt
Encrypt a .ppk archive into a .ppke file. Use this command for new backup workflows.
Command Format:
ppk encrypt --input <INPUT_FILE> --output <OUTPUT_FILE> [--apply] [--config-home <DIR>]
Description
--input <INPUT_FILE>: The.ppkarchive to encrypt.--output <OUTPUT_FILE>: The resulting encrypted.ppkefile.--apply: Perform encryption; without it, only report checks.--config-home <DIR>: Configuration directory containing backup encryption settings inbak.toml.
Usage Sample
ppk encrypt --input /tmp/backup.ppk --output /tmp/backup.ppke --config-home /path/to/conf
ppk encrypt --input /tmp/backup.ppk --output /tmp/backup.ppke --apply --config-home /path/to/conf
Behaviour description
- Without
--apply, only display the input, output and public key to be used. - With
--apply, encrypt usingpublic_key_filefrom[backup_encryption]. - After encryption succeeds, the backup policy determines whether the unencrypted
.ppkarchive is retained.
Compatibility
Legacy .tar.gz archives and .tar.gz.enc encrypted files remain supported for recovery. Existing automation may continue using backup encrypt-artifact, but new workflows should use .ppk, .ppke and ppk encrypt.