S3 storage under Linux / Ubuntu

CrossFTP
https://www.crossftp.com/download.htm

wget https://www.crossftp.com/crossftp_1.99.9.deb -qP /tmp/
sudo dpkg -i /tmp/crossftp_*.deb

DragonDisk (s3 GUI manager)
http://www.s3-client.com/

sudo add-apt-repository -y ppa:rock-core/qt4
sudo apt-get install -y libqt4-dbus libqt4-network libqt4-xml libqtcore4 libqtgui4
 
# installation
wget http://www.s3-client.com/download-amazon-s3-client/dragondisk_1.0.5-0ubuntu_amd64.deb -qO /tmp/dragondisk_1.0.5-0ubuntu_amd64.deb
sudo dpkg -i /tmp/dragondisk_1.0.5-0ubuntu_amd64.deb

Ansible s3 module
https://docs.ansible.com/ansible/latest/modules/aws_s3_module.html
https://linuxhint.com/installing_minio_ubuntu/

Retention
https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config
https://help.switch.ch/engines/documentation/s3-like-object-storage/s3-lifecycle/
https://jahed.dev/2018/05/20/enforcing-retention-policies-on-s3/

MC

wget https://dl.minio.io/client/mc/release/linux-amd64/mc
 
mc ls mycloud/images
mc mb mycloud/images/2020-02-06/
mc cp amphora-x64-haproxy.raw.bz2 mycloud/images/2020-02-06/

Get credentials for bucket

# ssh cephadm.dev.i.example.com
radosgw-admin bucket list | jq -r '.[]' | egrep -i image | while read bucket; do
    radosgw-admin metadata get "bucket:${bucket}" | jq -c '.data | (.owner, (.bucket | {name, tenant, bucket_id}))'
done
 
# ssh kolla.dev.i.example.com
openstack project show ${PROJECT_ID}
openstack credential list --type ec2 | grep ${PROJECT_ID}
openstack user show ${USER_ID}

awscli

pip install awscli --upgrade --user
pip install awscli --upgrade

Links
https://icicimov.github.io/blog/devops/Duplicity-encrypted-backups-to-Amazon-S3/