Revision 25b48b1e

View differences:

src/onedb/onedb_backend.rb
30 30

  
31 31
class OneDBBacKEnd
32 32
    FEDERATED_TABLES = %w(group_pool user_pool acl zone_pool vdc_pool
33
                          marketplace_pool marketplaceapp_pool fed_logdb)
33
                          marketplace_pool marketplaceapp_pool)
34 34

  
35 35
    def read_db_version
36 36
        connect_db
......
262 262
            raise "Unknown error running '#{cmd}'"
263 263
        end
264 264

  
265
        if federated
266
            cmd = "mysqldump -u #{@user} -p'#{@passwd}' -h #{@server} " <<
267
                  "-P #{@port} #{@db_name} logdb --where=\"fed_index!=-1\" "<<
268
                  " >> #{bck_file}"
269

  
270
            rc = system(cmd)
271

  
272
            if !rc
273
                raise "Unknown error running '#{cmd}'"
274
            end
275
        end
276

  
265 277
        puts "MySQL dump stored in #{bck_file}"
266 278
        puts "Use 'onedb restore' or restore the DB using the mysql command:"
267 279
        puts "mysql -u user -h server -P port db_name < backup_file"

Also available in: Unified diff