Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Downloading full server backup with browser

Discussion in 'Data Protection' started by maxoniva, Mar 12, 2018.

Tags:
  1. maxoniva

    maxoniva Registered

    Joined:
    Mar 12, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Turkiye
    cPanel Access Level:
    Root Administrator
    Hello. I just start using WHM and I'm very new in this theme. The sysadmin before me create monthly backup procedure with WHM > Backup > Backup Configuration. It makes full server backup to /backup folder. 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.
    P.S. "Ask this sysadmin" is not an option.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,743
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. RadWebHosting

    RadWebHosting Active Member

    Joined:
    May 6, 2016
    Messages:
    36
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    Dallas, Texas
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,743
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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 - Developer Documentation - cPanel Documentation
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. RadWebHosting

    RadWebHosting Active Member

    Joined:
    May 6, 2016
    Messages:
    36
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    Dallas, Texas
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
  6. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,861
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice