The official command line tool for interacting with CrashPlan
Project description
CrashPlan CLI
Use the crashplan command to interact with your CrashPlan environment.
Requirements
- Python 3.11+
Installation
Install the crashplan CLI using:
$ python3 -m pip install crashplancli
Usage
First, create your profile:
crashplan profile create --name MY_FIRST_PROFILE --server example.authority.com --username security.admin@example.com
Your profile contains the necessary properties for logging into CrashPlan servers. After running crashplan profile create,
the program prompts you about storing a password. If you agree, you are then prompted to input your password.
Your password is not shown when you do crashplan profile show. However, crashplan profile show will confirm that a
password exists for your profile. If you do not set a password, you will be securely prompted to enter a password each
time you run a command.
For development purposes, you may need to ignore ssl errors. If you need to do this, use the --disable-ssl-errors
option when creating your profile:
crashplan profile create -n MY_FIRST_PROFILE -s https://example.authority.com -u security.admin@example.com --disable-ssl-errors
You can add multiple profiles with different names and the change the default profile with the use command:
crashplan profile use MY_SECOND_PROFILE
When the --profile flag is available on other commands, such as those in audit-log, it will use that profile
instead of the default one. For example,
crashplan audit-logs search -b 2025-06-01 --profile MY_SECOND_PROFILE
To see all your profiles, do:
crashplan profile list
Begin date will be ignored if provided on subsequent queries using -c/--use-checkpoint.
Use other formats with -f:
crashplan audit-logs search -b 2025-06-01 -f JSON
The available formats are TABLE,CSV,JSON, and RAW-JSON.
To write events to a file, just redirect your output:
crashplan audit-logs search -b 2025-06-01 > filename.txt
To send events to an external server, use the send-to command, which behaves the same as search except for defaulting
to RAW-JSON output and sending results to an external server instead of to stdout:
The default port (if none is specified on the address) is the standard syslog port 514, and default protocol is UDP:
crashplan audit-logs send-to 10.10.10.42 -b 1d
Results can also be sent over TCP to any port by using the -p/--protocol flag and adding a port to the address argument:
crashplan audit-logs send-to 10.10.10.42:8080 -p TCP -b 1d
Note: For more complex requirements when sending to an external server (SSL, special formatting, etc.), use a dedicated
syslog forwarding tool like rsyslog or connection tunneling tool like stunnel.
If you want to periodically run the same query, but only retrieve the new events each time, use the
-c/--use-checkpoint option with a name for your checkpoint. This stores the timestamp of the query's last event to a
file on disk and uses that as the "begin date" timestamp filter on the next query that uses the same checkpoint name.
Checkpoints are stored per profile.
Initial run requires a begin date:
crashplan audit-logs search -b 30d --use-checkpoint my_checkpoint
Subsequent runs do not:
crashplan audit-logs search --use-checkpoint my_checkpoint
You can also use wildcard for queries, but note, if they are not in quotes, you may get unexpected behavior.
crashplan audit-logs search --actor "*"
The search query parameters are as follows:
--affected-username(Filter results by affected usernames.)--affected-user-id( Filter results by affected user IDs.)--actor-ip(Filter results by user IP addresses.)--actor-user-id(Filter results by actor user IDs.)--actor-username(Filter results by actor usernames.)--event-type(Filter results by event types.)
To learn more about acceptable arguments, add the -h flag to crashplan audit-logs
Troubleshooting
If you keep getting prompted for your password, try resetting with crashplan profile reset-pw.
If that doesn't work, delete your credentials file located at ~/.crashplancli or the entry in keychain.
Shell tab completion
To enable shell autocomplete when you hit tab after the first few characters of a command name, do the following:
For Bash, add this to ~/.bashrc:
eval "$(_crashplan_COMPLETE=source_bash crashplan)"
For Zsh, add this to ~/.zshrc:
eval "$(_crashplan_COMPLETE=source_zsh crashplan)"
For Fish, add this to ~/.config/fish/completions/crashplan.fish:
eval (env _crashplan_COMPLETE=source_fish crashplan)
Open a new shell to enable completion. Or run the eval command directly in your current shell to enable it temporarily.
Writing Extensions
The CLI exposes a few helpers for writing custom extension scripts powered by the CLI. Read the user-guide here.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crashplancli-1.0.3.tar.gz.
File metadata
- Download URL: crashplancli-1.0.3.tar.gz
- Upload date:
- Size: 70.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
977b75c8a717708f9f44012abda75c4fc6430d1bec9f845ee4be1e0aafe167bc
|
|
| MD5 |
48dc879e60f75b78772a998ddd668f62
|
|
| BLAKE2b-256 |
4e7eda0b7e9d1708274d6fe1baf38a466405c3d105d9adb3485937b7490c13c1
|
File details
Details for the file crashplancli-1.0.3-py3-none-any.whl.
File metadata
- Download URL: crashplancli-1.0.3-py3-none-any.whl
- Upload date:
- Size: 58.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a47ebcae90651585843702d6fd2b3c77b44503e7bea5ebd22c14efc7066da2c0
|
|
| MD5 |
c7ac2a28e1ac7f10ce3e0fc6826bff96
|
|
| BLAKE2b-256 |
a9d2ef4aeb1efad680f15c7089559c07d871627b7d8b5dd7b0945aee395faaa6
|