Skip to main content

Shared Hosting Backup

Comments

16 comments

  • GOT
    You can create backups on demand from with cpanel itself. I do not believe you can schedule these though.
    0
  • mbressman
    You can create backups on demand from with cpanel itself. I do not believe you can schedule these though.

    I definitely would need something that can do scheduled backups. That's what I was looking for some sort of 3rd party software I could install on a cPanel shared hosting account.
    0
  • mbressman
    It should actually be possible, @GOT. The UAPI seems to support this: - UAPI Functions - Backup::fullbackup_to_ftp - Developer Documentation - cPanel Documentation

    I took a quick look, but that looks beyond me, and also looks like something that would require some serious permissions and/or changes, and since I only have a shared account with reseller privileges (some basic WHM access), I'm not sure if that is applicable? But maybe I'm wrong...
    0
  • DennisMidjord
    Shouldn't be a problem. Just create a cron job that executes the following command: uapi Backup fullbackup_to_homedir
    That will create a backup of your account.
    0
  • mbressman
    Shouldn't be a problem. Just create a cron job that executes the following command: uapi Backup fullbackup_to_homedir
    That will create a backup of your account.

    OK, although I'm looking to do the backup elsewhere (not on the same server since that would sort of defeat the purpose of having the backup). And it would be great (if the backup was going to grab EVERYTHING), if it could do some sort of incremental backup? And also looking to do it to Google Drive, or OneDrive. FTP is good, but Google Drive/OneDrive/etc. would be even better. I'm honestly amazed no such 3rd party software exists like this...
    0
  • DennisMidjord
    I'm pretty sure it does grab everything. You can create a bash script that executes the command and then upload it to Google Drive.
    0
  • mbressman
    I'm pretty sure it does grab everything. You can create a bash script that executes the command and then upload it to Google Drive.

    No idea how to do that (probably the reason I'm looking for a software package that just does it for me, haha). Any sites out there that give a tutorial?
    0
  • DennisMidjord
    How to upload a file to Google Drive from the command line Seems pretty simple, but requires the gdrive application to be installed on the server. This is not incremental, though. There's also JetBackup that allows you to upload to Google Drive, but that will require you to have root access to the server. #!/bin/bash date=`date +%d.%m.%Y` time=`date +%H-%M-%S` #Create the backup uapi Backup fullbackup_to_homedir email=youremail@domain.com #Wait 1 hour before attempting to upload backup (could also be configured to wait for PID for the backup to finish) sleep 3600 #Upload the file gdrive upload /home/username/backup-$date_$time_username.tar.gz
    I haven't tested it, so no idea if it actually works.
    0
  • cPanelLauren
    These suggestions are all great, but if you're looking for a plugin your provider may have something available - we do partner with JetBackup though your provider would have to have purchased a license for this and have it installed on the server and available for your account in order for you to use it.
    0
  • mbressman
    These suggestions are all great, but if you're looking for a plugin your provider may have something available - we do partner with JetBackup though your provider would have to have purchased a license for this and have it installed on the server and available for your account in order for you to use it.

    My provider hasn't been able to help me with this. It doesn't look like what I'm searching for actually exists. My hosting provider does provide JetBackup, but that's not really what I'm looking for (at least not how they've implemented it - not sure if it can be implemented in different ways) since it doesn't give me the ability to schedule different types of backups offsite. It just gives me access to download their backups manually.
    0
  • cPanelLauren
    Hi @mbressman Yea they'd have to create the destination for you and the schedule but it is possible for them to do but not for you to manage through cPanel alone. The custom script provided though should give you the power you need to complete the backups though, pending you have permissions for backup creation on the account.
    0
  • mbressman
    Hi @mbressman Yea they'd have to create the destination for you and the schedule but it is possible for them to do but not for you to manage through cPanel alone. The custom script provided though should give you the power you need to complete the backups though, pending you have permissions for backup creation on the account.

    I don't think I'd want to give the hosting provider access to my Google Drive, or OneDrive, or wherever the off-site destination is for the backups.
    0
  • cPanelLauren
    I don't think I'd want to give the hosting provider access to my Google Drive, or OneDrive, or wherever the off-site destination is for the backups.

    Completely understandable.
    0
  • mbressman
    Completely understandable.

    Guess I'm back to square one again ... I'm actually amazed nothing like this exists! lol
    0
  • cPanelLauren
    Guess I'm back to square one again ... I'm actually amazed nothing like this exists! lol

    Was the custom script provided not useful? I'd also suggest taking a look and possibly voting on the feature request here: cPanel UI to configure remote backups
    0

Please sign in to leave a comment.