ADSM-L

Re: Archives

2000-03-23 07:46:25
Subject: Re: Archives
From: Richard Sims <rbs AT BU DOT EDU>
Date: Thu, 23 Mar 2000 07:46:25 -0500
>If I have a directory tree full of files and only want to archive files
>older then 30 days in age, is there an easy way to tell ADSM to do an
>archive of that directory but only on files older then 30 days? Or do I have
>to do something silly like write a korn shell script to scan through the
>directory and MV those of that age or older to another part of the
>filesystem and then backup that part of the filesystem?

The Archive function has always been painfully limited in the flexibilities
that it offers, such as it being unable to accept a list of files when the
list is contained in a file.  Your only real option is to run something like
the Unix 'find' command to traverse the file system and invoke dsmc on each
file of target age.  I would not move or copy candidate files to another
area and archive from there, as they become known as being from that unusual
area rather than their native area.  You might try creating a subdirectory
with symlinks to the target files; but I'd do the 'find ... exec ...'.
    Richard Sims, BU
<Prev in Thread] Current Thread [Next in Thread>
  • Archives, Gerald Wichmann
    • Re: Archives, Richard Sims <=