#!/bin/bash EXCLUDES="--exclude=pxelinux.cfg/default --exclude=settings.* --exclude=t5 --exclude=t6 --exclude=t7 --exclude=hwprofile/aktuellesprofil --exclude=sn" for IP in {31..33}; do echo $IP for DIR in www scripts tftpboot number; do rsync -av ${EXCLUDES} /media/${DIR}/ root@192.168.1.${IP}:/media/${DIR}/ done done
Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!