astrada / google-drive-ocamlfuse

FUSE filesystem over Google Drive
https://astrada.github.io/google-drive-ocamlfuse/
MIT License
5.59k stars 353 forks source link

Crontab Rsync and Permissions #743

Open jwaltrip4 opened 2 years ago

jwaltrip4 commented 2 years ago

Sorry for the newb questions

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

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?

astrada commented 2 years ago

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

Yes, you should mount with -o allow_root.

jwaltrip4 commented 2 years ago

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?

astrada commented 2 years ago

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

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

google-drive-ocamlfuse -o allow_root /path/to/gdrive
jwaltrip4 commented 2 years ago

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: @.***>