Simple bash script

Job ID: 31454946

Budget: $10 – $30 USD

This bash script copies my /home directory to my backup server:
ssh me@remote 'mkdir -p /share/data/cp/home'
ssh me@remote 'touch /share/data/cp/home/backup.marker'
rsync_tmbackup.sh /home me@remote:/share/data/cp/home

I want it to backup /home /etc & /var using variables and command substitution, in Windows it would look something like this:
src="/home /etc /var"

for %%f in (%src%) do (
ssh me@remote 'mkdir -p /share/data/cp%%f'
ssh me@remote 'touch /share/data/cp%%f/backup.marker'
rsync_tmbackup.sh %%f me@remote:/share/data/cp%%f
)

But this isn't Windows so, I want a bash script that will run in Debian 10 and Centos 7