I have two huge folders that I want to rsync one after the other using one command.
rsync --compress /home/user/folder/ email@example.com:/home/user/a/folder
rsync --compress /home/user/folder2/ firstname.lastname@example.org:/home/user/b/folder2
Combined in One Command:
rsync --compress /home/user/folder/ email@example.com:/home/user/a/folder ; rsync --compress /home/user/b/folder2/ firstname.lastname@example.org:/home/user/folder2
After entering this command, I am prompted for the password for the remote server. That's fine. However, after the first command completes, I am again prompted for the same credentials (while I'm not around); therefore defeating my purpose of combining the commands.
I'd like to (1) perform one command, (2) leave, and (3) come back later to see that both jobs were completed one after the other.
Is this possible without scripting?
Edited: I modified my example to reflect that the destinations are not within the same parent folder.