Automated Python solution to backup Google Sheets from your Google Drive and save them directly to a mapped network drive on Windows.
- ๐ Secure authentication with Google Drive API (OAuth2)
- ๐ Filter and list all Google Sheets files
- โฌ๏ธ Download as Excel (
.xlsx) or CSV formats - ๐พ Save backups to mapped network drives (e.g.,
Z:\Backups\GoogleSheets) - ๐ Automate using Windows Task Scheduler
git clone https://github.com/PBreno/backup_google_sheets.git
cd backup_google_sheets
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
- Visit the Google Cloud Console.
- Enable the Google Drive API.
- Create OAuth 2.0 credentials (
Desktop app). - Download the
credentials.jsonfile. On the first run,token.jsonwill be generated after you authenticate. `
python src\public\main.py
Feel free to fork the repo, submit issues, or create pull requests!
All contributions are welcome!
Maintained by @PBreno
For any questions, please open an issue.