Find the answer to your Linux question:
Results 1 to 4 of 4
need help sir. i'm setting up a DNS WEB and MAIL server as my Thesis. i'm using ubuntu 8.04 LTS. But unfortunately, i deleted the /www inside /var. this /www ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    1

    recover /var/www

    need help sir.
    i'm setting up a DNS WEB and MAIL server as my Thesis.
    i'm using ubuntu 8.04 LTS. But unfortunately, i deleted the /www inside /var. this /www contains all the data i uploaded in putting up a website. so my question is, are there any ways on how do i recover the /www folder. hoping for ASAP answer. thank you all in advance.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,102
    Did you install and configure a backupsystem beforehand?
    If Yes, then do a restore of the last day.

    If No:
    Then the data is lost and you have to upload it again

    There is a chance to do file recovery, but dont expect all files to be restoreable:
    You can use:
    ext3grep - Project Hosting on Google Code
    or
    TestDisk - CGSecurity
    Last edited by Irithori; 03-15-2010 at 08:19 AM.
    You must always face the curtain with a bow.

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    Yes,I'll second ext3grep. Check this link too
    HOWTO undelete removed files and directories on an ext3 file system

    from ext3grep home page:
    ------------
    umount the partition ASAP ; do not mount it again.

    If you turned the PC off in panic (and did not umount it), then do NOT start the PC again to "recover" and THEN umount, of course; in that case just work with the unclean image.
    ---------------
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  4. #4
    Just Joined!
    Join Date
    Mar 2010
    Location
    Mountain View, CA
    Posts
    24
    Try to use "testdisk" utility. I have recovered entire formatted ext3 partition.

Posting Permissions

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