May 24, 2013, 10:19:52 AM
Pre-Releases are now available at the PreRelease section.
If any issues occur please post exceptions or information as to how to reproduce in the correct section.

Author Topic: Backup the Map  (Read 277 times)

0 Members and 1 Guest are viewing this topic.

AyrA

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Backup the Map
« on: March 30, 2012, 04:14:41 AM »
How to Backup your Server
I was thinking about a fully automatic backup solution for the TDSM Server. Finally I did not found anything useful for me so I coded it myself and I want to share the Idea with you.
  • Download the File in the Attachment and Extract it (using 7-Zip)
  • The File TDSM_backup.bat can be stored everywhere but I recommend it inside your TDSM Folder.
  • Change the Path and Name to your world Files inside the Bat file and create a Folder named "Backup" inside your worlds folder.
  • Put the Commander folder inside the TDSM Folder
  • create an rcon Account inside TDSM with "rcon add backup backup" and verify rcon is enabled on the Server
  • (optional, but remove the "map" call from the autoTelnet Textfile) Install the Map Plugin on the server and enable it
  • (optional, only if map Plugin is used) Edit the Paths in the backup.txt File (inside the commander folder)
  • Run the Backup bat File to verify it is working
  • Set up the Windows Task scheduler to run the bat File once a day.
  • (optional) Then Edit the Task and in the time schedule select to repeat the task every hour. Should look like this
  • (optional) Select to run this task with "SYSTEM" Account
You are done. one backup every hour with Terraria Map and PNG Image of the Map

Notes
Everything was written by myself, including the autoTelnet Tool. You may change the Bat File to fit your needs and modify the commands from the autoTelnet Tool
The Application writes everything to the Terminal and creates a File called backup.log, so cou can redirect the Output into a File or another Application. The Tool was written withhin 20 Minutes. There is no Documentation for it. If you need help with it or want Modifications, just ask. You are not allowed to use this Application Package on a commercial Server without written permission and an insanely high Payment.
License and Disclaimer
If the Tools f**k up anything on your system, it is not my fault, since I did not launched them, thanks. There is no guarantee, that the Tools perform as they should.
The Tools are free to use on any non-commercial server. You are not allowed to sell/resell the tools in this Package or make any form of profit from them (except time saving when creating and restoring Backup files)

Josh

  • Jr. Member
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Re: Backup the Map
« Reply #1 on: March 30, 2012, 08:37:34 PM »
Good work, good to see some initiative :)
I will try this out when I get time - I'm currently writing a backup script for those of us who are using Linux boxes to host TDSM :)

D1G1T4L3CH0

  • TDSM Team Member
  • Hero Member
  • *****
  • Posts: 518
  • Karma: +22/-2
  • Tester / Moderator
    • View Profile
    • Personal Website
Re: Backup the Map
« Reply #2 on: March 30, 2012, 09:24:44 PM »
Hey guys. Great work there AyrA! :) Glad to see someone interested enough in the project to do this.

Sadly though, it's already been in developement as of a month ago and will be ready with the release of B38.

We didn't want to say anything because we really appreciate your contributions, but we felt we should let you and Josh know so you don't continue this for nothing.   ;)
Server Machine: Xubuntu 11.10 Xfce Mono 2.10.5
Thanks to all those who work on TDSM. It's a great alternative to the official one. And thanks to the plugin devs too for making it even better.

AyrA

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Backup the Map
« Reply #3 on: March 31, 2012, 05:09:21 AM »
I do not know, what the Backup command exactly does, and if you can configure the Interval and the ability to call other commands.
I modified my script further, so it compresses the Backup (makes a 2 MB 7-zip file from an 80 MB Map) and copies the Image to my Webserver, so when I call This Website it shows you the last state of the Map.

D1G1T4L3CH0

  • TDSM Team Member
  • Hero Member
  • *****
  • Posts: 518
  • Karma: +22/-2
  • Tester / Moderator
    • View Profile
    • Personal Website
Re: Backup the Map
« Reply #4 on: March 31, 2012, 05:48:54 AM »
The backup manager just creates additional backups of the world at regular intervals set by the user and purges ones older than a set time by the user. It doesn't compress the world though, and that, I think is a good idea.  8)
Server Machine: Xubuntu 11.10 Xfce Mono 2.10.5
Thanks to all those who work on TDSM. It's a great alternative to the official one. And thanks to the plugin devs too for making it even better.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal