Welcome, Guest. Please login or register

Author Topic: [1.4.7] SimpleBackup  (Read 127020 times)

0 Members and 1 Guest are viewing this topic.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
[1.4.7] SimpleBackup
« on: August 03, 2012, 06:02:41 pm »
SimpleBackup
Brought to you by: Dries007
Need help? Join #dries007 on espernet
Only ops have access to the /backup command. You can change the interval, name,.... in the config.

Website! (download here)

If you want a non-Forge version, reply to this topic.

Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Warning: If you have limited HDD space and/or a giant world and/or are using Mystcraft (makes for huge world folders  ;)) use the automatic old-backup-removal-system™

If you are having proplems, turn debug mode on, let your server run for at least 2 backup intervals and post the log (Hint: Set the interval to 1 minute  ;))
« Last Edit: January 22, 2013, 07:02:57 pm by dries007 »
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5]SimpleServerBackup
« Reply #1 on: August 03, 2012, 06:05:53 pm »
This is the config:
Quote
Code: [Select]
Debug=false
Delete backups older then time specified=true
Make backups at a regular interval.=true
The backup interval in minutes=15
The backup removal time in hours=48
The color used in chat=§A
# You can use the following variables: %day, %month, %year, %hour, %min, %world
The name config for the backup zip=%world_%month-%day_%hourh%min
The path to the backup folder=backup/
# You can set it to : all, ops or console
Who to tell when the server is doing a backup=all
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline atrain99

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,191
  • Karma: +72/-4
  • Thank You
  •   - Given: 48
  •   - Receive: 51
  • Gender: Male

  • "Gypsy Magic!"

    • View Profile
Re: [1.2.5]SimpleServerBackup
« Reply #2 on: August 03, 2012, 07:49:26 pm »
This is the latest in a series of awesome mods! Keep it up!
Now, to stop me from using bukkit, multiverse in simple server form would be awesome.
So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5]SimpleServerBackup
« Reply #3 on: August 03, 2012, 07:52:30 pm »
The closed thing to multiverse is Mystcraft. I might look into a way of giving specific dimensions specific properties (gamemode,....).
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline atrain99

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,191
  • Karma: +72/-4
  • Thank You
  •   - Given: 48
  •   - Receive: 51
  • Gender: Male

  • "Gypsy Magic!"

    • View Profile
Re: [1.2.5]SimpleServerBackup
« Reply #4 on: August 03, 2012, 08:11:17 pm »
Cool.
TheCowGod has offered to make a banner for your mods, I'm supposed to refer you to him.
So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5]SimpleServerBackup
« Reply #5 on: August 03, 2012, 08:13:01 pm »
Awsome!
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline atrain99

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,191
  • Karma: +72/-4
  • Thank You
  •   - Given: 48
  •   - Receive: 51
  • Gender: Male

  • "Gypsy Magic!"

    • View Profile
Re: [1.2.5]SimpleServerBackup
« Reply #6 on: August 03, 2012, 09:33:43 pm »
Awsome!
It's great that you can have a banner now! :D
So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5]SimpleServerBackup
« Reply #7 on: August 03, 2012, 09:36:08 pm »
I send a PM, Thanks for the relay, You know each other?
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline atrain99

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,191
  • Karma: +72/-4
  • Thank You
  •   - Given: 48
  •   - Receive: 51
  • Gender: Male

  • "Gypsy Magic!"

    • View Profile
Re: [1.2.5]SimpleServerBackup
« Reply #8 on: August 03, 2012, 11:01:45 pm »
I send a PM, Thanks for the relay, You know each other?
Outside of the forums? No.
Your signature was asking for a banner, and he's taking requests for stuff.
So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Offline OvermindDL1

  • Administrator
  • World Shaper
  • *****
  • Posts: 1,317
  • Karma: +344/-20
  • Thank You
  •   - Given: 18
  •   - Receive: 142
    • View Profile
    • OvermindDL1's Empty Main Server
Re: [1.2.5]SimpleServerBackup
« Reply #9 on: August 05, 2012, 06:23:40 pm »
Might I recommend more backup-generic options, such as rolling backup count and date, incremental updates, etc...?

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5]SimpleServerBackup
« Reply #10 on: August 05, 2012, 06:46:07 pm »
I don't think incremental updates are possible.
With count you mean the amount of backups made?
And with date? When last backup was made?

All recommendations are welcome!

Something I thought of myself was a 'smarter' backup system:
Make a backup when the last player leaves and then stop making backups until someone joins again.
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline OvermindDL1

  • Administrator
  • World Shaper
  • *****
  • Posts: 1,317
  • Karma: +344/-20
  • Thank You
  •   - Given: 18
  •   - Receive: 142
    • View Profile
    • OvermindDL1's Empty Main Server
Re: [1.2.5]SimpleServerBackup
« Reply #11 on: August 05, 2012, 07:49:27 pm »
I use incremental updates on my backup system on my server just fine.

I keep the last 20 backups or the last weeks worth of backups, whichever is greater.

All automatic.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5]SimpleServerBackup
« Reply #12 on: August 05, 2012, 07:53:32 pm »
I assume you have a script that does /save-off, /save-all, Make backup, /save-on.

But how do you make the incremental updates?
(If i'm allowed to know  ;))

The 'double check' (the last 20 backups or the last weeks worth of backups, whichever is greater) is a good idea.
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline OvermindDL1

  • Administrator
  • World Shaper
  • *****
  • Posts: 1,317
  • Karma: +344/-20
  • Thank You
  •   - Given: 18
  •   - Receive: 142
    • View Profile
    • OvermindDL1's Empty Main Server
Re: [1.2.5]SimpleServerBackup
« Reply #13 on: August 05, 2012, 08:10:42 pm »
MC's server runs in a tmux session, the script feeds it the save-off and so forth commands at the proper times, waiting for a response string from MC stating that it is complete.  I just use rsync for most things.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5]SimpleServerBackup
« Reply #14 on: August 05, 2012, 08:14:12 pm »
So you use rsync for the incremental updates? The problem is that i have no clue as to how something like that can be done in Java (Without external tools)
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline OvermindDL1

  • Administrator
  • World Shaper
  • *****
  • Posts: 1,317
  • Karma: +344/-20
  • Thank You
  •   - Given: 18
  •   - Receive: 142
    • View Profile
    • OvermindDL1's Empty Main Server
Re: [1.2.5]SimpleServerBackup
« Reply #15 on: August 05, 2012, 08:24:52 pm »
Many ways.  Do it manually (not 'that' hard).  Bring in an external library.  Just call external programs like rsync that are known to work exceedingly well.  Etc...  :)

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5]SimpleServerBackup
« Reply #16 on: August 05, 2012, 08:28:35 pm »
Do it manually (not 'that' hard).
If you are a proper coder (!=me)
Bring in an external library.
Best option i think.
Just call external programs like rsync that are known to work exceedingly well.
That might be possible, but it would have to be a java app, that's the only thing that will run on Win,Linux & mac and we already know that it's installed  :)

Thanks for the suggestion & info!
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline ShneekeyTheLost

  • Newbie
  • *
  • Posts: 30
  • Karma: +0/-0
  • Thank You
  •   - Given: 0
  •   - Receive: 0

  • "Lost again..."

    • View Profile
Re: [1.2.5]SimpleServerBackup
« Reply #17 on: August 05, 2012, 09:13:19 pm »
I assume you have a script that does /save-off, /save-all, Make backup, /save-on.

The 'double check' (the last 20 backups or the last weeks worth of backups, whichever is greater) is a good idea.
You can already do this, to an extent. You set your config file settings to back up every x time, and backups are good for a week. Make sure that x time is not more than 20 times a week. So, say, set them to twice a day. Badda bing, badda boom. However, an additional flag of 'x many backups before the oldest starts getting deleted' might be good.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5]SimpleServerBackup
« Reply #18 on: August 05, 2012, 09:16:00 pm »
Yes, that's what I mean, I'll make an option to set a minimum number of backups before older ones get deleted.

Any thoughts on the "no players, only 1 backup" thing?
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline calclavia

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,419
  • Karma: +90/-9
  • Thank You
  •   - Given: 20
  •   - Receive: 36
  • Gender: Male

  • "ICBM Mod: http://calclavia.com/icbm/"

    • View Profile
    • Calclavia
Re: [1.2.5]SimpleServerBackup
« Reply #19 on: August 05, 2012, 10:19:44 pm »
Yes, that's what I mean, I'll make an option to set a minimum number of backups before older ones get deleted.

Any thoughts on the "no players, only 1 backup" thing?

That should be good...

Offline atrain99

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,191
  • Karma: +72/-4
  • Thank You
  •   - Given: 48
  •   - Receive: 51
  • Gender: Male

  • "Gypsy Magic!"

    • View Profile
Re: [1.2.5]SimpleServerBackup
« Reply #20 on: August 06, 2012, 10:13:11 pm »
Yes, that's what I mean, I'll make an option to set a minimum number of backups before older ones get deleted.

Any thoughts on the "no players, only 1 backup" thing?

That should be good...
So it only backs up when there are no players on? Yeah, I'd like that! :D
So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5]SimpleServerBackup
« Reply #21 on: August 06, 2012, 10:21:40 pm »
No. When last player leaves make 1 backup and stop the automatic backups until someones logs in.  ;D
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline atrain99

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,191
  • Karma: +72/-4
  • Thank You
  •   - Given: 48
  •   - Receive: 51
  • Gender: Male

  • "Gypsy Magic!"

    • View Profile
Re: [1.2.5]SimpleServerBackup
« Reply #22 on: August 06, 2012, 10:25:56 pm »
No. When last player leaves make 1 backup and stop the automatic backups until someones logs in.  ;D
That's even better than what I said.
So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Offline OvermindDL1

  • Administrator
  • World Shaper
  • *****
  • Posts: 1,317
  • Karma: +344/-20
  • Thank You
  •   - Given: 18
  •   - Receive: 142
    • View Profile
    • OvermindDL1's Empty Main Server
Re: [1.2.5]SimpleServerBackup
« Reply #23 on: August 07, 2012, 12:14:17 am »
Does not matter for incremental backups as there would be no changes to store.  ;)

Offline atrain99

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,191
  • Karma: +72/-4
  • Thank You
  •   - Given: 48
  •   - Receive: 51
  • Gender: Male

  • "Gypsy Magic!"

    • View Profile
Re: [1.2.5]SimpleServerBackup
« Reply #24 on: August 07, 2012, 01:40:36 am »
But it still takes resources to actually backup the world.
So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

 

Sitemap 1 2 3 4 5 6 7 8 9 10 
Close
Please register or Login to join in on the community!