On my Linux (Ubuntu) I have a very simple backup script, essentially:
rsync <params> dir_src_a dir_dest_b rsync <params> dir_src_aa dir_dest_bb rsync <params> dir_src_aaa dir_dest_bbb
What I'd like to do, is before each rsync runs, store the current date/time in a variable (obviously a different var for each rsync) then when the last rsync has finished, print up on screen something like:
rsync 1 started at startdate rsync 2 started at startdate rsync 3 started at startdate
I have zero scripting skills so any guidance would be appreciated. The script currently is just in standard bash and on Ubuntu 18.04, doubt that matters though. Thanks!