DataX serves as a data synchronization framework between different data sources. Refer doc here
This repository serves purpose of data backup and restore from Alicloud Table store (OTS) to MongoDB instance and vice-versa.
Datax supports reader/writer plugins which can be provided as configuration to run the backup/restore task.
Additionally, there is custom program that performs following tasks before backup job is initialized.
- Delete the backup older than the retention period.
- Rename the last backup to previous day date, in order to keep single point of restore.
Custom Program expects following inputs:
retentionPeriod
- Retention period in Days, default set to7
lastBackup
- Frequency of backup, default set to1
(eg for daily backuplastBackup = 1
)dbhost
- Mongo DB Hostdatabase
- Mongo DB namemongo_user
- Mongo DB usermongo_password
- Mongo DB passwordcollectionName
- Name of the collection to backup
Refer sample setup for more details here
$ docker pull southchinamorningpost/alicloud-datax:1.0