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

    • Hello everyone, Lineage II clan MightyTeam is reopening recruitment and looking for ambitious, active players who want to compete seriously and grow together. We are building a disciplined and organized environment focused on teamwork, strategy, and long-term success. What we offer: Strong and experienced leadership, Fair and respectful treatment for every member, Organized clan structure and tactical gameplay, Competitive mentality with clear goals, Stable and drama-free environment, What we expect: Activity and willingness to improve, Teamplay and communication, Respect toward clan members, Motivation to compete and dominate, No politics. No toxicity. Only focused players with the right mentality.   If you are interested in joining MightyTeam, contact on Discord: tzelal.  <-- there is a dot  or Telegram tz3gg. 
    • Lol thanks no l better get Acis /Lucera/Mobius and will squeeze more profit that your crazy ass price files for fucks know what. Even Reborn was smart enough use Acis after Lucera to squeeze shit a lot of money 😁 Fucking hell 15 grants lol 😂 
    • It seems the SkyLord is simply not familiar with what l2-scripts and Bonux represents today. His opinion is likely based on our older materials — which is understandable. We haven't been standing still. Over the years, the studio has moved to a fundamentally different level of development. Our early builds are still available on the legacy site at very accessible prices — and they remain entirely viable for launching a project. As practice shows, solid servers can still be built on them, albeit with greater effort. As for the market — Classic, Essence, and Main have long been running on l2-scripts engines, and the majority of successful servers have, at one stage or another, used our source code as their foundation. This isn't self-promotion — it's the history of the industry. Today, for established projects with a reputation, we offer a different format: private partnership with individual terms tailored to your business goals. If you're interested in long-term collaboration — we're open to the conversation. We have solutions for every level — from newcomers to top-tier projects. Feel free to reach out, and we'll be happy to discuss.
    • implemented Black Market NPC that can copy and make discount on desired multisells , spawns despawns and fully configurable with schedule and random timer   implemented Dungeon Finder , fully configurable for custom dungeons and can be accessed from 2-9 party size. Your choice! 
    • https://en.l2oops.com/chronicle/lineage-2-essence   almost all the servers on here are using l2scripts or bonux files..
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..