@mohamednasr I am 100% positive that things are missing in this script, and just to test it I followed the steps, and it indeed did NOT work AT ALL...
Perhaps you can revisit this and verify what parts are missing? I can identify at least missing back-quotes (`) around the date section and the setting of $REMOTECONFIG, but somewhere, somehow the backup itself also need to be made, I think?