#!/bin/bash SE_SSH="cluster.univ@se.imbg.org.ua" SE_PATH="/mnt/se1/backups/cluster.univ.kiev.ua/vm-images/" VGNAME="fccast" GZIP_CMD="pigz -6 -p 7" BACKUP_PATH="/root/backup" source "${BACKUP_PATH}/libbackup.sh" ddssh_makedirs $SE_SSH $SE_PATH for lv in $( lvs -o lv_name $VGNAME | sed '1d' ); do do_ddgzipssh "/dev/$VGNAME/$lv" $SE_SSH $SE_PATH done