A simple NodeJS script to backup a folder or MySQL database via SFTP and/or Email. It only accepts a SFTP configuration and a Email configuration, but you can use both at the same time.
You can use it to backup multiple folders and/or databases. Each one can have differents destinations (folders or email addresses).
Multiple configurations for SFTP and Email are expected to be available soon.
- Install dependencies:
npm install
- Duplicate the
config-sample.ts
file and rename it toconfig.ts
. - Configure the
config.ts
file. - Build:
npm run build
- Run the script from the build folder:
- With NodeJS:
node src/index.js
- With PM2:
pm2 start src/index.js --name "backupper"
- With NodeJS:
- Enjoy!
@daviddionis