EnglishFrenchSpanish

OnWorks favicon

bup-damage - Online in the Cloud

Run bup-damage in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command bup-damage that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


bup-damage - randomly destroy blocks of a file

SYNOPSIS


bup damage [-n count] [-s maxsize] [--percent pct] [-S seed] [--equal] <filenames...>

DESCRIPTION


Use bup damage to deliberately destroy blocks in a .pack or .idx file (from
.bup/objects/pack) to test the recovery features of bup-fsck(1) or other programs.

THIS PROGRAM IS EXTREMELY DANGEROUS AND WILL DESTROY YOUR DATA

bup damage is primarily useful for automated or manual tests of data recovery tools, to
reassure yourself that the tools actually work.

OPTIONS


-n, --num=numblocks
the number of separate blocks to damage in each file (default 10). Note that it's
possible for more than one damaged segment to fall in the same bup-fsck(1) recovery
block, so you might not damage as many recovery blocks as you expect. If this is a
problem, use --equal.

-s, --size=maxblocksize
the maximum size, in bytes, of each damaged block (default 1 unless --percent is
specified). Note that because of the way bup-fsck(1) works, a multi-byte block
could fall on the boundary between two recovery blocks, and thus damaging two
separate recovery blocks. In small files, it's also possible for a damaged block
to be larger than a recovery block. If these issues might be a problem, you should
use the default damage size of one byte.

--percent=maxblockpercent
the maximum size, in percent of the original file, of each damaged block. If both
--size and --percent are given, the maximum block size is the minimum of the two
restrictions. You can use this to ensure that a given block will never damage more
than one or two git-fsck(1) recovery blocks.

-S, --seed=randomseed
seed the random number generator with the given value. If you use this option,
your tests will be repeatable, since the damaged block offsets, sizes, and contents
will be the same every time. By default, the random numbers are different every
time (so you can run tests in a loop and repeatedly test with different damage each
time).

--equal
instead of choosing random offsets for each damaged block, space the blocks equally
throughout the file, starting at offset 0. If you also choose a correct maximum
block size, this can guarantee that any given damage block never damages more than
one git-fsck(1) recovery block. (This is also guaranteed if you use -s 1.)

EXAMPLES


# make a backup in case things go horribly wrong
cp -pPR ~/.bup/objects/pack ~/bup-packs.bak

# generate recovery blocks for all packs
bup fsck -g

# deliberately damage the packs
bup damage -n 10 -s 1 -S 0 ~/.bup/objects/pack/*.{pack,idx}

# recover from the damage
bup fsck -r

Use bup-damage online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    aa-clickquery
    aa-clickquery
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    --click-fra...
    Run aa-clickquery
  • 2
    aa-exec-click
    aa-exec-click
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpio
    cpio
    cpio - copy files to and from archives ...
    Run cpio
  • 4
    cpipe
    cpipe
    cpipe - copy stdin to stdout while
    counting bytes and reporting progress ...
    Run cpipe
  • 5
    FvwmSave
    FvwmSave
    FvwmSave - the Fvwm desktop-layout
    saving module ...
    Run FvwmSave
  • 6
    FvwmSave1
    FvwmSave1
    FvwmSave - the FVWM desktop-layout
    saving module ...
    Run FvwmSave1
  • More »

Ad