I had a look at this package today, and it seem to be useful for keeping a 
local and
remote Google drive storage in sync.

A draft package is available from the Ubuntu ppa.  I downloaded
https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8/+sourcefiles/grive2/0.5.1-1+git20180819~webupd8~bionic0/grive2_0.5.1-1+git20180819~webupd8~bionic0.dsc
to test the package.

The ppa package fail to start automatically because it only provide systemd 
user services.
I wrote a simple ~/.config/autostart/grive.desktop file to get it going when 
the user log
in:

[Desktop Entry]
Name=Google drive autosync
Type=Application
Exec=/home/user/bin/grive-sync

The script look like this:

#!/bin/sh
set -e
cd ~/
while true; do
    if ! xhost >/dev/null 2>&1 ; then
        echo "no DISPLAY, exiting $0"
        exit 1
    fi
    if [ ! -e /run/user/1000/grive-sync.sh_googledrive ] ; then
        /usr/lib/grive/grive-sync.sh sync googledrive
    fi
    /usr/lib/grive/grive-sync.sh listen googledrive
    sleep 300
done

If you want to maintain it in Debian, I would be happy to sponsor your upload.  
See
<URL: http://www.hungry.com/~pere/debian-sponsoring.html > for my preferences.
-- 
Happy hacking
Petter Reinholdtsen

Reply via email to