script help required
i am looking for a script which will take backup of my directories one at a time in /home directory. After taking tar backup the script will compress the tar file and then delete original data.
i have create something using find command but it's not working getting errors. please help me out i am new to scripting.
bash-3.00# du -sh /home/*
6K /home/A
2K /home/B
2K /home/C
2K /home/D
2K /home/E
8K /home/lost+found
bash-3.00# cd /home/A
bash-3.00# ls -l
total 10
drwxr-xr-x 2 root root 512 Oct 16 16:30 1
bash-3.00# cd 1
bash-3.00# ls -l