- Log in to post comments
#!/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
#!/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