Re: Include/exclude in linux
>Hi, Richard: > >I use > >exclude.dir /home > >but the include didn't work > >I don't know why? You sure are resisting that Unix Backup-Archive Clients manual... ;-) About this, it says: "Use exclude.fs and exclude.dir statements to exclude file spaces and all files and sub-directories in the specified directory from processing. Tivoli Storage Manager evaluates all exclude.fs and exclude.dir statements first (regardless of their position within the include-exclude list), and removes the excluded file spaces, directories, and files from the list of objects available for processing. The exclude.fs and exclude.dir statements override all include statements that match the pattern." "[TSM then] evaluates the remaining include-exclude list from the bottom up and stops when it finds an include or exclude statement that matches the file it is processing." As I mentioned in my prior posting, the exclude.fs and exclude.dir specs tell TSM to entirely stay out of those areas. Your spec is trying to have it both ways, excluding everything and yet including something. That can't work. Since you do want to enter that directory, you would want to have like: exclude /home/.../* include /home/andy/.../* where the exclude, which is seen after the include, omits everything other than what the preceding include(s) specified to be backed up. Don't feel bad: Include-exclude processing makes everyone's brain hurt; and it keeps getting more complex with each new TSM version. Avail yourself of the 'dsmc query inclexcl' command to help out. Richard Sims
Re: Include/exclude in linux
Hi, Richard: I use exclude.dir /home include /home/andy/.../* but the include didn't work I don't know why? thanks Andy Richard Sims <[EMAIL PROTECTED]> wrote: >Do you have the example? "Table 17. Using wildcard characters with include and exclude patterns" in the Unix B/A Client manual has good examples. You'd want to do like: EXCLUDE.FS /home This form of Exclude keeps the file scanner from even looking in the file system, as "EXCLUDE /home/.../*" whould not. Richard Sims - Post your free ad now! Yahoo! Canada Personals
Re: Include/exclude in linux
>Do you have the example? "Table 17. Using wildcard characters with include and exclude patterns" in the Unix B/A Client manual has good examples. You'd want to do like: EXCLUDE.FS /home This form of Exclude keeps the file scanner from even looking in the file system, as "EXCLUDE /home/.../*" whould not. Richard Sims
Re: Include/exclude in linux
Thank, Richard. Do you have the example? Richard Sims <[EMAIL PROTECTED]> wrote: >I met some problems when I tried to automatic backup files from a linux client >to linux server, the exclude/include did't work. I wrote the following sentence >in the dsm.sys: > >exclude "/home/" >exclude "/opt/" > >It still backed up the files of home and opt > >I don't know why? Use EXCLUDE.FS Refer to the Unix B/A Client manual >another question is where can I add the environment variables in linux redhat 9 Environment variables in any Unix system are in effect in the environment which prevails before any given command is executed, for its process to inherit them. So you would establish them in a shell .cshrc, or a command script, for example. Richard Sims - Post your free ad now! Yahoo! Canada Personals
Re: Include/exclude in linux
>I met some problems when I tried to automatic backup files from a linux client >to linux server, the exclude/include did't work. I wrote the following sentence >in the dsm.sys: > >exclude "/home/" >exclude "/opt/" > >It still backed up the files of home and opt > >I don't know why? Use EXCLUDE.FS Refer to the Unix B/A Client manual >another question is where can I add the environment variables in linux redhat 9 Environment variables in any Unix system are in effect in the environment which prevails before any given command is executed, for its process to inherit them. So you would establish them in a shell .cshrc, or a command script, for example. Richard Sims
Include/exclude in linux
Hi, I met some problems when I tried to automatic backup files from a linux client to linux server, the exclude/include did't work. I wrote the following sentence in the dsm.sys: exclude "/home/" exclude "/opt/" It still backed up the files of home and opt I don't know why? another question is where can I add the environment variables in linux redhat 9 could you give me some advice? thanks Andy - Post your free ad now! Yahoo! Canada Personals