-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Google Backup | ||
|
||
This module automatically downloads your Google Mail, Contacts & Calendar to separate files. It'll sync only new Mails, Contacts & Events. | ||
|
||
This tool will output the following directory structue: | ||
|
||
``` | ||
. | ||
├── contacts/ | ||
│ └── *.vcf | ||
├── calendar/ | ||
│ └── *.ical | ||
└── mail/ | ||
├── received/ | ||
│ └── *.eml | ||
└── sent/ | ||
└── *.eml | ||
``` | ||
|
||
## Why? | ||
|
||
Google makes great services, but there are many horror stories of people locked out of their accounts. So be safe, and keep your data backed up! | ||
|
||
## Usage | ||
|
||
### 1. Create a Google App Password | ||
|
||
Create a Google App Password at [https://myaccount.google.com/apppasswords](https://myaccount.google.com/apppasswords). | ||
|
||
### 2. Run | ||
|
||
```bash | ||
$ npx -y google-backup --username "[email protected]" --password "abcd efgh ijkl mnop" --filepath "~/Backups/Google/" | ||
``` | ||
|
||
> Hint: You can schedule this in a cronjob for automated backups. |