Frank Vielma's Blog Programming, science, engineering, and more…
Backups, rsync and ssh.
Posted on {25-Feb-2011} No commentsThis script backup data from local and sends it to the remote host using a ssh connection.
#!/bin/sh /usr/bin/rsync --rsh="ssh -i ~/.ssh/id_dsa.pub" -avh --delete --progress \ --log-file=full-path-log full-path-local-host USER@IP:/full-path-remote-host

