Programming, science, engineering, and more…
RSS icon Home icon English Spanish
  • Backups, rsync and ssh.

    Posted on {25-Feb-2011} Frank Vielma No comments

    This 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
best web hosting