Coder Social home page Coder Social logo

Comments (1)

Josh-Tracy avatar Josh-Tracy commented on August 15, 2024

Sorry this happened to you.

If you were using the enable_s3_backups = true option and have the backups in S3 then you have 3 options for restoring.

Option 1 is to download the backup files to your local PC. After you have the backup files, run a terraform destroy to destroy the server. Then you can add the input start_from_backup = true along with backup_files_storage_type = "local" and backup_files_local_path = "path/to/backup/files/on/my/pc" and dedicated_server_name_hash = "this is the value for DedicatedserverName in GameUserSettings.ini" See the README instructions for the required file structure.

Option 2 is to again download the backup files to your local PC, but then manually create your own S3 bucket and provide the following inputs:

start_from_backup = true
dedicated_server_name_hash = "this is the value for DedicatedserverName in GameUserSettings.ini"
backup_files_storage_type = "s3"
existing_backup_files_bootstrap_bucket_arn = " the arn of your bucket"
existing_backup_files_bootstrap_bucket_name = "the name of your bucket"

You can get the ARN of your bucket by clicking on it and viewing its properties

Option 3 is to download the backup files from S3 to your local PC, and then use the SCP command to copy the files to the ec2 instance remotely. Here is the process to do so:

  • You can SSH into the EC2 instance and compress the Pal/Saved/SaveGame directory using this command:

sudo systemctl stop palworld
sudo tar -czvf palworld_backup.tar.gz /palworld-server/Pal/Saved/SaveGame

  • Then:

sudo chown ubuntu:ubuntu palworld_backup.tar.gz

  • Then exit the EC2 instance using the exit command to get back to your local PC. Then use scp to pull the file from the EC2 instance to your PC using this command:

scp -i /path/to/your-key.pem ubuntu@your-ec2-public-ip:/path/to/palworld_backup.tar.gz C:/local/destination/path

  • Be sure to replace /path/to/your-key.pem with the path to your private ssh key. Replace ubuntu@your-ec2-public-ip with the public IP of your server. Replace /path/to/palworld_backup.tar.gz with the path to the backup tar file you created on the ec2 instance. If you just SSHed in and ran the above commands the file will probably be in /home/ubuntu/palworld_backup.tar.gz. Finally, replace C:/local/destination/path with a path on your local PC.

  • Then start palworld

systemctl start palworld

from terraform-aws-palworld.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.