Back up an Actual budget using a bash script
mainYou can use the provided budget_backup.sh script to back up your Actual budget to a specific destination.
To use the script, you must update the following variables within budget_backup.sh:
ACTUAL_BUDGET_URL: The URL of your Actual server.ACTUAL_BUDGET_API_KEY: Your API key.ACTUAL_BUDGET_SYNC_ID_LIST: A list of sync IDs for the budgets you wish to back up.
After configuring the variables, grant execution permissions and run the script. You can schedule this via cron (Linux/macOS) or Task Scheduler (Windows) for automated daily backups.
# Update these in budget_backup.sh
ACTUAL_BUDGET_URL="..."
ACTUAL_BUDGET_API_KEY="..."
ACTUAL_BUDGET_SYNC_ID_LIST=("...")
# Run the script
chmod +x budget_backup.sh
./budget_backup.sh