This project allows you to automatically back up your aiosqlite database to a webhook. It is a simple and efficient solution to ensure your data is always safely stored in external backups.
- Automatic
aiosqlitedatabase backup. - Uploads the backup to a specified webhook URL.
- Simple configuration using a
.envfile.
backup.py: Main script responsible for creating the backup and sending the data to the webhook.example.env: Example configuration file containing the required environment variables.
git clone https://github.com/yourusername/aiosqlite-auto-backup-webhook.gitMake sure Python is installed, then run:
pip install -r requirements.txtRename the example.env file to .env and fill in the required information:
WEBHOOK=https://your-webhook.url- WEBHOOK: The webhook URL where the backup will be uploaded.
Start the backup process:
python backup.pyThe script will compress the database and upload the file to the URL configured in the .env file.
The example.env file demonstrates how to configure the required variables:
WEBHOOK=https://example.com/webhookContributions are welcome! If you have suggestions or encounter any issues, feel free to open an issue or submit a pull request.