BackupWindowsViaRsync

From $1

Prerequisites

Client and Server

  • Get ssh working without a password first.

Client

  • Get cygwin working or install cwrsync

Server

  • Put in /etc/rsyncd.conf

log file = /var/log/rsyncd.log
[backups]
        path = /path-to-write-to
        comment = any comment without quotes
        read_only = false

Running the Backup

On the client

  • rsync --delete --stats --progress -za --rsh=ssh /cygdrive/d kevin@kevinpc:backups

Automating the Backup

On the Client

  • Create cron/rsync-backup-d.sh in your home dir:

#!/bin/bash
rsync --delete --stats --progress -za --rsh=ssh /cygdrive/d kevin@kevinpc:backups
  • chmod +x cron/rsync-backup-d.sh
  • crontab -l > /tmp/foo

  • Append to /tmp/foo:

0 1 * * * /home/kevin/cron/rsync-backup-d.sh
Tags:
none
 
Images (0)
 
Comments (0)
You must login to post a comment.