Skip to main content

Downloading full server backup with browser

Comments

7 comments

  • cPanelMichael
    Hello, You'd need to use a utility such as SFTP or Rsync to download the archives to your local computer if you want to avoid accessing cPanel for each account to download them individually. You could use an application such as FileZilla to access the server via SFTP as "root" and download the archives from the server's /backup/ directory. Thank you.
    0
  • RadWebHosting
    Would it not be possible to compress the /backups/date-of-backup directory, which includes account and system backup directories, into a downloadable file (i.e. .gz)-and move this backup into a public directory (accessible over browser from 443 or 80, for instance)? It seems like some basic hooks management would make this easy to automate? Thoughts?
    0
  • cPanelMichael
    Hello @RadWebHosting, The argument against moving all backups to a publicly accessible directory (even temporarily) is that it exposes account-specific data to anyone that's able to enter the URL in their web browser. While you could potentially reduce the risk of data exposure by using an obscure directory name or enabling password protection, it's not really a good security practice. That said, you are correct that it's possible to setup a post backup hook to automatically perform an action such as moving the backup archives to a different directory upon the completion of each backup generation. Here are a couple of documentation links to help you get started if that's something you'd like to setup: Guide to Standardized Hooks - System Functions - Developer Documentation - cPanel Documentation The first document is the overall guide to standardized hooks and the second one includes information about the Backup hook. Let me know if you have any questions. Thanks!
    0
  • RadWebHosting
    Completely agree-this isn't appropriate for the typical cPanel usage (hosting live websites, mails, dns, etc). Having said that, for the sake of "solving" the original question posted, the question wasn't specific about the circumstances and configuration/usage of the server.
    0
  • 24x7server
    Hi,
    The sysadmin every month created gziped file of this backup and sent some link to my manager so manager could download this gzipped file. I wonder, how it's possible. Hope anybody can help me with this.

    This can certainly be done. All you have to do is deploy a script that will turn your backups into downloadable link and mail you with the links for you to download. This is a bit technical though, so if you are not sound in system administration skills, you may require assistance of system admin for this.
    0
  • 360webfirm
    Just a note on this topic, when you force the system to do a backup through terminal, does this also backup system files? I just want to find a solution that I can use to recover the c panel accounts and also whm setting as fast as I can to get server back up and running in case of a disaster.
    0
  • cPRex Jurassic Moderator
    It does - as long as you're calling the main backup script with /usr/local/cpanel/bin/backup --force
    0

Please sign in to leave a comment.