Help with rsync command (or script) multiple file backups
These are the commands I use to back up specific files from my home directory to another machine. I have to enter them one at a time and am prompted for my password after each command.
I remember reading a forum post somewhere describing how to link commands like these (something to do with &&). Code:
rsync -e ssh -avz --delete-after daniel@10.0.0.7:/home/daniel/pictures /home/daniel |
Quote:
You can also avoid the password prompts via the use of ssh keys. Google for ssh-keygen (or read the man page). |
You may also consider to use a for loop, as in
Code:
#!/bin/bash |
Works beautifully! Thanks for sharing your knowledge.
|
All times are GMT -5. The time now is 09:31 AM. |