grive2 icon indicating copy to clipboard operation
grive2 copied to clipboard

Very long sync time since drive has more content

Open Hhuuuugo opened this issue 6 years ago • 4 comments

I use grive2 0.5.1 on a computer running Fedora 30. I had no problems until, recently, I uploaded about 60.000 files (approximately 1TB) to my google drive. The two folders containing those files are excluded by means of a .griveignore file, and indeed are not synced with my computer. However, from the moment I uploaded them grive2 started taking way much longer to sync. It used to be done in a about ten or fifteen seconds, but now it takes between five and ten minutes, which means I can't sync when I'm done working and want to turn my computer off quickly.

I tried it different ways (including using the "grive -s" option), but the problem always remains. It would seem that grive goes through all the files on my drive, even though I just want to sync a few folders.

Hhuuuugo avatar Sep 08 '19 09:09 Hhuuuugo

I have the same problem, though I don't have as many files, so it "only" takes a little over three minutes. When I run with the -V (verbose) option, I see every single file on my drive scroll by. I only want to sync one single directory. My .griveignore looks like this: * **/* !org !org/

So even though I ignore everything but one single directory, it is still recursing through every directory in my Google Drive and examines every file in every directory and declares them ignored. Even if I run with -s org to have it only sync that one directory, it still goes through all files.

nelsonov avatar Feb 16 '20 08:02 nelsonov

Same bug for me

segatrade avatar Jun 02 '22 06:06 segatrade

Files are filtered on the client side, I think that's the case. So grive2 processes all your files in the listing.

vitalif avatar Jun 03 '22 12:06 vitalif

Files are filtered on the client side, I think that's the case. So grive2 processes all your files in the listing.

Even when I use --dir: grive --path ~/sbsgr2/ --dir /proj/myml/cache/ --dry-run in folder with less than 10 files less 20 MB total size - it takes a lot of time. When I had less files in my google drive - it was faster

segatrade avatar Jun 03 '22 12:06 segatrade