EC2 server recovery

From TS NoCode wiki
Revision as of 23:20, 9 January 2025 by Kpe (talk | contribs)
Jump to navigation Jump to search

No SSL connections possible

  1. Make a snapshot of the running server
  2. Make a volume from the snap shot
  3. Create a new server
  4. Attatch the volume to machine /dev/sdf
  5. Connect to new server
    1. Install TS client tools
    2. ts quick-install
    3. ts stop > all
    4. mkdir /mnt/oldroot
    5. sudo mount /dev/nvme1n1p1 /mnt/oldroot
    6. sudo rm -r /mnt/sda/*
    7. sudo cp -r /mnt/oldroot/usr/tempusserva/sda/* /mnt/sda/
    8. sudo chmod 777 -R /mnt/sda