Re: How to setup my rsync in a script
That would be a reasonable starting point for a script.
If you want to shut down at the end, something like:
You might also want to define some variables to refer to the directories and common options so that it's easier to maintain, for example:
RSYNC_OPTIONS="-r -t -p -o -g -v --progress --delete"
rsync $RSYNC_OPTIONS --exclude=.* --log-file=/home/roberto/i3vmssd.txt --log-file-format= -l -H -s "$VM_IMAGES"
Please create new threads for new questions.
Please wrap code in code tags using the '#' button or enter it in your post like this: [code]...[/code].