Article 5G8V1 Back up folders over the local network

Back up folders over the local network

by
Pedroski
from LinuxQuestions.org on (#5G8V1)
I need to back certain folders regularly from the new laptop to the old laptop.

Thanks to great help from LQ, I can do this easily like this:

Quote:
rsync -av -e "ssh" --progress /home/pedro/summer2021 pedro@192.168.10.13:/home/pedro/
At the moment, I copy and paste each command and press enter in bash, rsync asks for the password on the other laptop, then does the job.

But, since this is a recurring thing, I would like to automate it in bash.

How can I automate this process?

Make a text file with the paths to the folders to backup?

Then connect with ssh? Or still use rsync??

Can I hand rsync a batch file??latest?d=yIl2AUoC8zA latest?i=zphYkDhup9g:3m3pzMqhFuE:F7zBnMy latest?i=zphYkDhup9g:3m3pzMqhFuE:V_sGLiP latest?d=qj6IDK7rITs latest?i=zphYkDhup9g:3m3pzMqhFuE:gIN9vFwzphYkDhup9g
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments