Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 35
  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    27

    Default WHM Remote backup issue

    Hello I want to setup standard backup to my dedicated server and also want to backup remotely to my FTP server how is it possible? I have dedicated server with whm.
    Last edited by efuzone; 03-23-2011 at 05:54 PM.

  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: WHM Remote backup issue

    You cannot backup both on the machine and remote FTP on the machine using WHM > Backup > Configure Backup area. You would need to select one option, which would be easiest to select to backup on the server itself. After backing up on the server, then you could scp or rsync the backups to the remote server, which would be more secure anyway.

    If you setup SSH keys for the machines to talk to each other, you could add a cron to root crontab (crontab -e or /var/spool/cron/root) to scp or rsync the backup folders to the remote machine if that remote machine is running Linux or FreeBSD. If it isn't, you could cron it to ftp the backup instead.
    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
    Join Date
    Mar 2011
    Posts
    27

    Default Re: WHM Remote backup issue

    Hello,
    Can you help me please like what i set in cron to manage standard backup first and then it upload remotely backups to my ftp server please.

  4. #4
    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: WHM Remote backup issue

    Please indicate if your remote machine is Linux or FreeBSD or Windows so I know what to suggest.
    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

  5. #5
    Member
    Join Date
    Mar 2011
    Posts
    27

    Default Re: WHM Remote backup issue

    Both servers are linux and one is dedicated second is vps, i want dedicated server backups standard and remotely to vps.

  6. #6
    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: WHM Remote backup issue

    So the remote VPS with Linux, you do have root SSH to it to scp or rsync files there, correct? If so, there is no reason to use FTP, which is not securely transferring. You would want to use scp (secure copy) or rsync (again this is secure). Please confirm if you have root SSH and then I will provide a cron command to rsync and a cron command to scp the backups. The command will assume you have added SSH keys to both machines to where they can talk to each other without needing password authentication.

    If both machines have cPanel, you can add SSH keys for each machine in WHM > Manage root’s SSH Keys area. If you are uncertain how to perform this function, please let us know.
    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

  7. #7
    Member
    Join Date
    Mar 2011
    Posts
    27

    Default Re: WHM Remote backup issue

    Yes both are Cpanel/WHM and i have both roots..

  8. #8
    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: WHM Remote backup issue

    You can try the following scp cron in crontab -e or by adding to /var/spool/cron/root file:

    Code:
    0 22 * * * /usr/bin/scp -pr /pathtolocalbackup root@IP#:/pathtoremotebackup
    This would scp the backup files at 10:00pm server time every day. Here the /pathtolocalbackup is the local server's full path to the backup files, IP# is the remote server's IP number, and /pathtoremotebackup is the full path to where you want to store the remote backup.

    I selected 10:00pm as the time to scp the files because cpbackup normally runs around 1 or 2am on many systems, this ensures that cpbackup has completed making the day's backups before scping the copy to the remote machine.

    You need to ensure to add the SSH keys from each machine to the other so they don't require a password to authenticate when running commands like scp.
    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

  9. #9
    Member
    Join Date
    Mar 2011
    Posts
    27

    Default Re: WHM Remote backup issue

    ok i will add cron now but tell me where i add ssh key, u mean to say i add ssh keys both servers each other like dedicated to vps and vps to dedicated?
    and then i just add this cron?

  10. #10
    Member
    Join Date
    Mar 2011
    Posts
    27

    Default Re: WHM Remote backup issue

    i have created keys to both servers and also edited from command now tell me where to add ssh keys in whm? cron command i know where to add and is there is 00 22 it meanns 10 pm and if i add 00 04 or 00 4 it will generate on 4am right?

  11. #11
    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: WHM Remote backup issue

    Quote Originally Posted by efuzone View Post
    i have created keys to both servers and also edited from command now tell me where to add ssh keys in whm?
    As previously mentioned:

    If both machines have cPanel, you can add SSH keys for each machine in WHM > Manage root’s SSH Keys area.
    You do add the VPS public SSH key to the dedicated, and the dedicated public SSH key to the VPS. You also need to ensure to authorize the keys in that area of WHM after adding them. To check they are working, try to SSH from one machine to the other as root. If you are able to do so without a password prompt occurring, then it is working.

    For your other question:

    cron command i know where to add and is there is 00 22 it meanns 10 pm and if i add 00 04 or 00 4 it will generate on 4am right?
    0 4 * * * will be 4:00am server time, correct.
    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

  12. #12
    Member
    Join Date
    Mar 2011
    Posts
    27

    Default Re: WHM Remote backup issue

    thats the confusion when i go to manage ssh keys it is asking me to generate new key and import key.. i generated new keys in both servers with name and password but name is not root and password is also not root's password.. it given me key.. but dont know how to add there key of another server..

  13. #13
    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: WHM Remote backup issue

    You import the key of the other server using the option to import.
    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

  14. #14
    Member
    Join Date
    Mar 2011
    Posts
    27

    Default Re: WHM Remote backup issue

    Hello Bro,
    I have added both keys in each other and also authorize them and also setup cron in dedicated server..
    now i want to know how to verify keys are working means both servers are communicating?

  15. #15
    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: WHM Remote backup issue

    Hello efuzone,

    As I mentioned above:

    To check they are working, try to SSH from one machine to the other as root. If you are able to do so without a password prompt occurring, then it is working.
    You need to do this from both machines, so check the dedicated to VPS SSH works without a password, then check the VPS to dedicated works without a password when SSHing from one to the other.

    Thanks.
    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

Similar Threads & Tags
Similar threads

  1. WHM , Remote backup prolblem
    By jestin_virtual in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-08-2010, 01:04 PM
  2. ahsay remote backup and whm
    By hakabus in forum Data Protection
    Replies: 3
    Last Post: 12-16-2009, 05:48 AM
  3. WHM remote ftp issue.
    By bsamson in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-01-2004, 04:31 PM
  4. WHM Remote backup to a Windows PC
    By djoverho in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-10-2004, 05:11 PM
  5. How do i configure WHM to remote backup?
    By I-Web in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-14-2003, 04:08 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube