Hi All,
I am in a tricky situation where I have to move my files to a different mount point and create a link in place of the file which will point to the moved location.
to explain you in details:-
say I have two mount points
/dir/mount1/
/dir/mount2/
I have my application files in /dir/mount1/application/
in /dir/mount1/application/ i have directories like
/dir/mount1/application/month
/dir/mount1/application/month/day
/dir/mount1/application/month/day/hour
/dir/mount1/application/month/day/hour/min1/a.txt
/dir/mount1/application/month/day/hour/min1/b.txt
/dir/mount1/application/month/day/hour/min1/c.txt
and
/dir/mount1/application/month/day/hour/min2/d.txt
/dir/mount1/application/month/day/hour/min2/e.txt
like wise....these files will be created in day-hour-min format directories...
now I need to move these .txt files to
/dir/mount2/application/ directory which will have exact directory structure which mount point 1 has.
and in place of original files in mount1 I will create softlinks which will be linked to the shifted files respectively....
any idea will be appreciated....
---------- Post updated 10-24-09 at 12:39 AM ---------- Previous update was 10-23-09 at 11:18 PM ----------
any luck with any one?