Skip to content

Commit a30f1a4

Browse files
committed
update README
1 parent 275ab5a commit a30f1a4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Usage:
183183

184184
Flags:
185185
--compressionLevel int the compression level to use with the compressor. Valid values are between 1-9. (default 6)
186-
--compressor string specify to use the internal (parallel) gzip implementation or an external binary (e.g. gzip, bzip2, pigz, lzma, xz, etc.) Syntax must be similar to the gzip compression tool) to compress the stream for storage. Please take into consideration time, memory, and CPU usage for any of the compressors used. All manifests utilize the internal compressor. (default "internal")
186+
--compressor string specify to use the internal (parallel) gzip implementation or an external binary (e.g. gzip, bzip2, pigz, lzma, xz, etc.) Syntax must be similar to the gzip compression tool) to compress the stream for storage. Please take into consideration time, memory, and CPU usage for any of the compressors used. All manifests utilize the internal compressor. If value is zfs, the zfs stream will be created compressed. See the -c flag on zfs send for more information. (default "internal")
187187
-D, --deduplication See the -D flag for zfs send for more information.
188188
--full set this flag to take a full backup of the specified volume using the most recent snapshot.
189189
--fullIfOlderThan duration set this flag to do an incremental backup of the most recent snapshot from the most recent snapshot found in the target unless the it's been greater than the time specified in this flag, then do a full backup. (default -1m0s)
@@ -197,12 +197,14 @@ Flags:
197197
--maxRetryTime duration the maximum time that can elapse when retrying a failed upload. Use 0 for no limit. (default 12h0m0s)
198198
--maxUploadSpeed uint the maximum upload speed (in KB/s) the program should use between all upload workers. Use 0 for no limit
199199
-p, --properties See the -p flag on zfs send for more information.
200+
-w, --raw See the -w flag on zfs send for more information.
200201
-R, --replication See the -R flag on zfs send for more information
201202
--resume set this flag to true when you want to try and resume a previously cancled or failed backup. It is up to the caller to ensure the same command line arguments are provided between the original backup and the resumed one.
202203
--separator string the separator to use between object component names. (default "|")
203204
-s, --skip-missing See the -s flag on zfs send for more information
205+
--snapshotPrefix string Only consider snapshots starting with the given snapshot prefix
204206
--uploadChunkSize int the chunk size, in MiB, to use when uploading. A minimum of 5MiB and maximum of 100MiB is enforced. (default 10)
205-
--volsize uint the maximum size (in MiB) a volume should be before splitting to a new volume. Note: zfsbackup will try its best to stay close/under this limit but it is not garaunteed. (default 200)
207+
--volsize uint the maximum size (in MiB) a volume should be before splitting to a new volume. Note: zfsbackup will try its best to stay close/under this limit but it is not guaranteed. (default 200)
206208

207209
Global Flags:
208210
--encryptTo string the email of the user to encrypt the data to from the provided public keyring.

files/jobinfo.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ import (
3232
"github.com/someone1/zfsbackup-go/log"
3333
)
3434

35-
var (
36-
disallowedSeps = regexp.MustCompile(`^[\w\-:\.]+`) // Disallowed by ZFS
37-
)
35+
var disallowedSeps = regexp.MustCompile(`^[\w\-:\.]+`) // Disallowed by ZFS
3836

3937
// JobInfo represents the relevant information for a job that can be used to read
4038
// in details of that job at a later time.
@@ -137,6 +135,7 @@ func (j *JobInfo) String() string {
137135
output,
138136
fmt.Sprintf("Replication: %v", j.Replication),
139137
fmt.Sprintf("SkipMissing: %v", j.SkipMissing),
138+
fmt.Sprintf("Raw: %v", j.Raw),
140139
fmt.Sprintf("Archives: %d - %d bytes (%s)", len(j.Volumes), totalWrittenBytes, humanize.IBytes(totalWrittenBytes)),
141140
fmt.Sprintf("Volume Size (Raw): %d bytes (%s)", j.ZFSStreamBytes, humanize.IBytes(j.ZFSStreamBytes)),
142141
fmt.Sprintf("Uploaded: %v (took %v)\n\n", j.StartTime, j.EndTime.Sub(j.StartTime)),

0 commit comments

Comments
 (0)