Want to subscribe to topics you're interested in?
Become a Member

Sysadmin Accidentally Shift+Insert rm -rf... :/

Discussion in 'System Administration' started by rdan, Feb 2, 2020.

  1. rdan

    rdan Well-Known Member

    4,940
    1,179
    113
    May 25, 2014
    Ratings:
    +1,787
    Local Time:
    2:32 PM
    Mainline
    10.2
    I accidentally run this on SSH:
    But instantly cancel it with CTRL+C.

    What could be possibly wrong with that?
    XenForo file health check says all intact.

    After that I monitor my Disk Usage is not changing:
    Nodequery reported 11-12gb loss :/
    upload_2020-2-2_0-1-11.png

    Comparing my remote backup server to live server has 11-12gb loss also.
    I might rsync from backup server :/.
     
  2. rdan

    rdan Well-Known Member

    4,940
    1,179
    113
    May 25, 2014
    Ratings:
    +1,787
    Local Time:
    2:32 PM
    Mainline
    10.2
    I do have local backup also and has same 11-12GB loss.
     
  3. eva2000

    eva2000 Administrator Staff Member

    44,426
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,696
    Local Time:
    4:32 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    confirm that was the command by inspecting your command history
    Code (Text):
    history


    but how old is local backup and how frequent is the backups ? you can do a diff comparison of directories to see what it reports for live vs backup.
     
  4. rdan

    rdan Well-Known Member

    4,940
    1,179
    113
    May 25, 2014
    Ratings:
    +1,787
    Local Time:
    2:32 PM
    Mainline
    10.2
    Yes.
    Every 4am, and that was 20 hours ago.
    I already did sync from 20 hours old backup.
    Seems to be no problem :D.

    I'm on the process of collecting every addon and xenforo files to zip package and upload to my server to be sure everything is intact.