Repository navigation
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
About: ====== Gmail Backup allows to backup and restore the content of your Gmail account. It uses the IMAP protocol to fetch and store your messages. It can also be used to migrate your messages between two accounts, for example between your private inbox and the Google Apps acount. This project contains the open sourced code of Gmail Backup (hosted at www.gmail-backup.com). Status (2026): ============== This fork has been ported to Python 3 (tested with 3.11 - 3.14) and works with the current Gmail IMAP service. Python 2 is no longer supported. Google no longer accepts your normal account password over IMAP. You need to: 1. Enable IMAP in Gmail: Settings -> See all settings -> Forwarding and POP/IMAP -> Enable IMAP. 2. Turn on 2-Step Verification for your Google account: https://myaccount.google.com/signinoptions/twosv 3. Create an App Password: https://myaccount.google.com/apppasswords and use it instead of your normal password. Usage: ====== The command line version needs only Python 3 (no extra packages): ./gmail-backup.sh backup <dir> you@gmail.com # asks for password ./gmail-backup.sh backup <dir> you@gmail.com --stamp # incremental ./gmail-backup.sh restore <dir> you@gmail.com ./gmail-backup.sh list you@gmail.com ./gmail-backup.sh --help The password can also be given as an argument after the e-mail address or in the GMAIL_BACKUP_PASSWORD environment variable. Use a name ending with .zip instead of <dir> to store the backup in a ZIP archive. The GUI needs wxPython 4 (Phoenix): python3 gmail-backup-gui.py Nix / Lix: ========== nix run . # command line version nix run .#gui # GUI (wxPython) nix build .#gmail-backup # or .#gmail-backup-gui nix develop # shell with python3 + wxPython The flake needs the "nix-command" and "flakes" experimental features. Authors: ======== Jan Svec <honza.svec@gmail.com> Filip Jurčíček <filip.jurcicek@gmail.com> Homepage: ========= The original Google Code project (http://code.google.com/p/gmail-backup-com/) no longer exists. This is a fork of https://github.com/theringe/gmail-backup-com-alter License: ======== Copyright © 2008, 2009, 2010 Jan Svec <honza.svec@gmail.com> and Filip Jurcicek <filip.jurcicek@gmail.com> Gmail Backup is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Gmail Backup is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Gmail Backup. If not, see <http://www.gnu.org/licenses/ See LICENSE file for license details