# decrypt: Decrypt a local encrypted backup file

Source: https://zotonic.com/docs/3017/decrypt-decrypt-a-local-encrypted-backup-file

URI: https://zotonic.com/id/3017

Language: en

Decrypt a local encrypted backup file.

Syntax
------

```text
bin/zotonic decrypt <password> <input_file> [output_file]
```

Requirements and effects
------------------------

Operates on local files through backup\_file\_crypto; it does not restore a site.

The password is a command-line argument and can appear in process listings or shell history. Use an appropriate private environment. Check the resulting output file before a separate restore operation. Errors are printed, so do not assume that exit status alone distinguishes every failure.

Run commands from the Zotonic workspace root. Replace `garden` with your site name where applicable.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/3017?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/3017?language=en>)
