Knowledge base
1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!
Import data to kDrive from Google Drive
This guide details how to import data from Google Drive using rClone to kDrive Infomaniak.
✘ UNAVAILABLE with
kSuite Free / kSuite Standard
my kSuite / my kSuite+ (ik.me, etik.com, ikmail.com)
⚠ WARNING ⚠ Infomaniak guarantees that its services comply with standard protocols (IMAP, S3, etc.), but
Infomaniak garantit la conformité de ses services aux protocoles standards (IMAP, S3, etc.) mais does not provide additional support for external services or software, as their configuration may change depending on the provider or publisher(see:
1. Configure rclone for drive access
Install rclone on your computer
There is a version of rclone with a graphical interface (GUI), but it is also possible to do this using the command line (CLI):
- Install rclone from a
Terminal-type application on your device by typing the following command:sudo -v ; curl https://rclone.org/install.sh | sudo bash - Enter the password for your session on your computer to begin the installation:

- If necessary, consult the official installation guide.
Configuring the remote disk (Google Drive) in rclone
- Once rclone is installed, enter the command
rclone config.- If necessary, consult the official configuration guide.
- Then, choose to configure a new remote import by answering
nforNew remote. - Name the remote disk, for example
gdrive:
- Then, choose the type of disk to import by entering
drive, which corresponds to Google Drive among the options provided.
You will then need to authorize the connection to Google Drive from a web browser.
By default, rclone uses a client ID shared among all users, which may result in request limitations imposed by Google. It is strongly recommended to use your own client ID to avoid these restrictions.
- Access the Google API Console with your Google account.
- Create or select a project.
- Enable the Google Drive API by clicking the "Enable APIs and services" button/link.
- Search for the keyword
Driveand click onGoogle Drive API:
- Click the Activate button.
- Click Credentials in the left-hand menu (and not on a similar button).
- Click on Configure OAuth consent screen (if you haven't already):
- Enter a name, for example
rclone. - Select "External" (or "Internal" if you are a Google Workspace user).
- Under “Data access”, add the necessary scopes:
https://www.googleapis.com/auth/docs,https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/drive.metadata.readonly
- Save.
- Add your email account as a test user under "Audience".
- Go back to the "Google Auth Platform" section.
- Enter a name, for example
- Create OAuth credentials:
- Click on "Create credentials / OAuth client ID".
- Choose "Desktop app" and leave the default name, then click the Create button.
- Keep the displayed
client IDandclient secret code.
- If "External" was selected in step 7 above, go back to “Audience” in the left-hand menu and click on “Publish the application”.
Due to the "enhanced security" recently introduced by Google, you are theoretically supposed to "submit your application for verification" and wait several weeks for their response.
In practice, you can directly use the client ID and client secret with rclone (see the rest of the guide). The only consequence will be a very intimidating confirmation screen when you connect via your browser to allow rclone to obtain its token ID. However, since this only occurs during the initial configuration of the remote storage, it is not a major problem.
It is also possible to leave the application in "Test" mode, but in this case, any authorization will expire after a week, which may be inconvenient to renew frequently. If a short validity period is not a problem for your use case, then keeping the application in test mode may be sufficient.
Go back to rclone in the terminal:
- Tell rclone the
client_idby copying and pasting theClient IDobtained in step 8 above, and do the same for the secret phrase. - Next, select
scope#1:
- Press the “
Enter” key to leave theservice_account_filequestion blank. - Answer “No”
nto the question about “advanced configuration”. - Answer “Yes”
yto the question about connecting via a web browser:
- An Internet page opens in your web browser, allowing you to connect to Google and authorize the application you created in step 9 above.
- Once the permissions have been granted, you should receive the following message:

- In the terminal, answer “No”
nto the question about “Shared Drive (Team Drive)”. - Answer “Yes”
yto the last question:
Configuring the destination disk (kDrive) in rclone
You can directly modify the rclone configuration file by pasting your kDrive configuration into it, for example:
[kdrive]
type = webdav
url = {{URL_19}}
vendor = other
user = user@email.com
pass = PASSWORD_HERE_OR_APP_PASSWORD_IF_2FAHere's how to proceed step by step, just like with the previous configuration:
- Still on the terminal, enter
nfor a new disk configuration and enter the namekDriveto identify your destination disk:
- Next, choose the type of disk to import by entering
webdav, which corresponds to a WebDAV configuration among the options provided. - Enter the following information:
url= the direct access to kDrive (refer to this other guide regarding the kDrive ID for the connection URL)vendor= rclone (option no. 6)user= the email address used to log in to your Infomaniak user account
- Answer “Yes”
yto the password question, then enter the password:- application password if two-factor authentication is enabled or your Infomaniak user account password if you have not enabled 2FA.
- Leave the
bearer_tokenfield blank and answer “No”nto the question about “advanced configuration”. - Answer “Yes”
yto the last question, and your 2 disks will be displayed:
2. Copy data from Google Drive to kDrive
kDrive supports rclone's streaming upload via WebDAV with automatic error handling if the limit is exceeded without prior size specification via Content-Length.
Prerequisites
- Consult the available options in the official guide before starting an import, including these important commands:
--drive-skip-shortcutsto avoid infinite import loops--drive-shared-with-meto retrieve shared files--drive-acknowledge-abuseto force the download of files blocked by Google
Example command to start copying your Google Drive to the root of your kDrive:
sudo rclone copy gdrive: kDrive:This will immediately start copying your folders, subfolders, and content from Google Drive to the personal folder of your Infomaniak kDrive!
Google Docs files, such as Gdocs, Sheets, and Slides, are converted to Office formats like .docx and .xlsx, and can be read directly in kDrive.
Link to this FAQ: https://faq.infomaniak.com/2408
Has this FAQ been helpful?