Koozali.org: home of the SME Server

restore from workstation (solved)

Offline paradigm

  • *
  • 96
  • +0/-0
restore from workstation (solved)
« on: July 09, 2009, 04:08:27 PM »
i cant seem to restore from backups done with dar to a new server install , i have done the following:

1.fresh server install

2.installed all updates

3.configured backup from workstation

4.verified the backup (stored on a usb stick)

4.tried to restore (3 times) and every time i get "restore failed" i reboot and even try to do a reconfigure

and get nothing , no ibays , no users , no groups , and no station can log on to the domain.

before i open a bug  , maybe someone has an idea ? , maybe im doing some thing wrong ?

thanks in advence.
« Last Edit: July 15, 2009, 06:46:50 AM by paradigm »

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: restore from workstation
« Reply #1 on: July 09, 2009, 04:50:37 PM »
maybe someone has an idea ?

well.. you could start looking in your /var/log/messages for errors

in any case, your best bet is to open a bug, if you are in the hurry to recover your server

Stefano

Offline paradigm

  • *
  • 96
  • +0/-0
Re: restore from workstation
« Reply #2 on: July 09, 2009, 05:05:28 PM »
im on test server on virtualbox so no hurry , but would like to know how to restore ok so i can deploy this great
distro on a prodution server .

i have looked at the log and found this :

Jul  8 20:10:46 yariv-server 10fix_privilege_tables: ERROR
Jul  8 20:10:46 yariv-server 10fix_privilege_tables:  1060 (42S21)
Jul  8 20:10:46 yariv-server 10fix_privilege_tables:  at line 22: Duplicate column name 'File_priv'
Jul  8 20:10:46 yariv-server 10fix_privilege_tables: ERROR 1060 (42S21) at line 28: Duplicate column name 'Grant_priv'
Jul  8 20:10:46 yariv-server 10fix_privilege_tables: ERROR 1060 (42S21) at line 29: Duplicate column name 'Grant_priv'
Jul  8 20:10:46 yariv-server 10fix_privilege_tables: ERROR 1060 (42S21) at line 30: Duplicate column name 'Grant_priv'
Jul  8 20:10:46 yariv-server 10fix_privilege_tables: ERROR 1060 (42S21) at line 41: Duplicate column name 'ssl_type'
Jul  8 20:10:47 yariv-server fstab-sync[4049]: added mount point /media/BACKUP1 for /dev/sda1
Jul  8 20:10:47 yariv-server fstab-sync[4074]: added mount point /media/cdrom for /dev/hdc
Jul  8 20:10:49 yariv-server fstab-sync[4106]: added mount point /media/floppy for /dev/fd0
Jul  8 20:10:53 yariv-server 10fix_privilege_tables: ERROR
Jul  8 20:10:53 yariv-server 10fix_privilege_tables:  1054 (42S22)
Jul  8 20:10:53 yariv-server 10fix_privilege_tables:  at line 87: Unknown column 'Type' in 'columns_priv'
Jul  8 20:10:53 yariv-server 10fix_privilege_tables: ERROR 1060 (42S21) at line 93: Duplicate column name 'type'
Jul  8 20:10:53 yariv-server 10fix_privilege_tables: ERROR 1060 (42S21) at line 103: Duplicate column name 'Show_db_priv'
Jul  8 20:10:53 yariv-server 10fix_privilege_tables: ERROR
Jul  8 20:10:53 yariv-server 10fix_privilege_tables:  1060 (42S21)
Jul  8 20:10:53 yariv-server 10fix_privilege_tables:  at line 120: Duplicate column name 'max_questions'
Jul  8 20:10:53 yariv-server 10fix_privilege_tables: ERROR 1060 (42S21) at line 130: Duplicate column name 'Create_tmp_table_priv'
Jul  8 20:10:53 yariv-server 10fix_privilege_tables: ERROR 1060 (42S21) at line 133: Duplicate column name 'Create_tmp_table_priv'
Jul  8 20:10:54 yariv-server 10fix_privilege_tables: ERROR 1061 (42000) at line 141: Duplicate key name 'Grantor'
Jul  8 20:10:54 yariv-server 10fix_privilege_tables: @hadGrantPriv:=1


maybe it helps ?

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: restore from workstation
« Reply #3 on: July 09, 2009, 05:07:47 PM »
maybe it helps ?

not me.. please raise a bug, thank you.. and please report here the link for future reference

Stefano

Offline paradigm

  • *
  • 96
  • +0/-0
Re: restore from workstation
« Reply #4 on: July 09, 2009, 05:49:51 PM »
my first bug report :

http://bugs.contribs.org/show_bug.cgi?id=5393

hope i did it o.k

Solved   :smile:  :

short story - manuall backup of more then one incramental file in the same day does not work at the moment - files are created in the same name whice confuses
dar whan doing a restore.

see bug report inlast post forf ull info and  solution
« Last Edit: July 15, 2009, 06:55:59 AM by paradigm »

Offline jpl

  • *
  • 112
  • +0/-0
Re: restore from workstation
« Reply #5 on: July 17, 2009, 10:35:39 AM »
Solved   :smile:  :

short story - manuall backup of more then one incramental file in the same day does not work at the moment - files are created in the same name whice confuses
dar whan doing a restore.

More exactly : daily workstation backup is not set to provide manual backup. So if you force more than one backup (by changing the config) on the same day when incremental backup is set, backups do have different names, but with the same day in their names. And restore process is confused about that.
Forcing more than one backup on the same day should never be made without resetting the backup process (disable and enable).