Rsync with a list of variables
- by EMKA
I am trying to write a bash script that will rsync only a specific subset of folders. I am trying to figure out a more slick so that I can just add a variables such as FOLDER1='name of folder in home directory' and then
rsync -arvz --delete /home/emka/$FOLDER1/ /home/emka/Desktop/Mount/$FOLDER1
Currently I have FOLDER1 through FOLDER13, but I do not want to have the above line thirteen times.
Could someone give me a push on how to do this?