Actions2
- Backup Actions
Overview
This node operation, Restore Credentials under the Backup resource, is designed to restore previously backed-up credential data into the system. It takes binary input data representing the backup and processes it to reinstate credentials. This is particularly useful in scenarios such as migrating credentials between environments, recovering from data loss, or synchronizing credentials across multiple instances.
Practical examples include:
- Restoring API keys and authentication tokens after a system reinstall.
- Migrating user credentials from a development environment to production.
- Recovering credentials after accidental deletion or corruption.
Properties
| Name | Meaning |
|---|---|
| Input Binary Field | The name of the binary input field that contains the backup data to be restored. Default is "data". This field must contain the binary backup file holding the credentials. |
Output
The node outputs the restored credential data in the json output field under the key data. Additionally, it provides the same data in binary form under the binary property named as per the input (default "data"). This allows downstream nodes to access the restored credentials either as JSON or binary data for further processing or verification.
Dependencies
- Requires an API key credential or appropriate authentication configured in n8n to interact with the internal credential storage system.
- Depends on the presence of valid binary backup data provided through the specified input binary field.
- Uses internal methods to read and write credential data securely.
Troubleshooting
Common Issues:
- Providing invalid or corrupted backup data will cause the restore process to fail.
- Incorrectly specifying the input binary field name may result in no data being found.
- Insufficient permissions or missing API authentication can prevent successful restoration.
Error Messages:
- Errors related to "invalid backup data" indicate the binary input does not contain proper backup format.
- Authentication errors suggest missing or incorrect API credentials.
- "No data found in input binary field" means the specified field does not exist or is empty.
Resolutions:
- Verify the backup file integrity before using it as input.
- Ensure the input binary field name matches exactly the field containing the backup.
- Confirm that the node has access to required API authentication credentials.
- Check logs for detailed error messages and stack traces.
Links and References
- n8n Documentation - Working with Credentials
- n8n Community Forum
- General best practices for backing up and restoring credentials securely.