Jump to content

Recommended Posts

Posted

 

This is the script I have created:

 

:start
@echo off
color 1f

::   SCRIPT BY STEALTH  ::
:: License:
:: - You can modify and use this software for free
:: - You may not sell it or rent it!
:: Licensed under GNU Public License.

:: Variables by Stealth ::

REM Database Variables - SHOULD BE CHANGED

set host=localhost	
set database=l2jdb
set user=root	
set passw=

REM MySQL Variables

set MySQLdumpPath=%ProgramFiles%\MySQL\MySQL Server 5.1\bin\mysqldump.exe

REM Path , Saving Variables

set SavePath=%cd%\

REM Loaded Variables

@echo #############################
@echo #Database Backup Script v1.0#
@echo #############################
@echo #    Coded by Stealth       #
@echo #############################
@echo.
@echo.
@echo Do you wish to make a backup?
set /p make=(y/n):
If %make%==y goto new_backup
If %make%==n goto mxc
goto start

:mxc
@echo Please take some time to visit:
@echo www.MaxCheaters.com
@echo.
@echo Do you wish to visit now?
set /p visit=(y/n):
If %visit%==y start www.maxcheaters.com
If %visit%==n exit

:new_backup
@echo Creating New Backup...
@echo Output directory: %SavePath%
@echo.
@echo Please specify a name for your backup:
set /p name=Backup Filename:
@echo.
@echo Saving...
%MySQLdumpPath% --add-drop-table -h %host% -u %user% --password=%passw% %database% > %name%.sql
@echo.
@echo File %name% created!
@echo.
Echo Thank you for using [Database Backup Script v1.0] by Stealth
echo.
echo Press a key to exit (Goodbye)...
pause>nul
exit

 

Copy it to file with .bat extension and your done!

 

- PS: Dont forget to set the variables:

 

set host=localhost	
set database=l2jdb
set user=root	
set passw=
set MySQLdumpPath=%ProgramFiles%\MySQL\MySQL Server 5.1\bin\mysqldump.exe

 

Variables Explained:

 

set host=

The host pc that runs the database (default : localhost)

set database=

The database name (default : l2jdb)

set user=

Database username (default : root)

set passw=

The database password (default is blank or "root" without the quotes)

set MySQLdumpPath=%ProgramFiles%\MySQL\MySQL Server 5.1\bin\mysqldump.exe

The directory which has mysqldump.exe file (default for MySQL Server 5.1 is the one i entered)

 

Credits to me , and some code taken from database installers so credits also to L2JFree & TaneL

 

Compiled Batch Script:

http://www.4shared.com/file/90025800/db86bb4/Backup.html

 

 

Posted

Wreos ,ty an boreis na to kaneis na kanei back up aytomata kathe  5 ores p.x tha itan kalitero

 

Please speak english its L2J Develop Section and we should speak english

 

- BTW I will try to make have autobackup every 10 - 12 hours or so and repost the new version here.

Posted

I will try to make have autobackup every 10 - 12 hours or so and repost the new version here.

 

Do This And You Have +1 From me.

 

btw , it rox. cool for people that are bored to backup manually! xD

 

p.s: try to create the auto one! xD

Posted

Please speak english its L2J Develop Section and we should speak english

 

- BTW I will try to make have autobackup every 10 - 12 hours or so and repost the new version here.

Nice, i looking in greek section and i confused :P i edit my post.

Posted

Do This And You Have +1 From me.

 

btw , it rox. cool for people that are bored to backup manually! xD

 

p.s: try to create the auto one! xD

 

@OFF Topic: If you use navicat, then there is one option which creates auto backups ;)

 

@ON Topic: Gratz. One more nice share.

Posted

omg excellent share! keep it up!

 

about the timer to do it every 10-12 hours. i wont use any batch file to do that. just use Scheduled tasks. (Control Panel -> Scheduled tasks)

 

or just download and install the Sleep command for MS-DOS and the edit the script.

 

 

 

 

@echo off
set host=localhost	
set database=l2jdb
set user=root	
set passw=

REM MySQL Variables

set MySQLdumpPath=%ProgramFiles%\MySQL\MySQL Server 5.1\bin\mysqldump.exe


set SavePath=%cd%\

set name=1
:backup
%MySQLdumpPath% --add-drop-table -h %host% -u %user% --password=%passw% %database% > %name%.sql
set /a name=name+1
Sleep 43200
goto backup

 

Posted

Thanks,but why using this when navicat gives you the option?

If someone does not use navicat then he has this option.

Also if he doesn't want to pay to buy navicat this file is provided for free. (Assuming he won't be using any cracks ,serials etc for navicat if he owns a big server)...

 

* Topic Locked *

 

- New Release is coming!

Guest
This topic is now closed to further replies.


  • Posts

    • I created a system of FAKES to improve my GeoEngine, but I'm having problems with blocks. I've tried everything to fix it, but a block going from the inside out bugs the player's movement and freezes them. However, the reverse doesn't cause this bug. If I'm outside and click inside, the path is traced normally, but if it's reversed, it bugs at the fence. I've created several debugs and read all kinds of GeoEngine versions, but I haven't had any success. Can someone give me some insight into graphical data?   When fakes spawn, they are given possible routes, but they don't follow them. If there's a target, instead of following the correctly drawn path, it simply uses a straight line.  
    • The legendary L2Elixir you remember from 2008 is officially back — remastered, refreshed, and reborn! Our x3 Interlude server launched on 28 November, and the community is growing every single day.   🔥 Fresh start 🔥 Active players joining daily 🔥 Long-term project — Licensed for over 5 years from PlayINERA. 🔥 True 2008 nostalgia with modern stability & polish   If you were part of the original Elixir family, this is your chance to relive the magic. If you’re new — welcome to a classic Lineage II experience built with passion, not profit.   Join the battles. Join the nostalgia. Join L2Elixir Reborn. Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs
    • still available?  java version? client  salvation?  accept smarguart¡?
    • 🎉 L2NeverPain StuckSub - GRAND OPENING 12 December 2025🎉 After beta, testing, mistakes, laughs and a lot of PvP, the moment has finally come. L2NeverPain StuckSub is officially opening its gates on 12 December 2025.   ⚔️What to expect: ✦Main Class +2 Stuck Sub system ✦Balanced PvP & custom party farm areas ✦Custom events, bosses and strong rewards ✦Competitive clan scene with castle rewards   📌Until the opening: ✦Create your clans and register them in the Clan-Register channel ✦Invite your friends / old parties / CPs ✦Stay tuned for more information (rates, events, siege times, etc.)   Get your setups ready, prepare your macros and your Discord/voice. On 12 December 2025 20:00 GMT+2, we write the first chapter of NeverPain together. 🔥 https://l2neverpain.com/ https://discord.gg/kNP3UXgkmN
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock