The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

rsync error

Discussion in 'General Discussion' started by stuartd, Jun 4, 2006.

  1. stuartd

    stuartd Registered

    Joined:
    May 25, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi we have this backup script, it backs up via rsync, it fills the /backup drive on our server up with files but when the backup finishes all of the files disapear? what could be the error?

    dest='/backup'
    admin='admin@domainname.com'

    for fs in /boot /home /usr /var /tmp
    do
    rsync -aH --delete --ignore-errors ${fs} ${dest}
    done
    rsync -ax --delete --ignore-errors / ${dest}
    ret=${?}
    if [ ${ret} ]; then
    cat /tmp/rsync-stats | mail -s "[Backup] Complete" "${admin}"
    else
    cat /tmp/rsync-stats | mail -s "[Backup] Completed with error: ${ret}" "${admin}"
    fi
     
  2. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    Is the drive running out of space? :confused:
     
Loading...

Share This Page