# How can I use Duplicati on Linux to back up to Google Drive?

**URL:** https://forum.duplicati.com/t/how-can-i-use-duplicati-on-linux-to-back-up-to-google-drive/14935
**Category:** Support
**Created:** [September 6, 2022, 5:44am UTC](https://forum.duplicati.com/t/how-can-i-use-duplicati-on-linux-to-back-up-to-google-drive/14935 "2022-09-06T05:44:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Thrasherop](https://forum.duplicati.com/user_avatar/forum.duplicati.com/thrasherop/32/7417_2.png) [@Thrasherop](https://forum.duplicati.com/u/Thrasherop)
#### Post date: [September 6, 2022, 5:44am UTC](https://forum.duplicati.com/t/how-can-i-use-duplicati-on-linux-to-back-up-to-google-drive/14935/1 "2022-09-06T05:44:06Z")

</div>

I’m using Ubuntu. Duplicati is enticing, but I need to be able to use it to remote backup to Google drive. The guide [here](https://forum.duplicati.com/t/installing-duplicati-on-linux-ubuntu-linuxlite/743) shows how to configure it to backup, but it doesn’t say how to configure remote backup via command line.

While I’m here, I’m also wondering about how to configure it to only backup certain directorys?

Thanks for your time, yall!

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [September 6, 2022, 9:51pm UTC](https://forum.duplicati.com/t/how-can-i-use-duplicati-on-linux-to-back-up-to-google-drive/14935/2 "2022-09-06T21:51:27Z")

</div>

Welcome to the forum @Thrasherop

> [@Thrasherop](#):
>
> via command line

That’s harder than GUI (you sure you want it that way?), but there’s some help in the manual.

[Using Duplicati from the Command Line](https://duplicati.readthedocs.io/en/latest/04-using-duplicati-from-the-command-line/)  
[The BACKUP command](https://duplicati.readthedocs.io/en/latest/04-using-duplicati-from-the-command-line/#the-backup-command)

> `Duplicati.CommandLine.exe backup <storage-URL> "<source-path>" [<options>]`

> Multiple source paths can be specified if they are separated by a space.

> [@Thrasherop](#):
>
> configure remote backup

It’s not configured in the same sense that GUI is, with stored configuration. It’s all command line.  
You also have to pick which options you need. Easier to start GUI and [Export As Command-line](https://duplicati.readthedocs.io/en/latest/03-using-the-graphical-user-interface/#exporting-a-backup-job-configuration).  
If for some reason you want a less cluttered command line, you can use [parameters-file](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#parameters-file) instead.

[Google Drive](https://duplicati.readthedocs.io/en/latest/05-storage-providers/#google-drive) is going to need an AuthID obtained manually. Obtain it once and keep on using it.  
“Google Drive (limited) login” is the one to use, as Google has intentions to kill off the full access.  
One key aspect of a limited is that Duplicati only sees what it makes, so I hope it offers to create.  
In GUI, the Test connection button can do that. I’m not quite sure what the interaction is with CLI.
