#!/bin/bash for i in $(ls /home/); do if [ -d /home/${i} ]; then echo ${i} tar -cjf /home/${i}.$(date -I).tar.bz2 /home/${i} fi done
Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!