Revision ab63767e src/onedb/onedb

View differences:

src/onedb/onedb
64 64
    :format => String
65 65
}
66 66

  
67
FEDERATED = {
68
    :name        => "federated",
69
    :large       => "--federated",
70
    :description => "Limit backup/restore to federated tables"
71
}
72

  
67 73
###############################################################################
68 74
# SQLite options
69 75
###############################################################################
......
239 245
        Dumps the DB to a file specified in the argument
240 246
    EOT
241 247

  
242
    command :backup, backup_desc, [:output_file, nil], :options=>FORCE do
248
    command :backup, backup_desc, [:output_file, nil],
249
            :options=>[FORCE, FEDERATED] do
250

  
243 251
        begin
244 252
            helper = OneDB.new(options)
245 253
            helper.backup(args[0], options)
......
289 297
        from the same backend (SQLite or MySQL)
290 298
    EOT
291 299

  
292
    command :restore , restore_desc, [:backup_file, nil], :options=>FORCE do
300
    command :restore , restore_desc, [:backup_file, nil],
301
            :options=>[FORCE, FEDERATED] do
302

  
293 303
        begin
294 304
            helper = OneDB.new(options)
295 305
            helper.restore(args[0], options)
......
332 342
        end
333 343
    end
334 344

  
335

  
336 345
    ###########################################################################
337 346
    # Import slave
338 347
    ###########################################################################

Also available in: Unified diff