View Single Post

   
  #2 (permalink)  
Old 01-04-2008, 07:56 PM
Dirk Gently
 
Posts: n/a
Default Re: script to take backup

<suhailh@yahoo.com> wrote in message
news:bde918fd.0307260617.7adc61a0@posting.google.c om...
> Hello all,
>
> i want to create a script to take backup of specific directories.
>
> eg: abc, xyz and bcd directories in root directory
>
> cd /
> find . -name <....> |backup -ivqf /dev/rmt0
>
> how can i list only abc, xyz and bcd directories in the search.
>
> Thanks in advance.
>
> hope i'm clear.
>
> Regards,
> Suhail


You can do multiple find command into a file that you will use as your list.

find /abc -name X >backuplist
find /xyz -name X >>backuplist
find /bcd -name X >>backuplist
backup -ivqf /dev/rmt0 <backuplist

Or something like that.


Reply With Quote