Top VPS Hosting Provider

Welcome to the myhosting.com Forums.
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    juc1 is offline Silver Member
    Join Date
    Dec 2010
    Posts
    45

    Default mysterious tgz files in dumps folder

    Hi all,

    Recently my domain went down and the problem turned out to be that I had exceeded my 40 GB hard disk space. I thought this was strange because my data on this VPS is only about 15 GB ie nowhere near 40 GB. On further investigation I found that my dumps folder is getting filled up with tgz files and I have no idea where these files are coming from. For example on the date August 21 there are about 100 of these tgz files some of which you can see here:

    dump files.jpg

    If I download and unzip these files they seem to be the files from various content management systems which I don't use on this VPS have never heard of and have not asked to go to my dumps folder.

    dump files2.jpg

    Any ideas on where these files are coming from or how I can find out?

    Thanks
    Last edited by juc1; 2012-09-01 at 12:32 PM.

  2. #2
    suwunk is offline Super Moderator
    Join Date
    Aug 2010
    Posts
    1,080

    Default

    Hope this discussion on Parallels forums helps
    Plesk Backup /var/lib/psa/dumps full - Parallels Forums

    Here's another solution:
    Our hosted server recently ran out of disk space – an awkward situation. A little research revealed that /var/lib contained quite a lot of data – about 33GB more than we were expecting, most of it in /var/lib/psa/dumps/tmp.

    Turns out that this is where Plesk puts its temporary files when doing backups, and for some reason they weren’t getting removed, and in our case, they totalled 33GB. So… first of all we removed them, and then set about making sure the situation didn’t happen again.

    Chris Meller notes that sometimes the permissions on the directory get broken (such as when you restore from a backup), so I made sure that it was owner/group psaadm:psaadm and then, just to be sure, added a quick nightly cron job for root that runs the following script to remove any temporary files older than 90 days. Job done.

    #!/bin/sh
    #
    # Delete backup more than 90 days old.
    #
    backupDir="/var/lib/psa/dumps/tmp"
    #
    daysToKeep=90

    echo "Checking for files older than $daysToKeep days in $backupDir"
    listOfFiles=`find $backupDir -mtime +$daysToKeep`
    if [ ! -z $listOfFiles ]
    then
    echo "Found [$listOfFiles]"
    else
    echo "None found."
    fi
    for toDelete in $listOfFiles
    do
    echo "Deleting $toDelete"
    rm -rf $toDelete
    done
    echo "Done."

    Source: How to save 33GB of disk space (or… Managing Plesk Backups) – Agile software development processes, stories and lessons learnt
    Last edited by suwunk; 2012-09-03 at 05:17 AM. Reason: Disable smilies

  3. #3
    juc1 is offline Silver Member
    Join Date
    Dec 2010
    Posts
    45

    Default

    Quote Originally Posted by suwunk View Post
    Hope this discussion on Parallels forums helps
    Plesk Backup /var/lib/psa/dumps full - Parallels Forums

    Here's another solution:
    I think that these are more about how to monitor disk usage and delete files but mine is a slightly different question = how to tell where these tgz files are coming from. I have now deleted about 20GB worth of tgz files. It seems strange if there is no log etc to say why or how these files are being generated. Anyway I expect to be migrating to a new VPS soon so I am hoping that this problem will be left behind on the old VPS.

    Thanks


 

Similar Threads

  1. httpdocs folder on the cloud
    By jimbaum in forum Troubleshooting
    Replies: 7
    Last Post: 2010-10-27, 02:42 PM
  2. Download a Folder
    By kfperin in forum Troubleshooting
    Replies: 3
    Last Post: 2010-10-14, 03:49 PM
  3. administration folder
    By WrigleyF in forum How-To
    Replies: 0
    Last Post: 2010-09-07, 02:03 PM
  4. How do I open a TGZ file?
    By sgoodman in forum Beginners
    Replies: 5
    Last Post: 2009-11-06, 10:00 AM
  5. Mysterious C:\CVS Folder
    By sgoodman in forum Beginners
    Replies: 2
    Last Post: 2009-04-15, 09:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts