Hello, along with say hello. I tell you that I am new to Nextcloud and a few days ago I installed my cloud at home with Ubuntu server and I am trying to synchronize my Google Drive to Next Cloud. I have read that it can be done with Rclone but I have not been able to configure Rclone properly with my Google Drive account.
If you don’t tell us how you tried to set it up and what kind of errors you are getting, it is hard to tell you what is wrong or what to look for.
There is also an app to import data from google via API:
(I have never use it, so I cannot tell you, if it works well with a lot of data)
Hello, thanks for the answer. Google integration is not what I’m looking for because that app performs the migration and what I need is for Google Drive to be an external backup storage for nextcloud.
My problem with rclone is that when it asks me to connect to Google Drive it tells me the following.
Use autoconfig?
- Say Y if not sure
- Say N if you are working on a remote or headless machine
y) Yes (default)
n) No
y/n> y
2024/05/20 20:00:48 NOTICE: If your browser doesn’t open automatically go to the following link: http://127.0.0.1:53682/auth?state=n4MoYa6HygJbFt0BCkq76w
2024/05/20 20:00:48 NOTICE: Log in and authorize rclone for access
2024/05/20 20:00:48 NOTICE: Waiting for code…
Because Ubuntu server does not have a desktop, I copy and paste the link into the browser of the computer where I connect via ssh and it gives me an error that the page does not exist.
This only runs locally on your server. You could use a port forward via ssh:
should give something like:
ssh -L 53682:127.0.0.1:53682 example.com
Other way, you do the same thing on your local machine. Once you are authenticated and you use a token, you copy the token to your server.
Hello, this answer helped me a lot. In this way I managed to synchronize Ubuntu server and Google drive with Rclone. But I can’t get nextcloud to show what I have in google drive. I have realized that the permissions do not correspond. I have tried to assign the www-data user permissions but it won’t let me.
drwxr-xr-x 1 root root 0 may 22 15:38 Gdrive
Hello, first of all, thank you for the help that was very helpful to me.
I managed to synchronize google drive-ubuntu server and nextcloud. I can create, delete and modify files and folders.
The error I had regarding permissions was that I had to create a folder outside the root of /var and before mounting rclone I had to give it www-data permissions and in nextcloud assign it as local external storage.
This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.