As mentioned in the title, this isn't a rclone issue, it's just my inability to implement. Apologies if you fine folks would prefer me to seek guidance on S/O or somewhere, but I hoped not having to explain the platform would aid in ability to get advice.
My config is: v1.52.0-linux-amd64 / Debian x64 / Google Drive.
/nfs/c10/h10/mnt/228932/domains/fitaf570.com/html/lib/rclone copy /nfs/c10/h10/mnt/228932/domains/fitaf570.com/html/doc "gd:/lance/Fit AF/"
[gd]
type = drive
client_id = 1069064026498-d8hlv3qc6fbu7ivlhm1qm9qir9rd8tcm.apps.googleusercontent.com
client_secret = **************************
scope = drive
token = {"access_token":"ya29.a0AfH6SMCijFNcoBGTxYr38jYtS1Ng33W812v4mCdl_-9Yeo4RRWqS26JdAFQPOZVoJDupsJR0hjxHUG0OL2ITtt8NswmGMnTnO546JzORFxnXRycIZv_TTSDokoR-zRspxQnKF8swdZy2FckAPGiBaB-1HSiog4W0wW0","token_type":"Bearer","refresh_token":"1//0fbc7_q7ojHCrCgYIARAAGA8SNwF-L9IrmzlV-PavWDi7hyVEGE9NRTNKGRIRISvKMYsfFkpnvWEZc5O6TQDyiPHoAdIAIQrlCG8","expiry":"2020-06-10T19:19:38.99015576-07:00"}
root_folder_id = 0AAjs66ABvu2ZUk9PVA
Since the expected result occurs from CLI, I've elected not to include a log. I'm just hoping that someone has experience reproducing the functionality inside a PHP script and can offer guidance. I'm relatively inexperienced with exec() and just began using rclone today, but from what I can tell from digging around is that it should work considering as I've set the permissions to 777.
fitaf570.com@n17:/nfs/c10/h10/mnt/228932/domains/fitaf570.com/html/lib$ ls -la
-rwxrwxrwx 1 fitaf570.com fitaf570.com 39821312 Jun 10 18:38 rclone
I've tried various permutations of exec() shell_exec(), prefixing the command with "/bin/bash" or "sh" and nothing works. The closest I can get is a return error code of 126 Command invoked cannot execute
Being on shared hosting, I am somewhat limited in what I can accomplish. Certainly no sudo. Any advice greatly appreciated. This platform is very promising and exactly what I need to improve my company's process flow.