GEODE-2420: Warn a user if they try to export too much data, update gfsh command ref to match latest code changes
Project: http://git-wip-us.apache.org/repos/asf/geode/repo Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/d55ef2ed Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/d55ef2ed Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/d55ef2ed Branch: refs/heads/feature/GEM-1483 Commit: d55ef2ed3fb20182201955216b7fd3271bf33206 Parents: d5bde9f Author: Dave Barnes <dbar...@pivotal.io> Authored: Fri Jun 9 15:38:28 2017 -0700 Committer: Dave Barnes <dbar...@pivotal.io> Committed: Fri Jun 9 15:38:28 2017 -0700 ---------------------------------------------------------------------- .../gfsh/command-pages/export.html.md.erb | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/geode/blob/d55ef2ed/geode-docs/tools_modules/gfsh/command-pages/export.html.md.erb ---------------------------------------------------------------------- diff --git a/geode-docs/tools_modules/gfsh/command-pages/export.html.md.erb b/geode-docs/tools_modules/gfsh/command-pages/export.html.md.erb index f0c6d54..e9c79d3 100644 --- a/geode-docs/tools_modules/gfsh/command-pages/export.html.md.erb +++ b/geode-docs/tools_modules/gfsh/command-pages/export.html.md.erb @@ -186,23 +186,27 @@ export logs [--dir=value] [--group=value(,value)*] [--member=value(,value)*] | <span class="keyword parmname">\\-\\-end-time</span> | Log entries that occurred before this time will be exported. Format: yyyy/MM/dd/HH/mm/ss/SSS/z OR yyyy/MM/dd | no limit | | <span class="keyword parmname">\\-\\-logs-only</span> | Whether to export only logs (not statistics) | If parameter not specified: false. If parameter specified without a value: true | | <span class="keyword parmname">\\-\\-stats-only</span> | Whether to export only statistics (not logs) | If parameter not specified: false. If parameter specified without a value: true | -| <span class="keyword parmname">\\-\\-file-size-limit</span> | Limits size of the file that can be exported. Specify 0 (zero) for no limit. Value is in megabytes by default or [k,m,g,t] may be specified. | If parameter not specified: 100m. If parameter specified without a value: 0 | +| <span class="keyword parmname">\\-\\-file-size-limit</span> | Limits total unzipped size of the exported files. Specify 0 (zero) for no limit. Value is in megabytes by default or [k,m,g,t] may be specified. | If parameter not specified: 100m. If parameter specified without a value: 0 | <span class="tablecap">Table 4. Export Logs Parameters</span> -**Example Commands:** +**Example commands, showing output:** ``` pre -export logs --dir=data/logs +gfsh>export logs --dir=data/logs +Logs exported to the connected member's file system: /my-locator/data/logs/exportedLogs_1489513007261.zip ``` -**Sample Output:** - ``` pre -gfsh>export logs -Logs exported to the connected member's file system: /data/my-locator/exportedLogs_1489513007261.zip +gfsh>export logs --dir=data/logs --file-size-limit=1k +Estimated exported logs expanded file size = 95599, file-size-limit = 1024. +To disable exported logs file size check use option "--file-size-limit=0". + +gfsh>export logs --dir=data/logs --file-size-limit=99k +Logs exported to the connected member's file system: /my-locator/data/logs/exportedLogs_1489513007261.zip ``` + ## <a id="topic_sjg_bvt_gq" class="no-quick-link"></a>export offline-disk-store Export region data from an offline disk store into gemfire snapshot files.