Super Moderator

There might be numerous reasons on why it does not work. First make sure you've got rclone installed, then check firewall to make sure all needed ports are opened. If all is done and does not fix, then configure the script to write logs into a file or send them by email to see what might be wrong.

Super Moderator

I don't use either Google drive or rclone. You say rclone works on your server good - OK.

Now you need to identify why it does not work in your script. You can try and investigate it by yourself or hire somebody for this job.

Your script is a modification of one posted here https://help.directadmin.com/item.php?id=511 So double-check it does not contain syntax or other errors. Try to run it in a console and see whether or not it alerts about errors.

Make sure then /usr/local/directadmin/scripts/custom/user_backup_post.sh is owned and group-owned by diradmin and has 700 permissions.

Super Moderator

I don't know whether is it a copy/paste error, but you have too many typos... white-spaces are breaking commands and paths. So you need to check your code and post here errors you have when running it, if you want a help from us.

Probably anybody who also backups files to Google Drive can give a working solution. I personally do not use Google Drive and don't have solution for it either. So it's up to you to find where it does not work. If you provide text of errors then we can guide you further.