How to synchronize data between S3 storages

Ubuntu Сегодня, 14:00 sobir 13 0


In this post, we'll synchronize data between S3 storages.

It's assumed that you already have 2 S3 storages and a separate server with installed rclone.

The next steps help you start copying data from one S3 storage to another.

1. On the separate server install the rclone utility:
Debian-like
apt install rclone -y

2. Create rclone config with the following:
vi ~/.config/rclone/rclone.conf
[simple-storage1]
type = s3
provider = Other
access_key_id = <put_simple-storage1_access_key>
secret_access_key = <put_simple-storage1_secret_key>
endpoint = https://simple-storage1.example.com

[simple-storage2]
type = s3
provider = Other
access_key_id = <put_simple-storage2_access_key>
secret_access_key = <put_simple-storage2_secret_key>
endpoint = https://simple-storage2.example.com

3. Check buckets and files on S3 storages:
rclone lsd simple-storage1:
rclone lsd simple-storage2:
rclone ls simple-storage1:bucket1
rclone ls simple-storage2:bucket2

4. Run the sync from simple-storage1 to simple-storage2:
rclone sync simple-storage1:bucket1 simple-storage2:bucket2 --progress --log-file=/var/log/rclone-sync.log --log-level INFO

5. After the first full synchronization, you can use:
rclone sync simple-storage1:bucket1 simple-storage2:bucket2 --progress --size-only --log-file=/var/log/rclone-sync.log --log-level INFO
Похожие новости
How to install Docker and Compose on AlmaLinux

Quick setup docker and docker-compose with a simple bash script....

Подробнее
How to configure SQL Server AlwaysON on Ubuntu 22.04

This article describes how to create a SQL Server Always On availability group on Ubuntu 22.04....

Подробнее
How to setup failover inet connections in MikroTik

Failover to 2 ISPs with a simple script in RouterOS....

Подробнее
How to сonfigure ocserv with RADIUS

Configure ocserv VPN server with RADIUS authentication on Ubuntu 24.04....

Подробнее
How to renew database mirroring certificates SQL Server AlwaysON on Linux

In this article, we'll fixing SQL Server Database Mirroring expired certificate....

Подробнее
Ежедневный бэкап файлов сайта с уведомлением в Telegram

Скрипт по созданию daily бэкапов с помощью bash, tar, gunzip и cron....

Подробнее
Комментарии (0)
Новые комментарии
sobir8 ноября 2024 12:42

Цитата: FidoNet Цитата: sobir Цитата: FidoNet Спасибо за статью. Остальные

img
К комментарию
FidoNet7 ноября 2024 03:26

Цитата: sobir Цитата: FidoNet Спасибо за статью. Остальные статьи что находил

img
К комментарию
sobir27 октября 2024 19:02

Цитата: FidoNet Цитата: sobir Цитата: FidoNet Можт быть дело в

img
К комментарию
FidoNet25 октября 2024 22:04

Цитата: sobir Цитата: FidoNet Можт быть дело в dnsmasq.service? Ошибка Failed

img
К комментарию
sobir25 октября 2024 16:48

Цитата: FidoNet Цитата: sobir Цитата: FidoNet Спасибо за статью. Остальные

img
К комментарию
FidoNet20 октября 2024 12:12

Можт быть дело в dnsmasq.service? Ошибка Failed to set DNS configuration: Unit

img
К комментарию
Все комментарии
Какой дистрибутив Linux вы часто используете?
Календарь
«    Июнь 2026    »
ПнВтСрЧтПтСбВс
1234567
891011121314
15161718192021
22232425262728
2930 
Подпишись на канал