4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
7 results tagged dump x
  • thumbnail
    MySQL Back-up: Take a mysqldump with each database in its own SQL File

    mysql -N -e 'show databases' | while read dbname; do mysqldump --complete-insert --routines --triggers --single-transaction "$dbname" > "$dbname".sql; done

    todo : regarder les options

    June 19, 2016 at 7:55:23 PM GMT+2 - permalink - archive.org - https://ma.ttias.be/mysql-back-up-take-a-mysqldump-with-each-database-in-its-own-sql-file/
    backup dump mysql
  • Introducing mysqlpump | MySQL Server Blog
    September 8, 2015 at 10:10:13 AM GMT+2 - permalink - archive.org - http://mysqlserverteam.com/introducing-mysqlpump/
    dump mysql
  • thumbnail
    taskrabbit/elasticsearch-dump

    Pratique pour dump de petits indexes importants comme le .kibana (définition des dashboards)

    March 5, 2015 at 5:49:45 PM GMT+1 - permalink - archive.org - https://github.com/taskrabbit/elasticsearch-dump
    backup dump elasticsearch
  • whisper dump

    !/usr/bin/env python

    import os
    import mmap
    import struct
    import signal
    import optparse

    try:
    import whisper
    except ImportError:
    raise SystemExit('[ERROR] Please make sure whisper is installed properly')

    Ignore SIGPIPE

    signal.signal(signal.SIGPIPE, signal.SIG_DFL)

    option_parser = optparse.OptionParser(usage='''%prog path''')
    (options, args) = option_parser.parse_args()

    if len(args) != 1:
    option_parser.error("require one input file name")
    else:
    path = args[0]

    def mmap_file(filename):
    fd = os.open(filename, os.O_RDONLY)
    map = mmap.mmap(fd, os.fstat(fd).st_size, prot=mmap.PROT_READ)
    os.close(fd)
    return map

    def read_header(map):
    try:
    (aggregationType,maxRetention,xFilesFactor,archiveCount) = struct.unpack(whisper.metadataFormat,map[:whisper.metadataSize])
    except:
    raise CorruptWhisperFile("Unable to unpack header")

    archives = []
    archiveOffset = whisper.metadataSize

    for i in xrange(archiveCount):
    try:
    (offset, secondsPerPoint, points) = struct.unpack(whisper.archiveInfoFormat, map[archiveOffset:archiveOffset+whisper.archiveInfoSize])
    except:
    raise CorruptWhisperFile("Unable to read archive %d metadata" % i)

    archiveInfo = {
      'offset' : offset,
      'secondsPerPoint' : secondsPerPoint,
      'points' : points,
      'retention' : secondsPerPoint * points,
      'size' : points * whisper.pointSize,
    }
    archives.append(archiveInfo)
    archiveOffset += whisper.archiveInfoSize

    header = {
    'aggregationMethod' : whisper.aggregationTypeToMethod.get(aggregationType, 'average'),
    'maxRetention' : maxRetention,
    'xFilesFactor' : xFilesFactor,
    'archives' : archives,
    }
    return header

    def dump_header(header):
    print 'Meta data:'
    print ' aggregation method: %s' % header['aggregationMethod']
    print ' max retention: %d' % header['maxRetention']
    print ' xFilesFactor: %g' % header['xFilesFactor']
    print
    dump_archive_headers(header['archives'])

    def dump_archive_headers(archives):
    for i,archive in enumerate(archives):
    print 'Archive %d info:' % i
    print ' offset: %d' % archive['offset']
    print ' seconds per point: %d' % archive['secondsPerPoint']
    print ' points: %d' % archive['points']
    print ' retention: %d' % archive['retention']
    print ' size: %d' % archive['size']
    print

    def dump_archives(archives):
    for i,archive in enumerate(archives):
    print 'Archive %d data:' %i
    offset = archive['offset']
    for point in xrange(archive['points']):
    (timestamp, value) = struct.unpack(whisper.pointFormat, map[offset:offset+whisper.pointSize])
    print '%d: %d, %10.35g' % (point, timestamp, value)
    offset += whisper.pointSize
    print

    if not os.path.exists(path):
    raise SystemExit('[ERROR] File "%s" does not exist!' % path)

    map = mmap_file(path)
    header = read_header(map)
    dump_header(header)
    dump_archives(header['archives'])

    July 24, 2014 at 10:13:52 AM GMT+2 - permalink - archive.org - http://bazaar.launchpad.net/~amos-shapira/graphite/whisper-dump/revision/733#whisper/bin/whisper-dump.py
    dump graphite whisper
  • obfuscurity. - Unhelpful Graphite Tip #8 - Dump your Whisper Metrics
    July 21, 2014 at 5:56:46 PM GMT+2 - permalink - archive.org - http://obfuscurity.com/2012/04/Unhelpful-Graphite-Tip-8
    carbon dump graphite
  • thumbnail
    github.com/buger/gor

    Un outil de capture de trafic HTTP qui peut le rejouer en direct ou bien le dumper dans un fichier pour le rejouer plus tard.

    April 9, 2014 at 11:34:55 AM GMT+2 - permalink - archive.org - https://github.com/buger/gor
    capture dump http sys trafic
  • Warning: Skipping the data of table mysql.event. | Linux BrigadeWarning: Skipping the data of table mysql.event. - Linux Brigade

    Todo sur mon dump pour ne plus avoir le warning

    November 30, 2013 at 8:11:05 AM GMT+1 - permalink - archive.org - http://www.linuxbrigade.com/warning-skipping-data-table-mysql-event/#more-135
    dump mysql
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation