Hi,
Thank you for posting your requirement. My name is Inderjeet, we're a small IT services firm based at Chandigarh, India.
From looking at the script it seems you are trying to backup Linux system folders to a local folder in a date based folder. From what what I could understand, you're creating a folder in /share/MD0-backup1/incomplete_<date>/ and then when successful renaming it to <date> while symlinking it to "latest". Correct?
There seems some issue with the rsync syntax. Due to line breaks I could not properly interpret the scrip but I suspect the rsync command isn't getting properly built. I'll try it after a few hours upon hearing from you. May I know which flavour and version of Linux are you going to run it on?
Please do let me know if you have any questions. I'll be happy to assist.
Sincerely,
Inderjeet Singh Sodhi
(jhjk05032018jmljk)