Jump to content

Need help with batch for rsync with password


hawihoney

Recommended Posts

I would need to start several rsync jobs in order. I issue these commands on a backup machine. For all rsync jobs I need to enter the same password. Currently I copy/paste every rsync command into the console and manually feed the password - daily. Is there a better - NOOP-compatible - way? Hopefully that way survives an unRAID reboot:

 

For example:

rsync -avPX --protect-args -e ssh "[email protected]:/mnt/user/Documents/*" /mnt/user/Documents/

rsync -avPX --protect-args -e ssh "[email protected]:/mnt/user/Pictures/*" /mnt/user/Pictures/

rsync -avPX --protect-args -e ssh "[email protected]:/mnt/user/Pictures Favorites/*" /mnt/user/Pictures\ Favorites/

rsync -avPX --protect-args -e ssh "[email protected]:/mnt/user/Programs/*" /mnt/user/Programs/

Any help is highly appreciated.

 

Many thanks in advance.

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...