Tool T-Backup - Backup your Worlds and Players with ease

Discussion in 'Released' started by darthmorf, Sep 20, 2015.

  1. darthmorf

    darthmorf Party Girl

    logo2.png
    T-Backup is a simple tool that at the press of a button backs up your Terraria Worlds, Players, or both.
    It is written in C# by Sam Poirier (darthmorf) and is currently v3.0 .
    Downloads

    - v3.0

    - v2.0
    - v1.0

    Install

    To install it is very simple, simply download the exe and run it.
    If you wish to view the source code, take a look at the github page.

    Gallery


    1.PNG 2.PNG 3.PNG




    Please Note - This is a windows only program.



     
    Last edited: Apr 14, 2016
  2. darthmorf

    darthmorf Party Girl

    Please post any bugs you encounter in this thread!

    To do:

    -Move settings from registry to binary/xml serialization?
    -Allow running on Terraria startup
    -Add a 'Browse' button on backup folder path

    -Multiple profiles
    -Restore backups


    Current Bugs
    -Default Profile isn't saving properly.
    -Crash on Terraria launch when the exe can't be found.

    -Fixed a bug where creating backups too quickly caused a crash.
     
    Last edited: Sep 24, 2016
  3. Tachytaenius

    Tachytaenius Skeletron Prime

    Ooh. So you finally released it. Python-coded, right?
     
  4. darthmorf

    darthmorf Party Girl

    Yep.

    EDIT: Actually now in C#
     
    Last edited: Dec 31, 2015
  5. 360Chadscope

    360Chadscope Pixel Pirate

    Looks neat! I'll definitely try it out.
     
    darthmorf likes this.
  6. darthmorf

    darthmorf Party Girl

    Does anyone have any suggestions for new features?
     
    Last edited: Jan 13, 2016
  7. smeagolheart

    smeagolheart Terrarian

    New features?

    Yeah I was looking for something to keep 10 backups (or a configurable number) and then start overwriting the first backup. The tool would launch the game for you and do your backup.
     
  8. darthmorf

    darthmorf Party Girl

    Sorry, not 100% sure what you mean. Could you go into more detail please?
     
  9. smeagolheart

    smeagolheart Terrarian

    Sure i think a tool that launched the game and did a backup at that time of launch would be great.

    This tool almost already has this missing the launcher part.

    You wouldn't want 100 backups of your players and worlds for disk space reasons so I think overwriting after you reach 10 backups makes sense. You would think that if you found something horribly wrong or whatever you would be able to go back to one of those last ten and restore your data. You could make the number configurable in your launcher.
     
    darthmorf likes this.
  10. darthmorf

    darthmorf Party Girl

    Ok, I'll have a look into adding both of those features.
     
  11. darthmorf

    darthmorf Party Girl

    v2.0 is released!

    Changelog

    - There is now an option to launch Terraria from the program.
    - The program will now keep the amounts of backups at a certain number. (Set to 999 if you don't want a limit.)
    - Fixed a bug where creating backups too quickly caused a crash.

    _____

    @smeagolheart your requested features have been added.
     
  12. MinieK

    MinieK Plantera

    Wow, this is amazing! Downloading it ASAP!
     
    darthmorf likes this.
  13. darthmorf

    darthmorf Party Girl

    Thanks. If you have any feature requests, don't hesitate to post them.
     
    MinieK likes this.
  14. MinieK

    MinieK Plantera

    Hmm...I don't have any sugesstions yet, but they'll come due to time! :)
     
    darthmorf likes this.
  15. Infinity Mage

    Infinity Mage Terrarian

    Check if the source directory exists, or wrap it in a try catch statement. Other than that, it does work with wine. Other than starting Terraria.
     
    Last edited: Jan 26, 2016
    darthmorf likes this.
  16. darthmorf

    darthmorf Party Girl

    Will do. Thanks for the info.
     
  17. Menchii

    Menchii Terrarian

    I really like your program. I have a few feature suggestions.

    1. Ability to restore a backup. I like how it makes backups but it would be nice to have an option to restore a backup instead of copying the files back manually. There could be a button such as restore and when it is pressed the program will ask you to select a backup folder and then copy the files to the Terraria folder.

    2. Multiple configuration options (profiles). I would like to be able to load a configuration preset. The reason being is I use tmodloader and it stores the player and world files in it's own folder. I play modded and vanilla Terraria and switch between them frequently. So what I am asking is for a save values button and a load values button.
    Out of curiosity where does the program save the values? I don't see any config file anywhere.

    Thanks for making the program and taking suggestions. Keep up the good work. :dryadhappy:
     
  18. darthmorf

    darthmorf Party Girl

    Shouldn't be too hard to implement. I will work on it.

    I can look into this too.

    'C:\Users\<User>\AppData\Local\T_Backup\T-Backup.vshost.exe_Url_ntrrxa4iaqozobnbkaxrvqewuh5giwdw\1.0.0.0'
    or something similar. (The last bit may change slightly.)

    No problem, and thank you.
     
    Menchii likes this.
  19. Menchii

    Menchii Terrarian

    I found the user.config file on my system. I use Windows 7 64bit so it was easy to find. The interesting thing is that there were 2 folders and 2 config files on my system.

    C:\Users\<User>\AppData\Local\T_Backup\T-Backup.v2.0.exe_Url_l4jkancwjp1uwmrfpojb1bwpvoowkpel\1.0.0.0\user.config
    and​
    C:\Users\<User>\AppData\Local\T_Backup\T-Backup.v2.0.exe_Url_ugwmpedmsygwabk25v03r01vc4dvwibw\1.0.0.0\user.config

    They both contained the exact same data and date created timestamp.

    This is just another interesting thing that piqued my curiosity. I would ask you for the source code of the program but that wouldn't do me any good. I can only understand very basic coding languages like html and javascript. My LUA is minimal. I can understand most of it but not actually make code that works. I am learning it though.

    The thing I am thinking of for multiple profiles (a quick dirty option) is to just create multiple user.config files and make a bat file to move them back and forth into the correct folder. This is a simple way to make it work until you figure out multiple profiles.

    Another huge thank you for making this program. I backup my players and worlds every time I play. It is so convenient. I have had to use the backups too.

    One last thing I am wondering is if the player and world backups would be able to be created while Terraria and the world and character file is loaded and running. I'm guessing no so I have been shutting down Terraria and making a backup then reloading it up to be safe. I don't know enough about how and when Terraria writes data to the world and character files when it is running. I expect corrupted backups but more testing would be needed for me to confirm that. The reason I'm looking into this is because I have to shut down the "Host and Play" world and force everyone to reconnect if a backup is needed. It is a minor inconvenience but it would be neat to be able to backup the world while it is running. It might have something to do with the autosave option. I will mess around with it later.

    If you read this Wall of Text, I solute you!!
     
    darthmorf likes this.
  20. darthmorf

    darthmorf Party Girl

    That's very odd. Have you ever wiped the program? It could be something to do with the way it sets up for the first time.

    That would work, indeed. I am currently working on the multiple profiles, so hopefully it shouldn't be too long.

    It's my pleasure.

    Yeah, I wouldn't want to risk doing that, as who knows what would happen. I'd be very interested to see the results of your test, however.

    *salute ;)
     
    Last edited: Feb 28, 2016