Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 21:21:07

Author Topic: Backup (MySQL) problem  (Read 5380 times)

0 Members and 1 Guest are viewing this topic.

Offline putude

  • Valuable Member
  • *
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Backup (MySQL) problem
« on: 2015-07-22, 06:32:02 »
Dear All,

I try to make a auto backup using bash script and crontab.

formerly, in kloxo-mr 6.5.x there is no problem,
but in kloxo-mr 7, it fail to create mysql backup.
(No tables created).

when I run backup script, there are some warnings appear.
------
sh /script/backup --class=client --name=admin
------
.....
.....
Taking backup of 'mysqldb:mydatabase_db'
sed: can't read /tmp/mysqldumpzKbgGE/mysql-mydatabase_db.dump: No such file or directory
....
....

What is happen ? and how to make it back to normal ?
please help me..

best regards,
Putude

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Backup (MySQL) problem
« Reply #1 on: 2015-07-22, 08:36:04 »
Make sure all table using myisam as storage-engine. Or disable 'skip-innodb' in /etc/my.cnf.d/server.cnf.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline putude

  • Valuable Member
  • *
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: Backup (MySQL) problem
« Reply #2 on: 2015-07-30, 22:03:52 »
Hi..

* I've check all tables and they are MyISAM already.
* I disable 'skip-innodb' in /etc/my.cnf.d/server.cnf
* restart mysql
* then try again the backup script.
the problem still appear. No clue from Google.

I'm very grateful for your help.

rgds,
Putude

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Backup (MySQL) problem
« Reply #3 on: 2015-07-31, 14:41:36 »
Try 'sh /script/backup --class=client --name=admin --accounts=all'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline putude

  • Valuable Member
  • *
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: Backup (MySQL) problem
« Reply #4 on: 2015-08-04, 07:49:32 »
Hello Mustafa,

sadly the warning is still appears. but luckily, the file produced (backup) is ok for restoring the database.
Thank you so much for your help, Mustafa.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Backup (MySQL) problem
« Reply #5 on: 2015-08-04, 08:12:36 »
Did 'mydatabase_db' already exists in database (check via phpmyadmin)?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ViN

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Backup (MySQL) problem
« Reply #6 on: 2015-08-06, 19:00:17 »
RESTORE BACKUP OTION NOT WORKING PROPERLY.
i have backup data, but in Admin CP Restoring not restore my FULL DB.
i m noobs as well

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Backup (MySQL) problem
« Reply #7 on: 2015-08-06, 19:14:20 »
Inform here 'cat /usr/local/lxlabs/kloxo/log/restore'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ViN

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Backup (MySQL) problem
« Reply #8 on: 2015-08-06, 19:18:14 »
there must be problem with its GUI backup n restore system.
my all data lost. i have back but not restoring properly in GUI admin panel.

Offline ViN

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Backup (MySQL) problem
« Reply #9 on: 2015-08-06, 19:19:42 »
Also when i have downloaded backup, and extracted sql , its in dump extension, and it not able to upload in phpmyadmin.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Backup (MySQL) problem
« Reply #10 on: 2015-08-06, 19:22:40 »
Every backup and restore process will be create backup and restore log in 'cat /usr/local/lxlabs/kloxo/log/'.

So, without this log we don't know what's the problem is.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ViN

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Backup (MySQL) problem
« Reply #11 on: 2015-08-06, 19:24:26 »
Log show no error,
i m fed up.
my all backup is corrupted.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Backup (MySQL) problem
« Reply #12 on: 2015-08-06, 19:42:26 »
Inform here your 'cat /usr/local/lxlabs/kloxo/log/backup' (in old server) and 'cat /usr/local/lxlabs/kloxo/log/restore' (in new server).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Backup (MySQL) problem
« Reply #13 on: 2015-08-06, 20:15:58 »
Try 'sh /script/restore --class=admin --name=admin --accounts=all /home/kloxo/client/admin/__backup/kloxo-scheduled-7.0-admin-2015-Aug-06-1438855986.tgz'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ViN

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Backup (MySQL) problem
« Reply #14 on: 2015-08-06, 20:53:27 »
[root@boxslot ~]# sh /script/restore --class=admin --name=admin --accounts=all /home/kloxo/client/admin/__backup/kloxo-scheduled-7.0-admin-2015-Aug-06-1438855986.tgz
-bash: [root@boxslot:


Not restored even after running this command

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.046 seconds with 18 queries.

web stats analysis