Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Directory rotation archival -soft links ???

nkandwalFeb 5 2016 — edited Feb 8 2016

I am working on an archival script

the directory structure is something like this:

/sqk/abc/bcd/dir_1/ef/gh/hw/(*.txt,*.dat etc)

/sqk/abc/bcd/dir_2/ef/gh/hw/(*.txt,*.dat etc)

/sqk/abc/bcd/dir_3/ef/gh/hw/(*.txt,*.dat etc)

/sqk/abc/bcd/dir_4/ef/gh/hw.(*.txt,*.dat etc)

:

:

/sqk/abc/bcd/dir_21/ef/gh/hw/(*.txt,*.dat etc)

/sqk/abc/bcd/dir_22/ef/gh/hw.(*.txt,*.dat etc)

this script is run every day once the directory structure is same except the "dir_ "part and it archives all the files in the end of that line

i need to do two things:

make the script look like /sqk/abc/bcd/ef/gh/hw/(*.txt,*.dat etc) ( so maybe a soft link that increments every time ) so bcd in actual is bcd/dir_1 for the first day ,bcd/dir_2 for the second day...until bcd/22 for the 22nd day. Then it is re set to bcd/dir_1

Any ideas would be highly appreciated !!!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2016
Added on Feb 5 2016
10 comments
2,032 views