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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Manually Remove Backups

Discussion in 'Data Protection' started by StevenPhyffer, Feb 19, 2017.

Tags:
  1. StevenPhyffer

    StevenPhyffer Registered

    Joined:
    Feb 19, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Aldershot
    cPanel Access Level:
    Root Administrator
    Hey guys

    So I have a VPS server with GoDaddy. I recently enabled the Backup function on WHM. I configured it to make 4 backups a week on a few of the most important account I am hosting. Yesterday I started getting notifications that I am running out of diskspace. I immediately disabled the backups, which then left me with just under 10% of diskspace left. I was under the impression that the older backups would be deleted. Not the case. And I couldn't find a setting in the Backup Config to delete old backups. I tried to run a few scripts in SSH to delete old backups but it didn't help.

    Please could someone please give me the script to run that will delete the backups made by WHM Backup Service?

    You will be forever in my debt and we will become best mates, I am sure :)
     

    Attached Files:

  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    211
    Likes Received:
    13
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    If you have root access of the server check the either /backup directory or /home/backup directory where you would find the backups. The backups are in .tar.gz file format. So you can simply remove those backups.
     
  3. StevenPhyffer

    StevenPhyffer Registered

    Joined:
    Feb 19, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Aldershot
    cPanel Access Level:
    Root Administrator
    Thx for the prompt response. I have tried that, but even though my server says I have root access it seem I do not have full access. When I try to log in as root it says permission denied, but when I use my other root username it works fine but I cannot access the root home folder. Is there another way of browsing the server files from you whm and to delete the backups from there? See attached, this is the only files I see.
     

    Attached Files:

  4. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    599
    Likes Received:
    92
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Click the Backup Configuration icon in WHM, then scroll to the bottom.

    Do you have any destinations added under "Additional Destinations". ?

    If not, do you have "Retain backups in the default backup directory." checked?

    If yes, what does it say in the "Default Backup Directory" field? Ex. /backup

    The screenshot you are showing is you being logged in as a cPanel user, you cannot access /backup which is most likely where your backups are being taken.

    While you are logged into ascento user, try typing:

    Code:
    # su
    it should prompt for the root password, try entering it in and see if you get logged in as root.
     
  5. StevenPhyffer

    StevenPhyffer Registered

    Joined:
    Feb 19, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Aldershot
    cPanel Access Level:
    Root Administrator
    Hi there. Thank you, I managed to su in as root just before you replied lol. I found the backup files and is browsing through them now.
    Thank you so much!
     
  6. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    599
    Likes Received:
    92
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Awesome, glad to hear it! :)
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page