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!

Google Drive Backups Retention questions

Discussion in 'Data Protection' started by WorkinOnIt, Nov 26, 2017.

Tags:
  1. WorkinOnIt

    WorkinOnIt Well-Known Member

    Joined:
    Aug 3, 2016
    Messages:
    141
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hello all

    Has anyone any experience with managing Google Drive cPanel remote backups?

    I have it set up and tested a backup - which worked flawlessly (well done CP )

    I have two questions;

    1) will backups to Google Drive save to different date folders?

    2) How can i use the date to delete files older than e.g. 60 days?

    In S3 you can set file lifecycle paramaters - I've search Google and can't figure out where these would be - in Drive / Apps script I assume.

    So - can anyone advise where / how to set these parameters or have an example script they can share?

    This articles is helpful, but would prefer to find one that is more specifically / tested with cpanel backups
    Automatically delete files in google drive
     
    #1 WorkinOnIt, Nov 26, 2017
    Last edited: Nov 27, 2017
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,565
    Likes Received:
    43
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Hi,

    The short answer is: you don't. Google Drive isn't positioned as a backup storage service. It doesn't offer features like auto-expiring of files. If you want that, and want to use Google Drive, then you'll need to provide your own means to do so.

    In contrast services like S3, which are positioned as backup storage services, offer such features. Usually they don't require custom coding or additional services to be fully functional as a backup storage service.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Infopro likes this.
  3. WorkinOnIt

    WorkinOnIt Well-Known Member

    Joined:
    Aug 3, 2016
    Messages:
    141
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Thanks for your reply.

    Yes, I understand that Google Drive isn't positioned as a backup drive per se, however, I find it works quite well. I just need to find a way to autodelete older files and thought I'd ask the community if anyone has a reference for this.

    Afterall - cPanel provided the solution - I'm assuming cPanel would understand the need for users to cycle out older files.

    Otherwise - what's the point to add it to WHM backup remote destination?

    Thank you
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,565
    Likes Received:
    43
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    I may have misread or misunderstood your original question, as I thought you were asking about features within Google Drive itself.

    As Michael pointed out, when using Google Drive with the cPanel & WHM backup system, the retention policy you define in the Backup Configuration interface determines how long backups are kept on Google Drive.

    Backups are stored on Google Drive the same way as on other services, within a dated folder. Since I store backups from several servers on my Google Drive, I find it convenient to also configure the backup service to use the local server hostname as part of the folder structure, resulting in something like this on my Google Drive:

    /backups/server1.example.com/2017-12-01
    /backups/server1.example.com/monthly/2017-12-01
    /backups/server1.example.com/weekly/2017-12-01

    As long as you configure the number of backups to retain, the cPanel & WHM backup system will prune older backups during the next backup run.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. WorkinOnIt

    WorkinOnIt Well-Known Member

    Joined:
    Aug 3, 2016
    Messages:
    141
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hello - thank you for your comprehensive and clear reply. I think I understand now!

    Backup Configuration - Documentation - cPanel Documentation

    These apply to remote destinations also? I assumed (obviously wrongly) that this was for local backups on the same server - perhaps the documentation could specify that fact for users like me who need clarification ;-)

    So - I am awaiting my test results for weekly backups to cycle out the oldest backup (not quite there yet). I'll update the thread if any further questions or issues come up.

    Meanwhile, I appreciate your help.

    R
     
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