From: Gabriel Filion Date: Sun, 8 Sep 2013 03:26:15 +0000 (-0400) Subject: Update bup-split(1); document -d, clarify the split "modes", and reorganize. X-Git-Tag: 0.25-rc3~8 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=f8649247016802f9d5900a58bb03778eb8e9bcab;p=bup.git Update bup-split(1); document -d, clarify the split "modes", and reorganize. Update the synopsis, document the "-d DATE" option, and make a clearer distinction between normal options and the options that select the split "mode". Signed-off-by: Gabriel Filion [rlb@defaultvalue.org: add dashes to seconds-since-epoch; adjust the MODES text a bit and move -b down; make a few other edits and adjust commit message.] Signed-off-by: Rob Browning --- diff --git a/Documentation/bup-split.md b/Documentation/bup-split.md index 396e45a..12e866d 100644 --- a/Documentation/bup-split.md +++ b/Documentation/bup-split.md @@ -8,10 +8,17 @@ bup-split - save individual files to bup backup sets # SYNOPSIS -bup split [-r *host*:*path*] \<-b|-t|-c|-n *name*\> [-v] [-q] - [\--bench] [\--max-pack-size=*bytes*] [-#] - [\--max-pack-objects=*n*] [\--fanout=*count*] - [\--git-ids] [\--keep-boundaries] [filenames...] +bup split \[-t\] \[-c\] \[-n *name*\] COMMON\_OPTIONS + +bup split -b COMMON\_OPTIONS + +bup split \<--noop \[--copy\]|--copy\> COMMON\_OPTIONS + +COMMON\_OPTIONS + ~ \[-r *host*:*path*\] \[-v\] \[-q\] \[-d *seconds-since-epoch*\] \[\--bench\] + \[\--max-pack-size=*bytes*\] \[-#\] \[\--bwlimit=*bytes*\] + \[\--max-pack-objects=*n*\] \[\--fanout=*count*\] + \[\--keep-boundaries\] \[--git-ids | filenames...\] # DESCRIPTION @@ -41,6 +48,41 @@ accomplish this, however.) To get the data back, use `bup-join`(1). +# MODES + +These options select the primary behavior of the command, with -n +being the most likely choice. + +-n, \--name=*name* +: after creating the dataset, create a git branch + named *name* so that it can be accessed using + that name. If *name* already exists, the new dataset + will be considered a descendant of the old *name*. + (Thus, you can continually create new datasets with + the same name, and later view the history of that + dataset to see how it has changed over time.) + +-t, \--tree +: output the git tree id of the resulting dataset. + +-c, \--commit +: output the git commit id of the resulting dataset. + +-b, \--blobs +: output a series of git blob ids that correspond to the chunks in + the dataset. Incompatible with -n, -t, and -c. + +\--noop +: read the data and split it into blocks based on the "bupsplit" + rolling checksum algorithm, but don't do anything with the blocks. + This is mostly useful for benchmarking. Incompatible with -n, -t, + -c, and -b. + +\--copy +: like `--noop`, but also write the data to stdout. This can be + useful for benchmarking the speed of read+bupsplit+write for large + amounts of data. Incompatible with -n, -t, -c, and -b. + # OPTIONS -r, \--remote=*host*:*path* @@ -51,25 +93,9 @@ To get the data back, use `bup-join`(1). or private key to use for the SSH connection, we recommend you use the `~/.ssh/config` file. --b, \--blobs -: output a series of git blob ids that correspond to the - chunks in the dataset. - --t, \--tree -: output the git tree id of the resulting dataset. - --c, \--commit -: output the git commit id of the resulting dataset. +-d, \--date=*seconds-since-epoch* +: specify the date inscribed in the commit (seconds since 1970-01-01). --n, \--name=*name* -: after creating the dataset, create a git branch - named *name* so that it can be accessed using - that name. If *name* already exists, the new dataset - will be considered a descendant of the old *name*. - (Thus, you can continually create new datasets with - the same name, and later view the history of that - dataset to see how it has changed over time.) - -q, \--quiet : disable progress messages. @@ -97,16 +123,6 @@ To get the data back, use `bup-join`(1). only one of the files; the end of one of the input files always ends a blob. -\--noop -: read the data and split it into blocks based on the "bupsplit" - rolling checksum algorithm, but don't do anything with - the blocks. This is mostly useful for benchmarking. - -\--copy -: like `--noop`, but also write the data to stdout. This - can be useful for benchmarking the speed of read+bupsplit+write - for large amounts of data. - \--bench : print benchmark timings to stderr.