gmail-backup
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

gmail-backup

oclif Version Docker Image Version (latest semver) License

Tool for backing up all your gmail messages

It's available as helm chart with cronjob ready to use as truenas scale app in ugly-charts catalog

Configuration

Env variable Description Default value
SECRETS_PATH Path to store sensitive credentials ~/.gmail-backup/secrets
SNAPSHOTS_PATH Path to store all messages ~/.gmail-backup/snapshots

Setup oauth credentials

  1. Create project and OAuth 2.0 Client ID for Desktop client at https://console.cloud.google.com/apis/credentials. Use download JSON button, then save file in secrets directory as client_secret.json
  2. Enable gmail api at https://console.cloud.google.com/apis/library/gmail.googleapis.com
  3. Use gmail-backup oauth to connect gmail-backup with your google account

Usage

$ npm install -g gmail-backup
$ gmail-backup COMMAND
running command...
$ gmail-backup (--version)
gmail-backup/0.2.2 linux-x64 node-v18.14.1
$ gmail-backup --help [COMMAND]
USAGE
  $ gmail-backup COMMAND
...

Commands

gmail-backup help [COMMAND]

Display help for gmail-backup.

USAGE
  $ gmail-backup help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for gmail-backup.

See code: @oclif/plugin-help

gmail-backup oauth

Setup your google account with oauth. It supports multiple accounts.

USAGE
  $ gmail-backup oauth

DESCRIPTION
  Setup your google account with oauth. It supports multiple accounts.

See code: src/commands/oauth/index.ts

gmail-backup snapshot create

Creates new incremental snapshot in configured directory. It's meant to be run periodically (for example with cron).

USAGE
  $ gmail-backup snapshot create

DESCRIPTION
  Creates new incremental snapshot in configured directory. It's meant to be run periodically (for example with cron).

Readme

Keywords

Package Sidebar

Install

npm i gmail-backup

Weekly Downloads

10

Version

0.2.2

License

MIT

Unpacked Size

26.8 kB

Total Files

37

Last publish

Collaborators

  • uglydonkey