Learn about Centmin Mod LEMP Stack today
Register Now

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

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

  1. rdan

    rdan Well-Known Member

    5,452
    1,418
    113
    May 25, 2014
    Ratings:
    +2,212
    Local Time:
    3:07 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

    5,452
    1,418
    113
    May 25, 2014
    Ratings:
    +2,212
    Local Time:
    3:07 PM
    Mainline
    10.2
    I do have local backup also and has same 11-12GB loss.
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    5:07 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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

    5,452
    1,418
    113
    May 25, 2014
    Ratings:
    +2,212
    Local Time:
    3:07 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.