I believe Insync can resume from an existing folder. I do not want to experiment with my whole account. But wanted to know if it would be safe for me to copy larger files that I already have on my PC to the folder being synced by Insync?
Basically, I am shifting my Google Drive local copy from my PC to my Pi. And right now, Pi has been downloading the data from the cloud. I was wondering if I could drop the larger files from my PC to the relevant folder on the Pi, would it just accept it after comparing the checksum (or whatever) or would consider it a duplicate and upload it?
Cheers.
PS: My PC’s version is managed by the Google Drive’s official client.
After I posted the query above… Something strange happened. Insync just stopped syncing. It has done around 54GB out of around 120GB. I have waited for around 6 hours but it has not restarted syncing. I have tried pausing-resuming, exiting app and restarting. Get Status command shows SHARE. What could be the problem?
@Sushubh: What is the output of the get_actions_required command? Also please try toggling the unsynced files in the selective sync interface. You can show the selective sync interface for your account with manage_selective_sync <your email>.
Nothing has been downloaded yet. ifstat shows no major activity. This folder has around 40,000 files so maybe it’s collecting meta data right now. Would update if there is any progress.
PS: Can I just copy files from my local Google Drive folder to fasten the process? Would Insync detect existing files and resume from there? Or would it assume them to be new files and treat them separately, uploading these as new and downloading the existing one from the cloud? This is how Google Drive official app behave on Windows.
@Sushubh: Yes, that should be supported by Insync. When you copy the files to your Insync folder please ensure that the corresponding entries in the selective sync interface is checked, otherwise duplicates will be uploaded.
I am syncing the entire account so selective sync is not applicable in my case right?
I moved all the local files to the folder on the Pi which was causing issues. It is skipping most of them but uploading around 5-10%. I suppose this is better than downloading 100% of them…
I am on a 3mbps/0.5mbps plan so a nuisance in any case. Cheers.
@Sushubh: Yes, if you are syncing the entire account then you didn’t need to change your selective sync settings. The slow upload speed is caused by Insync limiting transfers to only 2 simultaneous ones only. We’re still working on this, apologies for the trouble.
I moved all the files from my desktop folder to the PI folder. Insync on Pi was able to recognize around 80% of the files. It uploaded the rest. Which were then downloaded by the official Google Drive client on my PC. I checked a few files and could not notice any change in them on Google Drive online. The date was same. The content was same. Have no idea why Insync decided that they were newer copies and Google Drive basically showed these files as edited. No way to find out if any files were overwritten. Should not have happened because the file names were unique in any case. Little I can do about that now
2 file syncing is not an issue in my case as I am on a 4mbps/0.5mbps plan so Insync is able to saturate my account quite easily.
Right now, both Insync on Pi and Google Drive on my PC are supposedly fully synced as there is no activity happening. Any new file I add to either of the folder is visible on the other in a few minutes. So, it appears to be all set.
Now considering removing my desktop’s installation and switching to Bittorrent Sync for keeping the few folders that I need accessible on my PC through the Pi.
Just noticed something that seems like an issue. I ran a directory comparison to see if files in both the folders are same. Noticing that a lot of files are not.
Both the folders are properly synced as per Google Drive and Insync. But the file names and corresponding sizes are exchanged.
@Sushubh: Apologies for the trouble. In your Drive account are there multiple files with the same name? Take _DSC6891.jpg for example. _DSC6891.jpg is the same on both folders but _DSC6891 (1).jpg and _DSC6891 (2).jpg are exchanged. When Insync downloads files with the same name it randomly assigns a numeric suffix to each to distinguish them. In this case it was probably exchanged.
So basically, no files were overwritten and this is just for the local storage and Insync has meta data connecting individual files to their online versions? I guess that makes sense. I just test and Google Drive does allow same name files in the same folder.