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.

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:
    6
    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,623
    Likes Received:
    21
    Trophy Points:
    38
    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
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    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.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
  5. oldlock

    oldlock Well-Known Member

    Joined:
    Sep 19, 2008
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    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,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     

Share This Page