LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   [HOWTO] rsync with Google Drive (https://www.linuxquestions.org/questions/linux-networking-3/%5Bhowto%5D-rsync-with-google-drive-4175514120/)

mr_si 02-20-2015 06:23 AM

I may have to resort to that!

My upload so far is 89 GB, but the amount of data is a couple of hundred GB in total, but gsync keeps giving backend errors and crashing out, so I think that's why it's been filling up my root partition.

Thanks,
Si

cento79 07-25-2015 09:28 AM

Exception when refreshing a previously synchronized folder
 
Dear all,
I have installed gsync since a few months and have being using is very successfully from my Mac (synced around 550GB to my Google Drive).
Lately I installed it also in my Ubuntu machine (14.04 LTS) and it seems it is working fine when updating new directories but failed with "ESyncFileAbstractMethod" exception when trying to refresh a previously synced folder.

I debugged the session and here's the stack before it quits:
DEBUG: drive/:524:stat(): Found 'drive://Backup/Fitness/Exhilarate - The Ultimate Zumba Fitness DVD Experience/Activate'
DEBUG: sync/file/remote/:68:getInfo(): Remote mtime: SyncFileInfoDatetime(datetime.datetime(2015, 5, 7, 13, 40, 25, 764000, tzinfo=tzutc()))
DEBUG: sync/:65:_sync(): Defaulting destination directory: 'drive://Backup/Fitness/Exhilarate - The Ultimate Zumba Fitness DVD Experience/Activate'
DEBUG: sync/:120:_sync(): File timestamp mismatch: '/mnt/linkstation/Backup/Fitness/Exhilarate - The Ultimate Zumba Fitness DVD Experience/Activate'
DEBUG: sync/:122:_sync(): * source mtime: 1437473271
DEBUG: sync/:124:_sync(): * destination mtime: 1431006025
DEBUG: sync/:126:_sync(): * delta: datetime.timedelta(74, 73645, 733198)
Fitness/Exhilarate - The Ultimate Zumba Fitness DVD Experience/Activate/
DEBUG: sync/file/:280:_normaliseSource(): type(src) = <class 'libgsync.sync.file.SyncFileInfo'>
DEBUG: sync/file/factory.py:10:create(): SyncFileFactory.create('/mnt/linkstation/Backup/Fitness/Exhilarate - The Ultimate Zumba Fitness DVD Experience/Activate')
DEBUG: sync/file/factory.py:25:create(): Creating SyncFileLocal('/mnt/linkstation/Backup/Fitness/Exhilarate - The Ultimate Zumba Fitness DVD Experience/Activate')
DEBUG: ESyncFileAbstractMethod(): File "/usr/local/lib/python2.7/dist-packages/libgsync/crawler.py", line 150, in run
self._walk(srcpath, self._walkCallback, self._dev)
File "/usr/local/lib/python2.7/dist-packages/libgsync/crawler.py", line 113, in _walk
self._sync(d)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/__init__.py", line 31, in __call__
self._sync(path)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/__init__.py", line 197, in _sync
self.dst.update(dstPath, srcFile)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/file/__init__.py", line 322, in update
self.__updateDir(path, srcObj)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/file/__init__.py", line 231, in __updateDir
self._updateDir(path, src)
File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/file/__init__.py", line 206, in _updateDir
raise ESyncFileAbstractMethod

Error: ESyncFileAbstractMethod()

Has any of you experienced the same behaviour? Any suggestion?

Thx,

L.

P.S.: my wife is a personal trainer, so I had to backup the Zumba collection for her... :-)

DaneM 07-25-2015 04:31 PM

Cento79, I'm glad you've gotten some use out of it!

I don't know if I've run into this particular problem, but I've run into some similar ones. First, make sure you have the Python development libraries, as well as python-pip installed. Then, do:

Code:

(as root)
pip install --upgrade gsync

See if that fixes it. If not, see if there's a bug that mentions one or more of your error messages, here:
https://github.com/iwonbigbro/gsync/issues

Good luck!

--Dane

cento79 08-01-2015 03:08 AM

InsecurePlatform Warning
 
Hello Dane,
I tried doing it but I got the same problem.
I noticed this warming when upgrading:

/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/l...latformwarning.
InsecurePlatformWarning

Do you think there might be a problem in the SSL connection?

I tried to debug it again, but I got stuck at the updateDir part since I haven't really understood where that portion of the script is implemented (in the ./sync/file/__init__.py it seems it's just calling it but I do not see any real code.

Thanks again for your support.

Luigi

Quote:

Originally Posted by DaneM (Post 5396246)
Cento79, I'm glad you've gotten some use out of it!

I don't know if I've run into this particular problem, but I've run into some similar ones. First, make sure you have the Python development libraries, as well as python-pip installed. Then, do:

Code:

(as root)
pip install --upgrade gsync

See if that fixes it. If not, see if there's a bug that mentions one or more of your error messages, here:
https://github.com/iwonbigbro/gsync/issues

Good luck!

--Dane


DaneM 08-01-2015 03:08 PM

I haven't run into that error, before. It looks like it could be a bug or a missing/misconfigured library. I'd search the github bug tracker for gsync or post a new bug there and see if the developers can help track it down.


All times are GMT -5. The time now is 08:47 AM.