X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch.1;h=bba479e1fc0b2de1715839484546c671b4091a59;hb=968965635197a6646688c0edd759f0c4f74181cb;hp=5a8c83dc6b534ba58889708897cbbe23353adba7;hpb=a900ddaba661d693764d1a5f58f8b946bb788c4a;p=notmuch diff --git a/notmuch.1 b/notmuch.1 index 5a8c83dc..bba479e1 100644 --- a/notmuch.1 +++ b/notmuch.1 @@ -454,25 +454,38 @@ section below for details of the supported syntax for . The .BR dump " and " restore commands can be used to create a textual dump of email tags for backup -purposes, and to restore from that dump +purposes, and to restore from that dump. .RS 4 .TP 4 -.BR dump " []" +.BR dump " [] [--] []" Creates a plain-text dump of the tags of each message. -The output is to the given filename, if any, or to stdout. +Output is to the given filename, if any, or to stdout. Note that +using the filename argument is deprecated. These tags are the only data in the notmuch database that can't be recreated from the messages themselves. The output of notmuch dump is therefore the only critical thing to backup (and much more friendly to incremental backup than the native database files.) + +With no search terms, a dump of all messages in the database will be +generated. A "--" argument instructs notmuch that the +remaining arguments are search terms. + +See the +.B "SEARCH SYNTAX" +section below for details of the supported syntax for . +.RE + .TP -.BR restore " " +.BR restore " [--accumulate] []" Restores the tags from the given file (see -.BR "notmuch dump" "." +.BR "notmuch dump" ")." + +The input is read from the given filename, if any, or from stdin. Note: The dump file format is specifically chosen to be compatible with the format of files produced by sup-dump. @@ -480,6 +493,10 @@ So if you've previously been using sup for mail, then the .B "notmuch restore" command provides you a way to import all of your tags (or labels as sup calls them). + +The --accumulate switch causes the union of the existing and new tags to be +applied, instead of replacing each message's tags as they are read in from the +dump file. .RE The