List:Cluster« Previous MessageNext Message »
From:Jonas Oreland Date:August 6 2004 9:42am
Subject:Re: Does backup work?
View as plain text  
Jim Hoadley wrote:
> The "start backup" command seems to have worked for me. All files were created
> as described on pages 41-43 of the MySQL Cluster Administration Guide.
> Any advice on the restore command syntax?
> I've read the guide [p. 42 "How to restore a backup"] and checked out the
> helpful screenshot that shows:
>      BACKUP-12> restore -backupid 12 -nodeid 2 -restore -restore_meta
> Seems that the command name has changed to ndb_restore.
> [root@BOX2 BACKUP-1]# ndb_restore
> Usage: ndb_restore [--connect="nodeid=<api id>;host=<hostname:port>"]
>    [-c "nodeid=<api id>;host=<hostname:port>"] [--nodeid=db node id]
>    [-n db node id] [--backupid=backup id] [-b backup id] [--print]
>    [--print_data] [--print_meta] [--print_log] [--restore_data] [-r]
>    [--restore_meta] [-m] [--parallelism=Parallelism] [-p Parallelism]
>    [--dont_ignore_systab_0] [-f] <path to backup files>
> Can't get the command to work, tho. It's in my path.
> [root@BOX2 BACKUP-1]# ndb_restore --backupid=1 --nodeid=2 --restore_data
> --restore_metadata --print_log
> I'm running it from a directory with the backup files and an Ndb.cfg file.
> Also tried it with the --connect string:
> [root@cooler BACKUP-1]# ndb_restore --connect "nodeid=11;host=<mazda:2200>"
> --backupid=1 --nodeid=2 --restore_data --restore_metadata --print_log
> Seems like I have the syntax wrong? Any advice? Thx.

The syntax for this command is notoriously tricky.

I _think_ your missing a "." in the end of the line to specify path:

[root@BOX2 BACKUP-1]# ndb_restore --backupid=1 --nodeid=2 --restore_data 
--restore_metadata /path/to/backup/files/for/node2/backupid1/

where path should be "." if you alreay in this directory.


Does backup work?Ph.D. Joseph E. Sacco5 Aug
  • Re: Does backup work?Mikael Ronström5 Aug
  • Re: Does backup work?Jonas Oreland5 Aug
    • Re: Does backup work?Jim Hoadley5 Aug
    • Re: Does backup work?Jim Hoadley5 Aug
      • Re: Does backup work?Jonas Oreland6 Aug
    • Re: Does backup work?Jonas Oreland6 Aug