google-drive-ocamlfuse icon indicating copy to clipboard operation
google-drive-ocamlfuse copied to clipboard

Crontab Rsync and Permissions

Open jwaltrip4 opened this issue 3 years ago • 4 comments

Sorry for the newb questions

google-drive-ocamlfuse set up under my user account (User account is also admin)

  • all working fine.

rsync run manually copy's files from google drive just fine (runs from my logon)

I put the rsync under crontab -e, and it fails. when I look at permissions under root I see this: d????????? ? ? ? ? ? James_GD

Error I get from rsync is sending incremental file list rsync: link_stat "/home/jwaltrip/James_GD" failed: Permission denied (13)

sent 20 bytes received 12 bytes 64.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]

Is there a way to make the google drive mount visible to root?

jwaltrip4 avatar Dec 27 '21 16:12 jwaltrip4

Is there a way to make the google drive mount visible to root?

Yes, you should mount with -o allow_root.

astrada avatar Dec 27 '21 19:12 astrada

OK, I am still dumb...

I do have this working now.... /etc/crontab lets me specify user account, so it works...

But.... where does "-o allow_root." go?

jwaltrip4 avatar Dec 29 '21 19:12 jwaltrip4

But.... where does "-o allow_root." go?

It's a command line option. E.g.:

google-drive-ocamlfuse -o allow_root /path/to/gdrive

astrada avatar Dec 31 '21 20:12 astrada

Thanks!

Sent from my Verizon, Samsung Galaxy smartphone Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Alessandro Strada @.> Sent: Friday, December 31, 2021 3:20:44 PM To: astrada/google-drive-ocamlfuse @.> Cc: James W Waltrip IV @.>; Author @.> Subject: Re: [astrada/google-drive-ocamlfuse] Crontab Rsync and Permissions (Issue #743)

But.... where does "-o allow_root." go?

It's a command line option. E.g.:

google-drive-ocamlfuse -o allow_root /path/to/gdrive

— Reply to this email directly, view it on GitHubhttps://github.com/astrada/google-drive-ocamlfuse/issues/743#issuecomment-1003446163, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADVZGBR43773YEKWBIBYPMTUTYGBZANCNFSM5K2TOCWA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

jwaltrip4 avatar Jan 01 '22 01:01 jwaltrip4