I want to write a shell script which will take the backup of individual user home dirs existing in /home partition. I am using the following script but it is continuing to be in loop and it is taking all the backup in a single tar file.
# thsi script is used to take the backup of individual folders
# this script is userd to take the complete backup of the /home users and /apps user
# AUTHOR : - Veer Kumar
for files in *
tar -czvf $OF *
done # exiting for loop
unset $files # un setting set variables
exit 0 # exititng shell script
can any one help me to take the backup of all users in /home partition.