Skip to main content

I want to delete all files from monthly backup

Comments

15 comments

  • cPRex Jurassic Moderator

    Hey there!  Are you using JetBackup on the server?  If so, adjusting the retention to be 1 would clear out all but the most recent backup.

    If you're using cPanel backups configured through WHM >> Backup Configuration, feel free to delete them manually through SSH.

    0
  • Optimizr

    I am using JetBackup 5 to do the backup at WHM » Plugins » JetBackup 5. I have initiated the deletion process via SSH.

    0
  • cPRex Jurassic Moderator

    It sounds like that may not have been the ideal solution if they advised not to do that.

    0
  • Optimizr

    Well in that case, how can I delete it?

    0
  • cPRex Jurassic Moderator

    You should do what JetBackup said and just let them cycle out as part of the retention settings.

    0
  • Optimizr

    But setting backup retention to 1 will not delete the backup in my case because I no longer want the monthly backup at all. Not even 1 backup. My 1 backup would be about 1.5 TB. 

    0
  • cPRex Jurassic Moderator

    Let's see what antonJetApps or JetAppsAdam can confirm if you can just remove those directly from SSH if you no longer want the monthly backup?

    0
  • kevinJetApps

    Hello, 

    Just to clarify, we do not recommend manually removing/relocating the files/folders on the backup destination as this may cause unintended issues with JetBackup's indexing. 

    If you no longer need monthly backups, you can simply remove the schedule and the snapshots associated with that schedule will be deleted during the next run of the backup job.

    Hope this helps!

    kevinJetApps

    0
  • cPRex Jurassic Moderator

    thanks, kevinJetApps!!!

    0
  • kevinJetApps

    No problem! 

    0
  • Optimizr

    kevinJetApps So, I need to keep the backup job enabled but remove the schedule from the backup job?

    0
  • cPRex Jurassic Moderator

    Yes, that sounds like the right plan!

    0
  • kevinJetApps

    Yep, that is correct Optimizr

    0
  • Optimizr

    Deleting the schedule of the backup job turns it into a manual backup job and it didn't run automatically. So, I ran it manually and it started a backup instead of deleting the backup. This wasted my time and made me wait unnecessarily until now, since the start of this thread.

    I doubted this would work from the start but I thought you guys might know better.

    I am going with manual deletion via SSH. Then I'll reindex the destination.

    0
  • kevinJetApps

    Hello Optimizr,

    Sorry about the inconvenience. It seems that I misunderstood your concern. The snaps are removed from the list of available backups for the accounts, but the files on the destination remain after removing the schedule.

    Our developers are currently working on extending the deleteAccountSnapshots API to work with additional options that can filter the snapshots to be deleted by destination and backup job.

    Once again, I sincerely apologize for the inconvenience caused.

    kevinJetApps

    1

Please sign in to leave a comment.