Google drive in Alt-F

976 views
Skip to first unread message

mk360

unread,
Mar 5, 2018, 4:05:13 PM3/5/18
to al...@googlegroups.com
Hi,


Is anyone using Google drive to synchronize files with alt-f? what
client can I use and is available in Alt-F packages? if not it is on
entware-ng or FFP and what is the best option? I never used these
repositories...


Thanks!

mk.

Nicolas Desveaux

unread,
Mar 5, 2018, 4:11:16 PM3/5/18
to al...@googlegroups.com
I'd loove to know

--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.

Chad Baker

unread,
Mar 5, 2018, 11:07:09 PM3/5/18
to Alt-F
Maybe rclone? Will that work with Alt-F?

Nicolas Desveaux

unread,
Mar 6, 2018, 12:39:07 AM3/6/18
to al...@googlegroups.com
Did/will rclone update to use the latest G Drive protocols considering Google drive client is being phased out ?

On Tue, Mar 6, 2018 at 8:07 AM, Chad Baker <o1hit...@gmail.com> wrote:
Maybe rclone? Will that work with Alt-F?

Nicolas Desveaux

unread,
Mar 6, 2018, 12:40:10 AM3/6/18
to al...@googlegroups.com
Nevermind, cursory Googling reveals they support Team Drives which would likely mean they're up to date.

João Cardoso

unread,
Mar 6, 2018, 11:51:50 AM3/6/18
to Alt-F
There is a (command line based) grive2 in entware:

Grive can be considered still beta or pre-beta quality. It simply downloads all the files in your Google Drive into the current directory. After you make some changes to the local files, run grive again and it will upload your changes back to your Google Drive. New files created locally or in Google Drive will be uploaded or downloaded respectively. Deleted files will also be "removed". Currently Grive will NOT destroy any of your files: it will only move the files to a directory named .trash or put them in the Google Drive trash. You can always recover them.

There are a few things that Grive does not do at the moment:

continously wait for changes in file system or in Google Drive to occur and upload. A sync is only performed when you run Grive.
symbolic links support.
support for Google documents.



On Tuesday, 6 March 2018 05:40:10 UTC, Nicolas Desveaux wrote:
Nevermind, cursory Googling reveals they support Team Drives which would likely mean they're up to date.
On Tue, Mar 6, 2018 at 9:39 AM, Nicolas Desveaux wrote:
Did/will rclone update to use the latest G Drive protocols considering Google drive client is being phased out ?

Chad Baker

unread,
Mar 6, 2018, 11:05:53 PM3/6/18
to al...@googlegroups.com

rclone is (command line) and is also available in entware:
I had to update my root SSL certificates but it is working.

Rclone is a command line program to sync files and directories to and from:

Amazon Drive  
Amazon S3  
Backblaze B2  
Box  
Ceph  
DigitalOcean Spaces  
Dreamhost  
Dropbox  
FTP  
Google Cloud Storage  
Google Drive  
HTTP  
Hubic  
Memset Memstore  
Microsoft Azure Blob Storage  
Microsoft OneDrive  
Minio  
Nextloud  
OVH  
Openstack Swift  
Oracle Cloud Storage  
Ownloud  
pCloud  
put.io  
QingStor  
Rackspace Cloud Files  
SFTP  
Wasabi  
WebDAV  
Yandex Disk  
The local filesystem  

Nicolas Desveaux

unread,
Mar 6, 2018, 11:27:08 PM3/6/18
to al...@googlegroups.com
Can you create a wiki type Step by step How-To get it working with Google Drive for example?

Thanks!!

On Wed, Mar 7, 2018 at 8:05 AM, Chad Baker <o1hit...@gmail.com> wrote:

rclone is (command line) as  also available in entware:

Chad Baker

unread,
Mar 7, 2018, 1:05:57 AM3/7/18
to al...@googlegroups.com
This is what I did, don't know if you will need to do the same.

Install entware-ng from Alt-F web interface
Install rclone from Packages>Entware-ng
ssh to box and update SSL Certificates due to error x509 from configuring rclone Link
mkdir -p /etc/ssl/certs/
curl -o /etc/ssl/certs/ca-certificates.crt https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt
ntpclient -s -h pool.ntp.org
Configure rclone for Google Drive Link (I elected to set up my own Client ID Link)
Test to see if could see my files 

List directories in top level of your drive

rclone lsd remote:
remote: is the name you gave the drive when you configured rclone. You must have the : at the end

set up a test copy  /home/source is the location of the folder or file you want to transfer.  remote:backup is the google drive folder called backup, if there are any spaces it would be remote:"backup folder"  you can set this up to go the other way as well.
rclone copy /home/source remote:backup

My last step was to set up a cron job to do this every week from the Alt-f web interface Services>System> cron configure

hope this helps you. if you have questions do a search.

Nicolas Desveaux

unread,
Mar 7, 2018, 3:14:42 AM3/7/18
to al...@googlegroups.com
Brilliant man thanks a lot!

Joao how tough would it be to give this its own little configure window?

On Wed, Mar 7, 2018 at 10:05 AM, Chad Baker <o1hit...@gmail.com> wrote:
This is what I did, don't know if you will need to do the same.

Install entware-ng from Alt-F web interface
Install rclone from Packages>Entware-ng
ssh to box and update SSL Certificates due to error x509 from configuring rclone Link
mkdir -p /etc/ssl/certs/
curl -o /etc/ssl/certs/ca-certificates.crt https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt
ntpclient -s -h pool.ntp.org
Configure rclone for Google Drive Link (I elected to set up my own Client ID Link)
Test to see if could see my files 

List directories in top level of your drive

rclone lsd remote:
remote: is the name you gave the drive when you configured rclone. You must have the : at the end

set up a test copy  /home/source is the location of the folder or file you want to transfer.  remote:backup is the google drive folder called backup, if there are and spaces it would be remote:"backup folder"  you can set this up to go the other way as well.
rclone copy /home/source remote:backup

My last step was to set up a cron job to do this every week from the Alt-f web interface Services>System> cron configure

hope this helps you. if you have questions do a search.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.

Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.

João Cardoso

unread,
Mar 7, 2018, 2:53:36 PM3/7/18
to Alt-F


On Wednesday, 7 March 2018 08:14:42 UTC, Nicolas Desveaux wrote:
Brilliant man thanks a lot!

Joao how tough would it be to give this its own little configure window?

On Wed, Mar 7, 2018 at 10:05 AM, Chad Baker  wrote:
This is what I did, don't know if you will need to do the same.

Install entware-ng from Alt-F web interface
Install rclone from Packages>Entware-ng
ssh to box and update SSL Certificates due to error x509 from configuring rclone Link
mkdir -p /etc/ssl/certs/
curl -o /etc/ssl/certs/ca-certificates.crt https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt
ntpclient -s -h pool.ntp.org

That shouldn't survive a reboot, you have to create the folder in disk first.

aufs.sh -n
mkdir
-p /Alt-F/etc/ssl/certs
aufs
.sh -r

rclone searches the certificate file as (among other dirs/names) /etc/ssl/ca-bundle.pem, so you only need to provide a link to the default one

ln -sf /etc/ssl/ca-bundle.crt /etc/ssl/ca-bundle.pem # reuse the Alt-F bundled certificates. Must use also the above "aufs.sh" snippet

To maintain the box clock accurate, it's best to start the ntp in server mode, Services->Network->ntp, Configure

João Cardoso

unread,
Mar 7, 2018, 3:01:32 PM3/7/18
to Alt-F


On Wednesday, 7 March 2018 08:14:42 UTC, Nicolas Desveaux wrote:
Brilliant man thanks a lot!

Joao how tough would it be to give this its own little configure window?

It is an interactive process involving a browser, not easy (or possible) to automate.
I think that for the command-line handicapped users the best option is to use and configure rclone on a desktop machine, possibly with a GUI such as rclonebrowser  and copy the generated configuration file to the box, see https://rclone.org/remote_setup

Nicolas Desveaux

unread,
May 16, 2018, 1:21:39 PM5/16/18
to Alt-F
Hey Chad,

I followed your guide and can now download my G Drive to my NAS.
Couple of questions

I got it using cron to do it weekly. I'd love it if it could sync only the changes. Right now it seems to redo the whole drive every week. I had around 800MB on the NAS on first sync. Then I added a 45KB file and did the copy command again and interrupted it as soon as I saw the file appear locally but after checking the drive had 300MB only.

Also if it would sync only changes I'd have Cron sync changes every minute to behave more like the Google Drive Client .. maybe

Thanks!

Jc Connell

unread,
May 16, 2018, 1:24:30 PM5/16/18
to Alt-F
You could try rclone's sync command rather than copy:

Nicolas Desveaux

unread,
May 17, 2018, 5:58:02 AM5/17/18
to Alt-F
Excellent, thank you JC will give this a go.

Mayck Xavier

unread,
May 17, 2018, 10:30:11 AM5/17/18
to al...@googlegroups.com
I'm trying using Grive to sync my Google Drive with my DNS320L, but it
seems that Grive uses too much CPU and RAM so my NAS shutdown by
overheating everytime LOL

Mayck Xavier
Software Engineer



Jc Connell

unread,
May 17, 2018, 10:37:14 AM5/17/18
to al...@googlegroups.com
I haven't started using Alt-F on the DNS-320 yet, but I've used rclone on Arch running with a Marvel Kirkwood chipset. The two devices are similarly spec'd. 

You could try configuring a swap file on one of the internal HDDs or a USB drive/disk. It helped in my case.

To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.

Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.

Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.

João Cardoso

unread,
May 17, 2018, 1:40:25 PM5/17/18
to Alt-F


On Thursday, 17 May 2018 15:30:11 UTC+1, Mayck Xavier wrote:
I'm trying using Grive to sync my Google Drive with my DNS320L, but it
seems that Grive uses too much CPU and RAM so my NAS shutdown by
overheating everytime LOL

You should check the clearing space around your box (particularly the bottom and rear space), allowing for the fan to exhaust the heat, and check that the fan is indead working.
You can also change the mode how the fan runs and change the power off temperature limit under Services->System->sysctrl, Configure

To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+unsubscribe@googlegroups.com.

Mayck Xavier

unread,
May 17, 2018, 2:42:05 PM5/17/18
to al...@googlegroups.com, Alt-F
I've checked the fan conf and it was set to low. It explains a lot =)


Mayck Xavier
Software Engineer
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages