rsync in aix

  • Install popt-1.7-1.aix4.3.ppc.rpm & rsync-2.5.4-3.aix5.1.ppc.rpm from http://bullfreeware.com/
  • Check manual by rsync –help
  • Write shell script as below
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    LOGDIR=/usr/prod/logs
    LOGFILE=rsync.log
    startBackup() {
    echo "****** Start backup now `date`"
    rsync -uptorgvlHaz -e "ssh -i /home/user/.ssh/id_dsa" /source_directory/* support@remote_server:/destination
    echo "****** Finish backup at `date`"
    echo ""
    }
    main() {
    startBackup
    }
    main » $LOGDIR/$LOGFILE 2>&1

Refer to Easy Automated Snapshot-Style Backups with Linux and Rsync
Using rsync and cron to automate incremental backups