Cron : gestion des tâches planifiées

Cron est un programme disponible sur les systèmes de type Unix (Linux, Mac Osx …) permettant de planifier des taches régulières. Il est en effet intéressant que les tâches habituelles soient réalisées automatiquement par le système plutôt que d’avoir à les lancer manuellement en tant qu’utilisateur. Cron est un démon, il tourne donc en tâche […]

En Lire Plus

Docker MySQL and MariaDB Backup Script

With MySQL or MariaDB containers, you put the persistent database data on a Docker volume, but you still back up the database with mysqldump. This prevents the data you are backing up from being inconsistent, since you would have to make sure that no database operators are happening at the same time when you dump […]

En Lire Plus

How to backup data from docker-compose MariaDB container using mysqldump

For containers with a MYSQL_ROOT_PASSWORD stored in .env This is the recommended best practice. For this example, we will assume that .env looks like this: .env 📋 Copy to clipboard⇓ Download MARIADB_ROOT_PASSWORD=mophur3roh6eegiL8Eeto7goneeFei To create a dump: backup-data-from-docker-compose-mariadb-container-using-mysqldump.sh 📋 Copy to clipboard⇓ Download source .env && docker-compose exec mariadb mysqldump -uroot -p${MARIADB_ROOT_PASSWORD} –all-databases > mariadb-dump-$(date +%F_%H-%M-%S).sql To […]

En Lire Plus

Proxmox VE

1 Introduction Proxmox VE is based on Debian, therefore the disk image (ISO file) provided by them includes a complete Debian system (« stretch » for version 5.x) as well as all necessary Proxmox VE packages. Using the installer will guide you through the setup, allowing you to partition the local disk(s), apply basic system configurations (e.g. […]

En Lire Plus

Formatting Disks over 2 TiB with parted

I just added a big hard drive to my ESXi box and I created a virtual drive of about 3.5 TiB for a virtualized machine.   But I had a problem… When I went to format it… using my typical method of using fdisk to create a partition I noticed a problem… If I try to […]

En Lire Plus

Openvpn Web Interface

add to /etc/openvpn/server.conf management 127.0.0.1 5555 restart openvpn server systemctl restart openvpn@server.service add an OpenVPN Monitor Python package – this will run via a Gunicorn web server and show active connections, mkdir /opt/openvpn-monitor create a virtual env (not required but good practice with py packages) cd /opt/openvpn-monitor apt install virtualenv python3-virtualenv python3-pip python3-venv apt install […]

En Lire Plus

Configure Your OpenVPN Server

Configure Your OpenVPN Server First, update your system to the latest version. sudo apt update && sudo apt upgrade -y Next, install OpenVPN and Easy-RSA. OpenVPN is a robust and highly flexible VPN software that uses all of the encryption, authentication, and certification features of the OpenSSL library to implement virtual private network (VPN) techniques. […]

En Lire Plus

Changing the volume name on an LVM machine

Changing the volume group name on an LVM machine is easy, but doing it so that it doesn’t break everything is hard. Here are some pointers on how to change the volume group name on an Ubuntu LVM machine. First, use vgdisplay to show your current volume groups, choose the one you want to rename […]

En Lire Plus

How do I access vmdk’s from a foreign datastore

If you ever need a version of vmfs-fuse for vmdks larger than 256 GB, you can use a Linux LiveCD that  I made http://sanbarrow.com/livecds/moa64-nogui/MOA64-nogui-incl-src-111014-efi.iso Boot it and log in as root – password is sanbarrow Then do sudo su cd / wget http://perdichizzi.net/files/sbin.tgz tar zxf sbin.tgz Now you can use /standalone/sbin/vmfs-fuse which can handle vmdks […]

En Lire Plus