Thanks to this group I have the a fantastic backup script. I'd like to try to optimize it with your help.
I grep for the partitions to backup using the below:
grep "/usr1" /etc/vfstab
if [ $? -eq 0];
then <backup command> /usr1
fi
grep "/usr2" /etc/vfstab
if [ $? -eq 0];
then <backup command> /usr2
fi
In my environment the /usrX partitions are each an entire disk with user files or data. On some systems I may have up to 20.
How can I loop through the code and increment the "X" /usrX?
Thanks again for your advice all,
Michael42
I grep for the partitions to backup using the below:
grep "/usr1" /etc/vfstab
if [ $? -eq 0];
then <backup command> /usr1
fi
grep "/usr2" /etc/vfstab
if [ $? -eq 0];
then <backup command> /usr2
fi
In my environment the /usrX partitions are each an entire disk with user files or data. On some systems I may have up to 20.
How can I loop through the code and increment the "X" /usrX?
Thanks again for your advice all,
Michael42