Skip to content

Rclone config create automation for google drive #2644

@zenjabba

Description

@zenjabba

rclone config create doesn't allow for fully automated configuration (excluding the goole api auth which the user needs to log into the correct google drive account).

Currently this is what rclone currently presents with the following commandline

rclone config create sourcedrive drive --config=test-rclone.conf --drive-client-id=X --drive-client-secret=X

2018/10/12 04:30:52 NOTICE: Config file "test-rclone.conf" not found - using defaults Remote config If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth Log in and authorize rclone for access Waiting for code...

What I would like to see is with the following commandline

# rclone config create sourcedrive drive --config=test-rclone.conf --drive-client-id=X --drive-client-secret=X --headless-setup and it presents this following screen

go to the following link: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=930690570454-ra711ct2peggpt0g98h09l56m0qt99td.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=1c9a152ad22e7f5db484662e16130543
Log in and authorize rclone for access
Enter verification code>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions