We have been using tar to backup and recover important files. Even though we hardly ever have to do recoveries when we do need them we need them ASAP. The tar job normally takes up to 2 hours to recover the files which is unsatisfactory to the users that needs them. So we came up with the following solution:
We bought (and it is on order) another HD that we will create 2 LV's on. Every night we will copy our important working LV to LV1 and delete whats on LV2. Basically make a backup of the working LV and delete the copy that's older than 2 days, since the users never need a copy older than 2 days for whatever reason. That way we can just mount the copy LV and grab the files we need saving hours.
I was currently using HP-UX 10.x and Linux (csh) so I am having a time trying to right this script using AIX's commands and the korn shell. It doesn't help that I'm not the best scripter to begin with.
We don't have the HD in yet so I can't test the little bit of script that I do have. If someone could lend a hand or if they know of someone who has already done this (why re-invent the wheel?) please respond.
This is what I have thus far (Don't laugh I know it's wrong ;->)
mount /dev/hd3 /mnt/hd3/one;
mount /dev/hd3 /mnt/hd3/two;
/rm –r /mnt/hd3/one/*;
mv /mnt/hd3/two/* /mnt/hd3/one/;
mkdir /mnt/hd3/two/usr;
cp /usr/stuff/* /mnt/hd3/two/usr;
cp /usr/stuff2* /mnt/hd3/two/usr;
cp /usr/stuff3/* /mnt/hd3/two/usr;
Thanks in Advance
Wali
We bought (and it is on order) another HD that we will create 2 LV's on. Every night we will copy our important working LV to LV1 and delete whats on LV2. Basically make a backup of the working LV and delete the copy that's older than 2 days, since the users never need a copy older than 2 days for whatever reason. That way we can just mount the copy LV and grab the files we need saving hours.
I was currently using HP-UX 10.x and Linux (csh) so I am having a time trying to right this script using AIX's commands and the korn shell. It doesn't help that I'm not the best scripter to begin with.
We don't have the HD in yet so I can't test the little bit of script that I do have. If someone could lend a hand or if they know of someone who has already done this (why re-invent the wheel?) please respond.
This is what I have thus far (Don't laugh I know it's wrong ;->)
mount /dev/hd3 /mnt/hd3/one;
mount /dev/hd3 /mnt/hd3/two;
/rm –r /mnt/hd3/one/*;
mv /mnt/hd3/two/* /mnt/hd3/one/;
mkdir /mnt/hd3/two/usr;
cp /usr/stuff/* /mnt/hd3/two/usr;
cp /usr/stuff2* /mnt/hd3/two/usr;
cp /usr/stuff3/* /mnt/hd3/two/usr;
Thanks in Advance
Wali