EC Backup (easy-backup)
If you need a system easy to use that provides you a periodic (or at specific time) backup. This is your package.
Requirements
Right now this package is tested only on Ubuntu 20.04 LTS and you need to have the following packages in order to work:
Config
Configuration is split in 3 steps:
- Backup engine: what kind of data source we will backup
mongo
: backup your database from MongoDBfile
: choose files from your system to backup
- Notificator: how do you want to be notified
telegram
: uses a channel and a bot to notify all your backupsconsole
: just print to console
- Uploader: where we put your fresh backup
gcp
: Google Cloud Storagefile
: drop it somewhere in your system (soon)
Skeleton
Use following examples (backup engines, notificator, uploader) to make your own config file, here is the skeleton:
{
"cron": "* * * * * *",
"outputDir": "/tmp",
"engine": { ... }
"notificator": { ... }
"uploader": { ... }
}
Backup engines
mongo
{
"type": "mongo",
"databaseHost": "",
"databasePort": 27017,
"databaseName": "",
"username": ""
"password": ""
}
file
{
"type": "file",
"path": ""
}
Notificator
Telegram
{
"type": "telegram",
"chatId": "",
"botToken": ""
}
Note: You can obtain the chatId from this URL: https://api.telegram.org/bot/getUpdates. Substitute <putYourToken>
with your bot token
Console
{
"type": "console"
}
Uploader
Google Cloud Storage
{
"type": "gcp",
"storageKeyPath": "",
"backupsFolderPath": "",
"bucketName": "",
"projectId": ""
}