Backup file to user google drive


I store all tinydb data in a .josn file, but i want to export that file in users Google drive as a backup and retrive again in future.
Currently i store in firebase but due to security reason or user data protection i decided to ignore this and store in user side.
Please help