This is a Moleculer-based microservices project. Created to do simple backups of folders and postgres databases.
Clone the repository
git clone
cd backup-microservice
Install dependencies
npm install
Copy the example config file
cp backup-config-example.json backup-config.json
Edit backup-config.json
and define your apps directories and databases to backup.
Currently, the service does the backup every day at 2:00 AM
Run the service
npm run dev
In production, you can use pm2
with the command
pm2 start npm --name "backup" -- run "start"
(pm2 list
to see the running services and pm2 logs
to see applications logs)