Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jul 2004
    Posts
    102

    Default Is it safe to upgrade to rsync 3 ? Will WHM/Cpanel work with rsync 3 ?

    I am trying to create a remote backup of /backup/cpbackup/daily using rsync.

    My plan was to execute the rsync command, enter the password manually, then disown the process and move it to the background and let it run until it finishes. However, I found that after a few minutes the command fails with a memory error because the amount of files is too large for rsync to handle.

    So I read a bit and found that rsync 3 would offer an incremental file list creation to solve this problem. However, rsync 3 is not installed on my system. Now I could upgrade manually but will that break anything in the system or will it be incompatible with Cpanel ? I mean if there were no problems with rsync 3 then it would be installed by default. However, my brand new Centos 5.5 and RHEL 5 servers both came with rsync 2. What's the reason for that ? Is rsync 3 really safe and will it work with WHM/Cpanel ?

    Now I could copy the directories one by one. The problem obviously is that this would require me to enter the password 450 times whenever I update the backup. So I was using the password ENV and the password file option of rsync 2. However, this didn't work. I was still asked for a password.

    I read somewhere I could also use ssh auth keys to get rsync not to ask for a password but this would mean I'd have to store the private key on the server which is kind of insecure if the server gets hacked. In this case the hacker might gain access to the remote backup but that makes the remote backup useless because that is exactly what it is for (to provide a second copy if a hacker manipulates the primary backup).

    I am kind of lost here now. If upgrading to rsync 3 is an option then this may be the way to go. I just don't know if it's safe and recommended and if it will work with Cpanel/WHM. Does anybody know ?

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Is it safe to upgrade to rsync 3 ? Will WHM/Cpanel work with rsync 3 ?

    You could try upgrading to rsync 3, then put rsync into the /etc/yum.conf exclude line by listing it as rsync* in that line. cPanel/WHM does not determine the rsync version, your operating system does. The question on the security and stability would have to be directed to RedHat or CentOS, since they are the ones making that decision.

    It isn't going to break cPanel to update rsync, since the only possible areas that might use it would be backups and transfers. Backups only use remote FTP for an off server copying method. I do believe rsync might be used with the one experimental feature for hard links in the WHM > Backups > Configure Backup area, but that feature hasn't been pushed out of being considered experimental.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Is it safe to upgrade to rsync 3 ? Will WHM/Cpanel work with rsync 3 ?

    Quote Originally Posted by driverC View Post
    I read somewhere I could also use ssh auth keys to get rsync not to ask for a password but this would mean I'd have to store the private key on the server which is kind of insecure if the server gets hacked. In this case the hacker might gain access to the remote backup but that makes the remote backup useless because that is exactly what it is for (to provide a second copy if a hacker manipulates the primary backup).
    Aside from Tristan's comments, I don't think cpanel uses rsync much.

    To use ssh safely you can use the "command=" syntax in the remote ssh config files to restrict the commands that can run as a result of a connection. Additionally you could ssh in as a non-root user and run a shell script that runs rsync as root via sudo, if you're really paranoid. The other good option would be to restrict connections to that ssh to be only accepted from certain IPs.

    If you do that, they couldn't easily gain access to the remote system. They *could* potentially wipe out the backup though, although you could probably work out some ways to restrict the ability to totally erase the remote backup.
    White Dog Green Frog - web hosting and web development since 2002
    Blogs: SMB web use cPanel/WHM scripts

Similar Threads & Tags
Similar threads

  1. rsync and whm
    By sniperscope in forum Data Protection
    Replies: 7
    Last Post: 09-05-2011, 03:51 AM
  2. Can someone please explain how to upgrade rsync
    By DWHS.net in forum Data Protection
    Replies: 6
    Last Post: 01-25-2011, 04:06 PM
  3. rsync://rsync.cpanel.net broken?
    By Sinewy in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-26-2004, 06:08 AM
  4. Replies: 0
    Last Post: 01-25-2004, 04:02 PM
  5. rsync gurus -- how to stop rsync daemon?
    By trakwebster in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-12-2003, 11:05 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube