OTRS 3.0.10 BACKUP DOES NOT WORK...
Moderator: crythias
-
- Znuny newbie
- Posts: 29
- Joined: 10 Oct 2011, 23:48
- Znuny Version: 3.0.10
- Real Name: Farooq Ahmed
- Company: Ciena Healthcare
OTRS 3.0.10 BACKUP DOES NOT WORK...
I FOLLOWED THE INSTRUCTIONS I WAS TOLD THAT IS STOP MYSQL SERVICE THEN COPY C:\OTRS\OTRS FOLDER THEN START THE SERVICE AND USE MYSQLDUMP TO CREATE DUMP FILE IT WORKED PERFECTLY AND CREATED A DUMP FILE OF 4 GB
THEN I UNINSTALLED THE OTRS TO TEST THE BACKUP WHICH I DID..IT WAS INSTALLED SUCCESSFULLY THEN I STOPED THE SERVICE COPIED BACK THE C:\OTRS\OTRS FOLDER THERE THEN STARTED THE SERVICE AGAIN AND USED MYSQLDUMP AGAIN TO RESTORE DATABASE FILE IT TOOK 3 OR 4 SECONDS AND IT SAID MY SQL FILE DUMPED....NOW I GO IN TO C:\Program Files\OTRS\mysql TO CHECH DATA FOLDER WHICH WAS BEFORE ABOUT 8 GB AND IT SHOULD REFLECT AFTER RESTORING IT BUT ITS NOT. ITS SHOWING ABOUT 510 MB MEANS RESTORE WAS UNSUCCESSFULL...................PLZ HELP ME OUT...I CAN LOGIN TO OTRS...BUT MY AGENTS,MY CUSTOMERS ,GROUPS,TICKETS ARE NOTTHERE ........................WHAT WRONG DID I DO IN THIS WHOLE PROCESS
THEN I UNINSTALLED THE OTRS TO TEST THE BACKUP WHICH I DID..IT WAS INSTALLED SUCCESSFULLY THEN I STOPED THE SERVICE COPIED BACK THE C:\OTRS\OTRS FOLDER THERE THEN STARTED THE SERVICE AGAIN AND USED MYSQLDUMP AGAIN TO RESTORE DATABASE FILE IT TOOK 3 OR 4 SECONDS AND IT SAID MY SQL FILE DUMPED....NOW I GO IN TO C:\Program Files\OTRS\mysql TO CHECH DATA FOLDER WHICH WAS BEFORE ABOUT 8 GB AND IT SHOULD REFLECT AFTER RESTORING IT BUT ITS NOT. ITS SHOWING ABOUT 510 MB MEANS RESTORE WAS UNSUCCESSFULL...................PLZ HELP ME OUT...I CAN LOGIN TO OTRS...BUT MY AGENTS,MY CUSTOMERS ,GROUPS,TICKETS ARE NOTTHERE ........................WHAT WRONG DID I DO IN THIS WHOLE PROCESS
-
- Znuny newbie
- Posts: 29
- Joined: 10 Oct 2011, 23:48
- Znuny Version: 3.0.10
- Real Name: Farooq Ahmed
- Company: Ciena Healthcare
Re: OTRS 3.0.10 BACKUP DOES NOT WORK...
i have added the contents which it shows during restoration of database through dump file..if you can have any idea
thanks
thanks
You do not have the required permissions to view the files attached to this post.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: OTRS 3.0.10 BACKUP DOES NOT WORK...
I don't know what the problem is. How big was your mysql dump file? did you have errors on restore?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: OTRS 3.0.10 BACKUP DOES NOT WORK...
This file that you attached doesn't have any data in it. I doubt you'd have been able to upload an 8gb file....
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: OTRS 3.0.10 BACKUP DOES NOT WORK...
Why did you use mysqldump to *restore* the database? I never said to do that.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: OTRS 3.0.10 BACKUP DOES NOT WORK...
ok, I did say this:
AND THEN I SAID THIS:How to restore:
If OTRS is already installed and you're just moving back in a point in time, restore from your backup method (ntbackup, copy back, unzip, carbonite, mozy, crashplan, backupexec, ...) then mysqldump and then empty your tables and read the someoutputfile.sql via MySQL Workbench or command line.
If OTRS isn't installed, install it at the backed up version level, then do the above things.
Read up on MySQL for more information about table maintenance, backup and restore.
I also said to make a backup of your output file from the mysqldump.If you need to reload the .sql dump, it's pretty much
mysql -uotrsusername -ppassword otrsdatabase < outputfile.sql
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 29
- Joined: 10 Oct 2011, 23:48
- Znuny Version: 3.0.10
- Real Name: Farooq Ahmed
- Company: Ciena Healthcare
Re: OTRS 3.0.10 BACKUP DOES NOT WORK...
do i need to copy c:\otrs or c:\otrs\otrs folder as application side backup ???
if you say copy the c:\otrs then i think there is no point of copying it all because it will also copy database.then why should we go for mysqldump then ????
my dump file was 4 gb file;;;the file which i uploaded is about what i have been gettin on commND PROMPT WHILE IT WAS DUMPING THE FILE BACK TO THE DATABASE...dont you think otrs database folder should increase in size once i dump the sql file in to database....in my my case it does not increase...
so would i come know after dumping that i has filled all the tables in the database after dumping by using this <.....
if you say copy the c:\otrs then i think there is no point of copying it all because it will also copy database.then why should we go for mysqldump then ????
my dump file was 4 gb file;;;the file which i uploaded is about what i have been gettin on commND PROMPT WHILE IT WAS DUMPING THE FILE BACK TO THE DATABASE...dont you think otrs database folder should increase in size once i dump the sql file in to database....in my my case it does not increase...
so would i come know after dumping that i has filled all the tables in the database after dumping by using this <.....
-
- Znuny newbie
- Posts: 4
- Joined: 07 Dec 2011, 18:51
- Znuny Version: 11.2
Re: OTRS 3.0.10 BACKUP DOES NOT WORK...
It might be possible that your OTRS not configured properly or it may be because you have attached file is larger than the capacity. Yes you have to copy the directory back for the side backup.
-
- Znuny newbie
- Posts: 29
- Joined: 10 Oct 2011, 23:48
- Znuny Version: 3.0.10
- Real Name: Farooq Ahmed
- Company: Ciena Healthcare
Re: OTRS 3.0.10 BACKUP DOES NOT WORK...
i used mysql workbench application but the problem is when i give it the dump file created by mysqldump..it gives error message ERROR 1046 (3D000) at line 22: No database selected.....plz tell what could be the reson
then i exported the sql file through mysql workbench and then i imported that file it was done successfully
i could not find any option in mysql workbench to automate the backup process of database.....because i have to run the backup everyday scheduled......
how can i automate the mysql database backup on windows???
i know u can create a batch file which will make dump file through mysqldump....thats okay..but when i try to use this file to put it back to database ...the process freezez up....(using mysqldump)
i also tried that mysqldump file to import it in to database through mysql workbench but it ended up saying...ERROR 1046 (3D000) at line 22: No database selected...........................but if i use the dump file created by mysql workbench...that works perfect inside mysql workbench for importing..............................please help
then i exported the sql file through mysql workbench and then i imported that file it was done successfully
i could not find any option in mysql workbench to automate the backup process of database.....because i have to run the backup everyday scheduled......
how can i automate the mysql database backup on windows???
i know u can create a batch file which will make dump file through mysqldump....thats okay..but when i try to use this file to put it back to database ...the process freezez up....(using mysqldump)
i also tried that mysqldump file to import it in to database through mysql workbench but it ended up saying...ERROR 1046 (3D000) at line 22: No database selected...........................but if i use the dump file created by mysql workbench...that works perfect inside mysql workbench for importing..............................please help
Re: OTRS 3.0.10 BACKUP DOES NOT WORK...
you should really read the mysql admin book or get a qualified database admin!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: OTRS 3.0.10 BACKUP DOES NOT WORK...
In mysql workbench, you can use the left side (SQL Development) connection to the database, select the default schema (right-click, set as default), import an sql file, then execute the script. If you want, just create a new schema and test restore on it.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny superhero
- Posts: 723
- Joined: 10 Oct 2007, 14:30
- Znuny Version: 3.0
- Location: Hamburg, Germany
Re: OTRS 3.0.10 BACKUP DOES NOT WORK...
@quazi1214
Please get into mySQL administration. Its documentation about backup and restore is very well written and understandable.
'mysqldump' is not intended for restore purpose! Please make sure that you understand what you are doing and read at least the very basics of your programs manuals.
A broken 4GB file sounds somewhat like a dump to a FAT32 partition. Make sure your file system is capable of storing files larger than 4GB.
Please get into mySQL administration. Its documentation about backup and restore is very well written and understandable.
'mysqldump' is not intended for restore purpose! Please make sure that you understand what you are doing and read at least the very basics of your programs manuals.
A broken 4GB file sounds somewhat like a dump to a FAT32 partition. Make sure your file system is capable of storing files larger than 4GB.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
-
- Znuny newbie
- Posts: 29
- Joined: 10 Oct 2011, 23:48
- Znuny Version: 3.0.10
- Real Name: Farooq Ahmed
- Company: Ciena Healthcare
Re: OTRS 3.0.10 BACKUP DOES NOT WORK...
i was usin the wrong command to restore which is mysqldump -u root otrs < sql file so crythias help me with it and told right command which is mysql -u root otrs < sqlfilename and it worked like rocket
anyway thanks for your considerations
anyway thanks for your considerations