Korzystając z tej witryny, zgadzasz się na Polityka prywatności.
Przyjąć
EnterineEnterineEnterine
  • DOM
  • To pro
  • Tech
  • Microsoft
    • Lazur
    • Menedżer konfiguracji/SCCM
    • DPM
    • Orkiestrator
    • Hyper-V.
    • Niejawny tester Microsoft Edge
    • MSI
    • Biuro 365
    • Nieznajomy biura
    • Power bi
    • Skype'a
    • Serwer SQL
    • Zespoły
  • OKNA
    • Centrum administracyjne systemu Windows
    • Klient Windowsa
    • Serwer Windows
  • Lista kolekcji zapytań SCCM
Czytanie: How to Sync AWS S3 Files using AWS CLI: Przewodnik krok po kroku
Zmiana rozmiaru czcionkiAaa
EnterineEnterine
Zmiana rozmiaru czcionkiAaa
  • DOM
  • To pro
  • Tech
  • Microsoft
  • OKNA
  • Lista kolekcji zapytań SCCM
Szukaj
  • DOM
  • To pro
  • Tech
  • Microsoft
    • Lazur
    • Menedżer konfiguracji/SCCM
    • DPM
    • Orkiestrator
    • Hyper-V.
    • Niejawny tester Microsoft Edge
    • MSI
    • Biuro 365
    • Nieznajomy biura
    • Power bi
    • Skype'a
    • Serwer SQL
    • Zespoły
  • OKNA
    • Centrum administracyjne systemu Windows
    • Klient Windowsa
    • Serwer Windows
  • Lista kolekcji zapytań SCCM
AWS

How to Sync AWS S3 Files using AWS CLI: Przewodnik krok po kroku

Opublikowany: Luty 18, 2024
4 Min. odczyt
UDZIAŁ

How to Sync AWS S3 Files using AWS CLI: Przewodnik krok po kroku.

Zawartość
Rozwiązanie1. Install the AWS CLI2. Get your access keys3. Configure AWS CLI4. Use AWS CLI!

How it to do manually:

1. Log into the AWS console, navigate to S3 Service;

2. Find the right bucket, find the right folder;

3. Open the first file, click download;

4. Go back, and open the next file, over and over again.

With AWS CLI, that entire process took less:

aws s3 sync s3://<bucket>/<path> </local/path>

Rozwiązanie

1. Install the AWS CLI

Download AWS Client (I`m using v1) here.

NOTATKA: You can also download it and use it on macOS or Linux systems.

2. Get your access keys

Before using AWS Client we must obtain access keys (this is need for feature client configuration)

1. Log into the IAM Console;

2. Idź do Użytkownicy.;

3. Click on your user name;

4. Go to the Security credentials patka;

5. Trzask Create access key (you can create only two keys for one user account);

6. You’ll see your Access key ID. Trzask Show to see your Secret access key.

NOTATKA: Amazon will show this secret access key only once. If you lost it – you must obtain a new key.

3. Configure AWS CLI

1. Uruchomić aws configure and answer the prompts.

2. On the first run of aws configure you will just see [None];

3. In the future you can change any of these values by running aws cli again;

4. The prompts will look like AWS Access Key ID [****************ABCD], and you will be able to keep the configured value by hitting return.

$ aws configure
AWS Access Key ID [None]: <enter the access key you just created>
AWS Secret Access Key [None]: <enter the secret access key you just created>
Default region name [None]: <enter region - valid options are listed below >
Default output format [None]: <format - valid options are listed below >
  • Valid region names (documented here) are RegionName:
    • ap-northeast-1 [Asia Pacific (Tokyo)]
    • ap-northeast-2 [Asia Pacific (Seoul)]
    • ap-south-1 Asia [Pacific (Mumbai)]
    • ap-southeast-1 [Asia Pacific (Singapore)]
    • ap-southeast-2 [Asia Pacific (Sydney)]
    • ca-central-1 [Canada (Central)]
    • eu-central-1 [EU Central (Frankfurt)]
    • eu-west-1 [EU West (Ireland)]
    • eu-west-2 [EU West (London)]
    • sa-east-1 [South America (Sao Paulo)]
    • us-east-1 [US East (Virginia)]
    • us-east-2 [US East (Ohio)]
    • us-west-1 [US West (N. California)]
    • us-west-2 [US West (Oregon)]
  • Valid output formats are
    • json
    • table
    • text

4. Use AWS CLI!

Command sync recursively copies new and updated files from the source directory to the destination. Only creates folders in the destination if they contain one or more files. At this moment we able to download an entire collection of images with a simple

aws s3 sync s3://cdn.enterinit.com/photos/ ~/d:\AWS
OZNACZONE:AWSWiersz poleceń (CMD)S3OknaOkna 10
Poprzedni artykuł Microsoft Teams gets Walkie Talkie, SMS sign-in and more new features
Następny artykuł Microsoft Teams Roundup w styczniu 2020
Zostaw komentarz Zostaw komentarz

Zostaw odpowiedź Anuluj odpowiedź

Twój adres e-mail nie zostanie opublikowany. Wymagane pola są zaznaczone *

Ta strona korzysta z Akismet w celu ograniczenia spamu. Dowiedz się, jak przetwarzane są dane dotyczące Twoich komentarzy.

Tłumaczenie

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
przez Transposh - translation plugin for wordpress

Popularne posty

Wymagania systemowe dla serwera Windows 2016
Serwer Windows
Lista kolekcji zapytań programu Menedżer konfiguracji
Lista kolekcji zapytań programu Menedżer konfiguracji
Configmgr
Nawigacja strukturalna/zarządzana włączona na nowoczesnych stronach w klasycznych witrynach zespołu
Tech
SCCM Nie udało się uzyskać lokalizacji DP w oczekiwanej wersji z MP
Configmgr

Ostatnie posty

Instalowanie i konfigurowanie Fail2ban dla ochrony SSH na Ubuntu 24.04
Linuksa
Włączanie i konfiguracja FirewallD na AlmaLinux
Linuksa
Tworzenie użytkownika i konfiguracja klucza SSH w AlmaLinux
Linuksa
Jak zresetować hasło w AlmaLinux
Linuksa

© 2023 Enterine

Przejdź do wersji mobilnej
Witamy z powrotem!

Zaloguj się na swoje konto

Nazwa użytkownika lub adres e-mail
Hasło

Zgubiłeś hasło?