Skip to content

Instantly share code, notes, and snippets.

View mmontuori's full-sized avatar

Michael Montuori mmontuori

View GitHub Profile
@mmontuori
mmontuori / docker_colume_backup.sh
Created May 13, 2022 21:43
This gist contains a bash script which backs up all volumes found in docker volume list except the auto generated ones. The backup is executed in the /opt/backup directory, but it can be customized as needed together with other variables.
#!/bin/bash
volumes=`docker volume list | grep -v DRIVER | awk '{ print $2 }'`
backup_dir="/opt/backup"
volumes_to_backup=""
backup_retention_dyas="10"
for volume in $volumes; do
name_length=`echo $volume | wc -m`
if [ "$name_length" == "65" ]; then
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Michael Montuori",
"label": "Systems Engineer/Developer",
"image": "",
"email": "michael.montuori@gmail.com",
"summary": "Offer over 30 years of extensive IT experience encompassing systems engineering, cloud systems, application development, virtualization, and internetworking. Highly motivated senior technologist. Proven history in building systems and software consistently meeting or exceeding requirements. Works very well in small, large teams, and individually. Strong communication and interpersonal skills. Excellent technical leadership and mentoring experience. Maintains an active SECRET security clearance",