From 25beab44e3d393d6fb8875700da542764d4d87a5 Mon Sep 17 00:00:00 2001 From: STAM Date: Fri, 23 Sep 2022 18:21:13 +0300 Subject: [PATCH 1/4] readme --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index d22f550..17f6c59 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,21 @@ Options: -?, -h, --help Show help and usage information ``` +## Example of useage: + +### Download or update all local archive +``` +PS> .\atlassian-downloader.exe --output-dir "P:\Atlassian" +or +bash# ./atlassian-downloader --output-dir "/mnt/nfs/atlassian" +``` +If you already have some folders at output path, they will be ignored and not be downloaded again and skipped. Downloader will be download only new versions of files which not be present locally yet. + +### Show only urls from jsons +``` +PS> .\atlassian-downloader.exe --action ListURLsor +bash# ./atlassian-downloader --action ListURLs +``` ## Additional settings File `src/appSettings.json` contains additional settings, like [loglevel](https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.loglevel?view=dotnet-plat-ext-5.0#fields) and [console output theme](https://github.com/serilog/serilog-sinks-console). You can set it up via editing this file. From 7fa7bfa53f5755a19c5cec598de1c4d52806d43f Mon Sep 17 00:00:00 2001 From: STAM Date: Fri, 23 Sep 2022 18:22:49 +0300 Subject: [PATCH 2/4] readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 17f6c59..f4a5e9b 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Options: ### Download or update all local archive ``` -PS> .\atlassian-downloader.exe --output-dir "P:\Atlassian" +PS> .\atlassian-downloader.exe --output-dir "P:\Atlassian" or bash# ./atlassian-downloader --output-dir "/mnt/nfs/atlassian" ``` @@ -59,7 +59,8 @@ If you already have some folders at output path, they will be ignored and not be ### Show only urls from jsons ``` -PS> .\atlassian-downloader.exe --action ListURLsor +PS> .\atlassian-downloader.exe --action ListURLs +or bash# ./atlassian-downloader --action ListURLs ``` From ee353d906f1df663f647fb6cde0f7cbd92380858 Mon Sep 17 00:00:00 2001 From: STAM Date: Fri, 23 Sep 2022 18:33:37 +0300 Subject: [PATCH 3/4] readme --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f4a5e9b..da86c4e 100644 --- a/README.md +++ b/README.md @@ -49,13 +49,20 @@ Options: ## Example of useage: -### Download or update all local archive +### How to download it all at first time, or get update of local archive ``` PS> .\atlassian-downloader.exe --output-dir "P:\Atlassian" or bash# ./atlassian-downloader --output-dir "/mnt/nfs/atlassian" ``` -If you already have some folders at output path, they will be ignored and not be downloaded again and skipped. Downloader will be download only new versions of files which not be present locally yet. +If you already have some folders at output path - they will be ignored and not be downloaded again and skipped. Downloader will be download only new versions of files which not be present locally yet. + +### Set only some url feed and dowload it: +``` +PS> .\atlassian-downloader.exe --output-dir "P:\Atlassian" --custom-feed https://my.atlassian.com/download/feeds/current/bamboo.json +or +bash# ./atlassian-downloader --output-dir "/mnt/nfs/atlassian" --custom-feed https://my.atlassian.com/download/feeds/current/bamboo.json +``` ### Show only urls from jsons ``` From d7bf8eea18f11639806a2da1aabd53537c87f2ed Mon Sep 17 00:00:00 2001 From: STAM Date: Fri, 23 Sep 2022 18:33:52 +0300 Subject: [PATCH 4/4] readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index da86c4e..b75c6b6 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,10 @@ or bash# ./atlassian-downloader --output-dir "/mnt/nfs/atlassian" --custom-feed https://my.atlassian.com/download/feeds/current/bamboo.json ``` +### cron or crontab example +``` +0 0 * 1 0 /opt/epicmorg/atlassian-downloader/atlassian-downloader --output-dir "/mnt/nfs/atlassian" +``` ### Show only urls from jsons ``` PS> .\atlassian-downloader.exe --action ListURLs