Archive for the ‘Raspberry Pi’ Category

MinIO – for Developers #1-7

Dienstag, November 1st, 2022

Raspberry Pi – einfache Installation von Docker Compose Portainer

Dienstag, November 1st, 2022

MinIO Client (mc) – eine tägliche Backup Strategie ‚ProtectIT‘ mit MinIO S3 Storage

Montag, Oktober 31st, 2022
root@rpi-iot-jsho-cam-02:~# vi BackupModus.sh
#!/bin/bash
#FileName: BackupModus.sh
#crontab: 59 23 * * * /root/BackupModus.sh
set -x
BackupDay=`date „+%Y-%m-%d“`
sleep 120
LocalBackupPath=“/var/lib/motioneye“
if [[ -d /Backup/BackupDay ]] ; then rm -rf /Backup/BackupDay ; fi
if [[ ! -d /Backup/BackupDay/$BackupDay ]] ; then mkdir -p /Backup/BackupDay/$BackupDay ; fi
cd $LocalBackupPath
tar cvf /Backup/BackupDay/$BackupDay/$BackupDay.tar */$BackupDay
BackupOption=“day“
if [ `date „+%u“` == „1“ ]; then BackupOption=“week“ ; fi
if [ `date „+%d“` == „01“ ]; then BackupOption=“month“ ; fi
if [ `date „+%m.%d“` == „01.01“ ]; then BackupOption=“year“ ; fi
LocalBackupPath=“/Backup/BackupDay/$BackupDay“
MinioBucket=“myminio/worm-with-versioning-and-retention–$BackupOption/$BackupDay“
MCPATH=“/root/mc“
$MCPATH mirror –json –overwrite –remove –preserve $LocalBackupPath $MinioBucket
root@rpi-iot-jsho-cam-02:~#
root@rpi-iot-jsho-cam-02:~# ./BackupModus.sh
++ date +%Y-%m-%d
+ BackupDay=2022-10-04
+ sleep 1
+ LocalBackupPath=/var/lib/motioneye
+ [[ -d /Backup/BackupDay ]]
+ rm -rf /Backup/BackupDay
+ [[ ! -d /Backup/BackupDay/2022-10-04 ]]
+ mkdir -p /Backup/BackupDay/2022-10-04
+ cd /var/lib/motioneye
+ tar cvf /Backup/BackupDay/2022-10-04/2022-10-04.tar Camera1/2022-10-04 Camera2/2022-10-04 Camera3/2022-10-04 Camera4/2022-10-04
Camera1/2022-10-04/

Camera4/2022-10-04/08-01-55.jpg
+ BackupOption=day
++ date +%u
+ ‚[‚ 2 == 1 ‚]‘
++ date +%d
+ ‚[‚ 04 == 01 ‚]‘
++ date +%m.%d
+ ‚[‚ 10.04 == 01.01 ‚]‘
+ LocalBackupPath=/Backup/BackupDay/2022-10-04
+ MinioBucket=myminio/worm-with-versioning-and-retention–day
+ MCPATH=/root/mc
+ /root/mc mirror –json –overwrite –remove –preserve /Backup/BackupDay/2022-10-04 myminio/worm-with-versioning-and-retention–day/2022-10-04
{
„status“: „success“,
„source“: „/Backup/BackupDay/2022-10-04/2022-10-04.tar“,
„target“: „myminio/worm-with-versioning-and-retention–day/2022-10-04/2022-10-04.tar“,
„size“: 27351040,
„totalCount“: 1,
„totalSize“: 27351040
}
{
„status“: „success“,
„total“: 0,
„transferred“: 54702080,
„speed“: 4100401.619486594
root@rpi-iot-jsho-cam-02:~#

… after four weeks

… after one month

Veeam Backup & Replication 11 Enterprise Plus – Capacity Tier also referred to as Cloud Tier expands the Scale-out Backup Repository abilities and allows you to store backup data in cloud-based object storage or S3 compatible on-premises storage

Samstag, Oktober 29th, 2022

MinIO Training – how to work with JavaScript

Freitag, Oktober 28th, 2022

MinIO – why kubernetes needs object storage

Freitag, Oktober 28th, 2022

Zabbix Founder and CEO Alexei Vladishev – Zabbix Summit 2022

Freitag, Oktober 28th, 2022

MinIO Training – how to install on Docker based systems

Donnerstag, Oktober 27th, 2022

MinIO – how to install on Red Hat Enterprise Linux based systems

Donnerstag, Oktober 27th, 2022

Raspberry Pi OS – workaround um mittels RDP zugreifen zu können

Donnerstag, Oktober 27th, 2022

MinIO and Restic Pi – building a raspberry pi with an external hard drive to selfhost backups

Mittwoch, Oktober 26th, 2022

Raspberry Pi Imager 1.7.3 – released

Dienstag, Oktober 25th, 2022

MinIO and Veeam Backup & Replication – joined forces to deliver a masterclass in designing high performance systems for backup/restore and ransomware use cases

Montag, Oktober 24th, 2022

Raspberry Pi – OpenSSL SSL how to use a private key and public certificate with an S3-compatible object storage server with MinIO on DietPi

Mittwoch, Oktober 19th, 2022
Create self-signed x509 certificates with Subject Alternative Names (SAN)
[v3_ca]
this is the value you specified on x509_extensions
subjectAltName:IP@
specifies an IP address in Internet Protocol version 4 (IPv4) format
root@dpi-iot-jsho-MinIO-02:~# cd /etc/ssl
root@dpi-iot-jsho-MinIO-02:/etc/ssl# vi openssl.cnf
[ v3_ca ]
subjectAltName = IP:192.168.1.175
root@dpi-iot-jsho-MinIO-02:~# mkdir -p .minio/certs
root@dpi-iot-jsho-MinIO-02:~/.minio/certs# openssl req -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out public.crt -keyout private.key
Generating a RSA private key
.++++
………………………………………………………………………………………………………………………++++
writing new private key to ‚private.key‘
—–
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ‚.‘, the field will be left blank.
—–
Country Name (2 letter code) [AU]:DE
State or Province Name (full name) [Some-State]:Bavarian
Locality Name (eg, city) []:St.Wolfgang
Organization Name (eg, company) [Internet Widgits Pty Ltd]:jsho
Organizational Unit Name (eg, section) []:jsho
Common Name (e.g. server FQDN or YOUR name) []:dpi-iot-jsho-MinIO-02.fritz.box
Email Address []:josef.schuster@dpsolution.de
root@dpi-iot-jsho-MinIO-02:~/.minio/certs#
root@dpi-iot-jsho-MinIO-02:~#
root@dpi-iot-jsho-MinIO-02:~# ./minio server /mnt/USBStick/MinIO
MinIO Object Storage Server
Copyright: 2015-2022 MinIO, Inc.
License: GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>
Version: RELEASE.2022-10-15T19-57-03Z (go1.18.7 linux/arm)
Status: 1 Online, 0 Offline.
API: https://192.168.1.175:9000 https://127.0.0.1:9000
RootUser: minioadmin
RootPass: minioadmin
Console: https://192.168.1.175:40403 https://127.0.0.1:40403
RootUser: minioadmin
RootPass: minioadmin
root@dpi-iot-jsho-MinIO-02:~#
root@dpi-iot-jsho-MinIO-02:~# ./mc alias set myminio https://192.168.1.175:9000 <…> <…>
Fingerprint of myminio public key: f3da8375f54838362aa10bbc03e6bf7c1df52f0a01106290079a9c18ae5a2f44
Confirm public key y/N: y
Added `myminio` successfully.
root@dpi-iot-jsho-MinIO-02:~#
https://dpi-iot-jsho-MinIO-02.fritz.box:9000

 

Microsoft Windows Server 2022 – einfache Installation Veeam Backup & Replication 11 Community Edition (CE) mit einem Fujitsu Futro S740

MinIO Client (mc) – the ‚mc ilm ls‘ command displays information on a MinIO server

Freitag, Oktober 14th, 2022
root@rpi-iot-jsho-cam-02:~# ./mc –json ilm ls myminio/worm-with-versioning-and-retention–day
{
„status“: „success“,
„target“: „myminio/worm-with-versioning-and-retention–day“,
„config“: {
„Rules“: [
{
„Expiration“: {
„Days“: 10
},
„ID“: „ccuhi9imc0l03bund8j0“,
„Status“: „Enabled“
},
{
„ID“: „ccuhieimc0l03bund8jg“,
„NoncurrentVersionExpiration“: {
„NoncurrentDays“: 3,
„NewerNoncurrentVersions“: 0
},
„Status“: „Enabled“
}
]
}
}

root@rpi-iot-jsho-cam-02:~#
root@rpi-iot-jsho-cam-02:~# ./mc –json ilm ls myminio/worm-with-versioning-and-retention–week
{
„status“: „success“,
„target“: „myminio/worm-with-versioning-and-retention–week“,
„config“: {
„Rules“: [
{
„Expiration“: {
„Days“: 24
},
„ID“: „ccuhj3amc0l03bund8k0“,
„Status“: „Enabled“
},
{
„ID“: „ccuhj72mc0l03bund8kg“,
„NoncurrentVersionExpiration“: {
„NoncurrentDays“: 3,
„NewerNoncurrentVersions“: 0
},
„Status“: „Enabled“
}
]
}
}
root@rpi-iot-jsho-cam-02:~#
root@rpi-iot-jsho-cam-02:~# ./mc –json ilm ls myminio/worm-with-versioning-and-retention–month
{
„status“: „success“,
„target“: „myminio/worm-with-versioning-and-retention–month“,
„config“: {
„Rules“: [
{
„Expiration“: {
„Days“: 93
},
„ID“: „ccuhjdqmc0l03bund8l0“,
„Status“: „Enabled“
},
{
„ID“: „ccuhji2mc0l03bund8lg“,
„NoncurrentVersionExpiration“: {
„NoncurrentDays“: 3,
„NewerNoncurrentVersions“: 0
},
„Status“: „Enabled“
}
]
}
}
root@rpi-iot-jsho-cam-02:~#
root@rpi-iot-jsho-cam-02:~# ./mc –json ilm ls myminio/worm-with-versioning-and-retention–year
{
„status“: „success“,
„target“: „myminio/worm-with-versioning-and-retention–year“,
„config“: {
„Rules“: [
{
„Expiration“: {
„Days“: 733
},
„ID“: „ccuhjpqmc0l03bund8m0“,
„Status“: „Enabled“
},
{
„ID“: „ccuhjuqmc0l03bund8mg“,
„NoncurrentVersionExpiration“: {
„NoncurrentDays“: 3,
„NewerNoncurrentVersions“: 0
},
„Status“: „Enabled“
}
]
}
}
root@rpi-iot-jsho-cam-02:~#