Now copy and paste the following code in this window: # !/bin/bash You can name this file whatever you want. To create the temporary directory we will use to store backup files. Next you’ll want to create a script to backup your important server files and upload them to your B2 bucket. Run the following command as “arkserver” to authorize the “arkserver” user account to use your B2 Storage account.ī2 authorize_account ĭownload the b2 command line tool using the following command: In my example I have created a non sudo account named “arkserver”. On the Ubuntu side of things I’m going to assume that you’ve created a user account for the LGSM script to run inside of. I have created a bucket for each of my applications but you could just create one bucket called “backups” and have subdirectories inside of that if you prefer. After you have your Account ID and Application Key create a bucket for your backup files. Copy this key to somewhere secure like 1Password because you can not view it again but must generate a new key if you lose it. Once you have signed in click on “Show Account ID and Application Key” and generate an Application Key. I also applied the recommended configuration changes under the Linux section on this page.
I won’t go into details on how to setup the ARK server but I can tell you that I’m using LGSM scripts running on Ubuntu 14.04. You can apply the following to most Linux servers. I recently setup an ARK server for my friends to play on and came to the point of how I wanted to handle backups.