cracksilver Posted November 28, 2018 Share Posted November 28, 2018 Hi forum At my very last step to my perfect server i stock with the following. Installed Rclone beta with the very good video from spaceinvaders. Did everything like he has done to mount google drive in the folder /mnt/disks/google-drive. Set the smb extra lines, mount and unmountscripts like in the descreption below the video Now I can see the share "google-drive" in the finder on my macbook. Actually fine so far. But it is unbelievable slow and stocks allways again and again. I´m not shure it is the right way. Do I have to set something like a sync command in the config or custom script to make shure there is a local copy? My goal is tho sync two ways from google drive to in a folder in unraid. Share this folder and connct every user/machine to this folder. Tried the half night to figuered out how it works - unfortunately unsuccessful. thanks for any advice that goes in the right direction. cracksilver Quote Link to comment
cracksilver Posted November 28, 2018 Author Share Posted November 28, 2018 Or is ther another way to reach the goal sync local folder exactly with google drive? I'm open to any solution, at least it works proberly. The searching in forums and google looks like there are many people want's that and have the same problems. thank you cracksilver Quote Link to comment
DZMM Posted November 28, 2018 Share Posted November 28, 2018 what kind of files are you storing in the mount? Files, media? Quote Link to comment
cracksilver Posted November 28, 2018 Author Share Posted November 28, 2018 Hi I have all kind of data there. Photos, pdf, word docs, mp3, but no videos. Quote Link to comment
DZMM Posted November 28, 2018 Share Posted November 28, 2018 I use a rclone vfs mount to stream files including 4k files absolutely fine with lots of plex activity, so I guess it will work fine for smaller files. Try: rclone mount --rc --allow-other --buffer-size 1G --dir-cache-time 72h --drive-chunk-size 256M --fast-list --log-level INFO --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit off YOUR_REMOTE: /mnt/user/mount_path rclone rc --timeout=1h vfs/refresh recursive=true Taken from If you're uploading a lot of files direct via the mount try a cache mount https://rclone.org/cache/ Quote Link to comment
cracksilver Posted November 28, 2018 Author Share Posted November 28, 2018 thx for this input. Just tried with new mount code after a complete reboot. Same issue again. It takes at least 3-5 min till the contest is visible in finder... Is it usefull for you look at my config? Quote Link to comment
DZMM Posted November 28, 2018 Share Posted November 28, 2018 Sure, I'll have a look Quote Link to comment
cracksilver Posted November 28, 2018 Author Share Posted November 28, 2018 thx for that rclone config: [google-drive] type = drive scope = drive chunk_size = 8M token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"Bearer","refresh_token":"1/xxxxxxxxxxxxxxxxxxxxxxxxxxx","expiry":"2018-11-28T16:15:57.072128273+01:00"} rclone mount script: rclone mount --rc --allow-other --buffer-size 1G --dir-cache-time 72h --drive-chunk-size 256M --fast-list --log-level INFO --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit off google-drive: /mnt/disks/google-drive & rclone rc --timeout=1h vfs/refresh recursive=true rclone unmount script: fusermount -u /mnt/disks/google-drive tower-diagnostics-20181128-1609.zip Quote Link to comment
DZMM Posted November 28, 2018 Share Posted November 28, 2018 Try making your own client_id rather than using rclone's - it could be why you are slow https://rclone.org/drive/#making-your-own-client-id Quote Link to comment
cracksilver Posted November 28, 2018 Author Share Posted November 28, 2018 thank you. Yes that could be. I didn't know that. Try this later and let you know. Quote Link to comment
cracksilver Posted November 28, 2018 Author Share Posted November 28, 2018 hi DZMM Did the procedure with own client-id. Created new rclobe config. Same issue. Actually worse than before, cant't see any files in share. Ends up in error 8058. is there any other solution to make two-way sync with google drive? This one it just doesn't work for me... cracksilver Quote Link to comment
DZMM Posted November 28, 2018 Share Posted November 28, 2018 You could try a cache mount, but I don't think that will help and I think the problem lies elsewhere e.g. your mac or your network. I'd recommend posting some logs over on the rclone forum as something odd is going on. Quote Link to comment
cracksilver Posted November 29, 2018 Author Share Posted November 29, 2018 also with cache mount it goes not faster. The network breaks down at the moment i click on google-drive share. I tried everything out last night and during this day. I gave up and go another way. Install a light debian in VM and run insync inside as soon there is sadly no docker for it. I just have to figuered out how to mount a user share directly in to the vm. Are there any thougts? Thank you again Quote Link to comment
JonathanM Posted November 30, 2018 Share Posted November 30, 2018 Edit the debian VM's /etc/fstab file and add the following line //unraidservername/unraidsharename /vmmountpoint cifs file_mode=0777,dir_mode=0777,_netdev,username=unraiduser,password=unraiduserpassword,uid=1000,gid=1000 0 0 Make sure the /vmmountpoint folder, whatever and wherever you choose, has appropriate permissions. Quote Link to comment
cracksilver Posted November 30, 2018 Author Share Posted November 30, 2018 Thank you jonathanm Perfect. It is syncing now with Insync on a Debian VM to my usershare in unRaid. By the way, insync works really fast and realtime, like the native google sync tool. thx everybody for helping. cracksilver Quote Link to comment
cracksilver Posted December 3, 2018 Author Share Posted December 3, 2018 Strange things happen here. There was a post where somebody asked for single steps.... now I want to answer, but the post is gone... One thing I can say after testing the two-way-sync with isync tool. It has a powerful delay when synchronizing. Sometimes it goes after a change half a day until synchronized. Sometimes I have to trigger it manually. of course this is not the way I like it. I have to look at rclone again... Current status: I have 2 directories which I want to synchronize. One is in google drive and one on a share on the server. Both have exactly the same content. Is it possible with rclone or does the target directory have to be empty for rclone? thx cracksilver Quote Link to comment
LintHart Posted September 1, 2019 Share Posted September 1, 2019 On 12/4/2018 at 5:14 AM, cracksilver said: Strange things happen here. There was a post where somebody asked for single steps.... now I want to answer, but the post is gone... One thing I can say after testing the two-way-sync with isync tool. It has a powerful delay when synchronizing. Sometimes it goes after a change half a day until synchronized. Sometimes I have to trigger it manually. of course this is not the way I like it. I have to look at rclone again... Current status: I have 2 directories which I want to synchronize. One is in google drive and one on a share on the server. Both have exactly the same content. Is it possible with rclone or does the target directory have to be empty for rclone? thx cracksilver Hey Quicksilver, did you ever get this sorted? Hoping for a way to set up proper 2 way syncing to google drive in my future build without running essentially a dedicated VM to do it. Quote Link to comment
DZMM Posted September 1, 2019 Share Posted September 1, 2019 1 hour ago, LintHart said: Hey Quicksilver, did you ever get this sorted? Hoping for a way to set up proper 2 way syncing to google drive in my future build without running essentially a dedicated VM to do it. rclone sync will do the job and you can run the job on a cron schedule using Custom User Scripts Quote Link to comment
cracksilver Posted November 14, 2019 Author Share Posted November 14, 2019 Sorry DZMM for the late reply. I've never realy get out of the problems with rclone and stopped looking at this issue. Go another way now. Away from google. Want to move all to nextcloud as a docker on unraid. Get a serverplace with public IP in a friends company. So this would be the solution with data. As far as data's concerned, that's not a problem i think. With the mails it becomes more difficult. There I am still looking for a solution with various mail clients which I am currently trying out. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.