All Templates / Automation
MySql backups to Cloudinary
Node app to backup MySQL database and upload it to Cloudinary.
mysqlCloudinaryBackups
danielthames360/mysqlCloudinaryBackups
Just deployed
Node.js application that performs scheduled backups of your MySQL database and uploads them to Cloudinary for secure storage. It utilizes a cron job to automate the backup process based on your desired frequency. The backups are saved in SQL format and can be easily restored if needed.
const job = new CronJob(env.CRON_SCHEDULE.DAILY, async () => {
// ...
});
The application will automatically perform scheduled backups of your database and upload them to Cloudinary. You can adjust the backup frequency by modifying the configuration in index.ts. If you want to run an immediate backup, you can uncomment the line void backup(); in index.ts before starting the cron job.
The folder for backups will be automatically created with the following name: databaseBackups/{currentYear}/Month-{currentMonth}
Template Content
mysqlCloudinaryBackups
danielthames360/mysqlCloudinaryBackupsAPI_KEY
Get it from "Product Environment Credentials" on Cloudinary Dashboard
API_SECRET
Get it from "Product Environment Credentials" on Cloudinary Dashboard
CLOUD_NAME
Get it from "Product Environment Credentials" on Cloudinary Dashboard
MYSQL_HOST
Mysql -> host
MYSQL_PORT
Mysql -> port
MYSQL_DATABASE
Mysql -> database
MYSQL_PASSWORD
Mysql -> password
MYSQL_USERNAME
Mysql -> username
Details
My Projects
Created on Jul 2, 2023
24 total projects
9 active projects
100% success on recent deploys
TypeScript
Automation
More templates in this category
Postgres S3 backups
A simple NodeJS app to back up your PostgreSQL database to S3 via a cron
Railway Templates
822
Tier
A single tool to configure,orchestrate and manage your entire pricing stack
beuz's Projects
17
Trigger.dev
Open source background jobs framework for TypeScript.
Jan Henning's Projects
123