rsync in aix

  1. Install popt-1.7-1.aix4.3.ppc.rpm & rsync-2.5.4-3.aix5.1.ppc.rpm from http://bullfreeware.com/

  2. Check manual by rsync –help

  3. Write shell script as below

    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

你可能感兴趣的:(rsync in aix)