summaryrefslogtreecommitdiffstats
path: root/docs/usage
diff options
context:
space:
mode:
authorThomas Waldmann <tw@waldmann-edv.de>2020-12-11 00:34:11 +0100
committerThomas Waldmann <tw@waldmann-edv.de>2020-12-27 22:06:08 +0100
commitb8bb0494f678cd1579e460f5835656a05cf5521a (patch)
tree55f33848b118925dd983d43d00a070a96d118a29 /docs/usage
parent5d46395ed0768c24621c77e621f4ccaccf43f509 (diff)
create --sparse, file map support for the "fixed" chunker, see #14
a file map can be: - created internally inside chunkify by calling sparsemap, which uses SEEK_DATA / SEEK_HOLE to determine data and hole ranges inside a seekable sparse file. Usage: borg create --sparse --chunker-params=fixed,BLOCKSIZE ... BLOCKSIZE is the chunker blocksize here, not the filesystem blocksize! - made by some other means and given to the chunkify function. this is not used yet, but in future this could be used to only read the changed parts and seek over the (known) unchanged parts of a file. sparsemap: the generate range sizes are multiples of the fs block size. the tests assume 4kiB fs block size.
Diffstat (limited to 'docs/usage')
-rw-r--r--docs/usage/create.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/usage/create.rst b/docs/usage/create.rst
index d8e00df21..4b3966a47 100644
--- a/docs/usage/create.rst
+++ b/docs/usage/create.rst
@@ -43,7 +43,10 @@ Examples
$ borg create --chunker-params buzhash,10,23,16,4095 /path/to/repo::small /smallstuff
# Backup a raw device (must not be active/in use/mounted at that time)
- $ dd if=/dev/sdx bs=4M | borg create --chunker-params fixed,4194304 /path/to/repo::my-sdx -
+ $ borg create --read-special --chunker-params fixed,4194304 /path/to/repo::my-sdx /dev/sdX
+
+ # Backup a sparse disk image (must not be active/in use/mounted at that time)
+ $ borg create --sparse --chunker-params fixed,4194304 /path/to/repo::my-disk my-disk.raw
# No compression (none)
$ borg create --compression none /path/to/repo::arch ~