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

    • POLAND — New VPS Location Our new VPS location in Poland is now available. Promo code: POLAND • 40% off new VPS orders in the Poland location • Offer valid until July 29, 2026 Enter the promo code POLAND during checkout to receive your discount.
    • In your place l will join to Mobius community to get something decent or just go to Lucera 2 ( ofc no source) if you want interlude on Classic client, coz Acis not have have it yet.
    • The client and the system aren't working very well; the screen is black, and some things aren't loading.  😞 
    • LINEAGE2.SK Summer Season is Comming! GRAND OPENING - 14.08.2026 at 20:00 GMT+1  OBT - 07.08.2025 at 20:00 GMT+1   Website :https://lineage2.sk Discord : https://discord.gg/gj7AC5juGP       Server Features and Rates Xp – 20x Sp – 20x Adena – 10x Drop – 15x Spoil - 15x  Epic Raid Boss  - 1x Regular RB - 5x  Quest - 5x Fame - 2x Epaulette - 15x Manor - 15x     Special Features Somik Interface Limited AutoFarm Vote System Champions System Achievement System And more in information below     Enchant Settings  Safe Enchant: +3  Max Enchant: +16 Enchant Chance: 63%  Attribute Stone Chance: 50%  Attribute Crystal Chance: 30%     NPC Buffer all buffs, songs, dances including 3rd prof + resists Buff Slots: 24 (+4) / 12 Buff Duration: 2 Hours     Epic Bosses & Respawns Queen Ant: 24 hours +/-8h Core: 3 days +/-8h Orfen: 2 days +/-8h Baium: 5 days +/-8h Beleth: 7 days +/-8h Antharas: 7 days +/-8h Valakas: 7 days +/-8h     Instances Zones Zaken: 6 players Normal Freya: 6 players Hard Freya: 12 Players Frintezza: 6 Players Tiat: 6 Players Beleth: 12 Players     GM Shop weapon/armor/jwl (max S grade) shots/spiritshots (max S grade) mana potions (1000 MP, 10s)      Global Gatekeeper all towns including cata/necro ToI Gracia Hellbound ...     Olympiad period 7 days (Monday) no class participants min 6 base class participants min 6 max enchant +6 Start points 20     Class Transfer for Adena     Subclass Quest Not required Max Subclass 3 Subclass Max LvL 85     Events Team vs Team Capture the Flag Death Match Last Hero Korean Style Treasure Hunt      Clans All new clans start with Clan LvL 5! Clan Skills/LvL for Clan Coins     Others  max 3 windows per HWID  BoM/MoM spawned in towns Auto-learn skills Autoloot Retail LvL of Epic Bosses Cancellation return buff system (30sec) Cancellation return buff -  not effect olympiad
  • 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..