# Is it possible to directly backup gmail with rclone?

**URL:** <https://forum.rclone.org/t/is-it-possible-to-directly-backup-gmail-with-rclone/10612>\
**Category:** Help and Support\
**Created:** [June 25, 2019, 5:40pm UTC](https://forum.rclone.org/t/is-it-possible-to-directly-backup-gmail-with-rclone/10612 "2019-06-25T17:40:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsync](https://forum.rclone.org/user_avatar/forum.rclone.org/rsync/32/9673_2.png) [@rsync](https://forum.rclone.org/u/rsync)\
**Post date:** [June 25, 2019, 5:40pm UTC](https://forum.rclone.org/t/is-it-possible-to-directly-backup-gmail-with-rclone/10612/1 "2019-06-25T17:40:34Z")

</div>

I am not a gmail user but I am very interested in providing a recipe to rsync . net customers that will allow them to back up (and then snapshot/archive/etc.) their gmail accounts to their [rsync.net](http://rsync.net) cloud storage account.

I _think_ that there is not a direct function to fetch gmail contents with rclone - is that correct ?

Is that feature on the roadmap ?

I _also think_ that there is a way to link ones gmail account into ones gdrive (again, bear with me - I am not a gmail user) and then you could download the gmail account, through gdrive, with rclone ... correct ?

Any comments or suggestions appreciated - if we can dial in this recipe we will write the help/howto page on [rsync.net](http://rsync.net) in a general way that is useful to everyone, not just our customers ...

Thanks.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 25, 2019, 9:05pm UTC](https://forum.rclone.org/t/is-it-possible-to-directly-backup-gmail-with-rclone/10612/2 "2019-06-25T21:05:12Z")

</div>

> [@rsync](#):
>
> I _think_ that there is not a direct function to fetch gmail contents with rclone - is that correct ?

That is correct and it isn't something we've thought about before as gmail isn't a general purpose cloud storage system.

If you could get your gmail backing up to your drive then you could certainly access it with rclone but I couldn't see an easy way of doing it.

Using google takeout looks like the best way of backing up gmail

> **[Export All Your Gmail Email in Three Steps](https://www.lifewire.com/how-to-export-your-emails-from-gmail-as-mbox-files-1171881)**
>
> Instructions on how to download messages in your Gmail account into one file ready to download and keep as an archive as flexible and safe mbox files.

I wonder if that can be automated...

Using [https://takeout.google.com](https://takeout.google.com/) you can schedule a backup every 2 months for a year to google drive which would be a start, but not a great backup.

I think takeout is very hard to automate according to what I've been reading.

---

<div class="post-metadata">

**Author:** ![rsync](https://forum.rclone.org/user_avatar/forum.rclone.org/rsync/32/9673_2.png) [@rsync](https://forum.rclone.org/u/rsync)\
**Post date:** [June 26, 2019, 5:31pm UTC](https://forum.rclone.org/t/is-it-possible-to-directly-backup-gmail-with-rclone/10612/3 "2019-06-26T17:31:18Z")

</div>

OK, thank you.

So there is not a good, repeatable (automated) workflow here, but if I understand what you are saying, in a pinch, I could just dump my gmail to google drive, via "google takeout" and then back up all of google drive with rclone, correct ?

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 26, 2019, 7:44pm UTC](https://forum.rclone.org/t/is-it-possible-to-directly-backup-gmail-with-rclone/10612/4 "2019-06-26T19:44:19Z")

</div>

Yes that would work and be a lot better than nothing.

Gmail does have an API so you could back it up like that. There may be a tool to help with that but I couldn't find one.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [September 24, 2019, 7:44pm UTC](https://forum.rclone.org/t/is-it-possible-to-directly-backup-gmail-with-rclone/10612/5 "2019-09-24T19:44:21Z")

</div>

Closed on September 24, 2019, 7:44pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
