Open Suncatcher opened 2 years ago
Try using:
-label:somelabel
To exclude a certain label.
ok, thanks. Will try
I tried
gyb --email mail@mail.com --action estimate --search "-label:A"
and got
usage: gyb.exe [--email EMAIL]
[--action {backup,restore,restore-group,restore-mbox,count,purge,purge-labels,print-labels,estimate,quota,reindex,revoke,split-mbox,create-project,delete-projects,check-service-account,create-label}]
[--search GMAIL_SEARCH] [--local-folder LOCAL_FOLDER] [--label-restored LABEL_RESTORED]
[--label-prefix LABEL_PREFIX] [--strip-labels] [--vault] [--service-account] [--use-admin USE_ADMIN]
[--spam-trash] [--batch-size {1 - 100}] [--noresume] [--fast-incremental] [--debug]
[--memory-limit MEMORY_LIMIT] [--tls-min-version {TLSv1_2,TLSv1_3}]
[--tls-max-version {TLSv1_2,TLSv1_3}] [--ca-file CA_FILE]
[--extra-reserved-labels EXTRA_RESERVED_LABELS [EXTRA_RESERVED_LABELS ...]]
[--extra-system-labels EXTRA_SYSTEM_LABELS [EXTRA_SYSTEM_LABELS ...]] [--config-folder CONFIG_FOLDER]
[--cleanup] [--cleanup-date CLEANUP_DATE] [--cleanup-from CLEANUP_FROM] [--version] [--short-version]
[--help]
gyb.exe: error: argument --search: expected one argument
however it works for gyb --email mail@mail.com --action estimate --search "label:A"
.
So it seems this syntax is not supported
Please confirm the following:
Having such scenario:
A
A
-labeled (30%) and its own messages (70%)A
-labeled messages (i.e. only 70%), only its ownAs far as I know, selective backup won't help me with that, it can only include, not exclude labels into backup. I didn't find in the gmail search syntax and expression like
not label:A
.I guess GYB does not handle such situations with duplicates: when target mailbox where the backup is restored already contains part of the messages, which are technically duplicated between each other.
Maybe GYB can scan message RFC 5322 headers?