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!

Duplicate content safe to delete ???

Discussion in 'Workarounds and Optimization' started by oldlock, Mar 29, 2012.

  1. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    56
    I've found some doubled up content on a server.

    Here's the content of home/home which should be the user accounts on the server.

    1.JPG

    And near duplicate content sitting in home/etc/home ?

    2.JPG

    The std home folder is 7GB, the etc folder 5.9GB. Is it safe to delete the contents of this folder ? I'm assuming they are some kind of backup from a previous server move ........
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Please check in root SSH that these are not hard links with the same inode number:

    Code:
    ls -li /home
    ls -li /home/etc/home
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,342
    Likes Received:
    402
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Dates on some directories in home/ are newer than the same ones in etc/home/ in the images. If this is not hard linked, (I don't think it is as the user accounts seem to be being updated in home/ properly), rename it first and be sure everything still works. Move it if nothing breaks, delete it when you need the space back. Safer than just deleting I think.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    It's always safer to check the inode numbers. I wouldn't trust dates or times as the litmus test. The inode numbers always tell if the file or folder is the same or not.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    56
    1.JPG

    2.JPG

    Here's the results of the two inode tests.
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Going forward, it's a lot easier to copy and paste text over images to see the content when it's a text-based display such as shell. The inode numbers are different, so you could move the folder elsewhere to ensure everything is functioning and remove that folder after that at your own discretion.

    You are able to see the inode numbers (to the far left) are different, correct? When you see that's the case, you know they aren't hard links then.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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