#!/bin/sh HOMEDIRBASE=/data/home BACKUPDIRBASE=/data/SendTarHere cd $HOMEDIRBASE for DIRS in * do tar -cf ${BACKUPDIRBASE}/${DIRS}.tar $DIRS done