By the end of this guide, you’ll have AutoBackupTool installed, connected to your Google Drive, and running your first encrypted backup. The whole process takes about ten minutes, most of which is spent in the Google Cloud Console setting up your OAuth credentials.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Eraiyanbupeterfrancis/AutoBackupTool/llms.txt
Use this file to discover all available pages before exploring further.
Install dependencies
Install the four required packages from This installs:
requirements.txt:pydrive2— Google Drive API wrappercryptography— Fernet symmetric encryptionschedule— job scheduling for daily/weekly backupspython-dotenv— loads configuration frombackup.env
Set up credentials
AutoBackupTool needs two things before it can run: an encryption key and a Google OAuth client.Generate your encryption keyRun Copy the output — you’ll need it in the next step.Create Replace
encrypt.py to generate a new Fernet key and print it to the terminal:backup.envRename backup.env.example to backup.env and fill in your values:YOUR_ENCRYPTION_KEY_HERE with the key you just generated.Add client_secrets.jsonDownload your OAuth client credentials from the Google Cloud Console and place client_secrets.json in the project root. See Google Drive setup for step-by-step instructions on creating the OAuth client.