We use Antdeck paltform to do mysql data archiving jobs. This platform was developed by ruzuojun . He is also the author of  Lepus 

Read this pdf  Antdeck , we use TiDB as secondary storage .