Re: Archive attribute keeps getting reset



Your remark "But every night the archive attribute gets turned on"
contains some very useful information - it creates the impression
that the attribute is not just turned on any old time but that this
happens during the night, implying that it's a certain process that
does the damage. If this was my machine then I would track down
the exact time when this happens, by scheduling the batch file
below to run once every five minutes on some machine with access
to these files. When you know what time it happens then you can
try to relate this to events taking place on your server at that time.

@echo off
for /F "tokens=*" %%* in ('attrib \\YourServer\YourShare\YourFile.txt') do
echo %date% %time% %** >> c:\logs.txt

Note that this is one single long line.

Make sure to schedule the batch file under an account that
has appropriate access to \\YourServer\YourShare.


"Roger" <roger@xxxxxxxxxxx> wrote in message
news:%233QgsR%23FGHA.2696@xxxxxxxxxxxxxxxxxxxxxxx
> The date stamp does not change. These are archived files that in some
cases
> haven't been modified since 1998. But every night the archive attribute
> gets turned on.
>
> "Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
> news:u0iAGY8FGHA.2300@xxxxxxxxxxxxxxxxxxxxxxx
> >
> > "Roger" <roger@xxxxxxxxxxx> wrote in message
> > news:OcQw7N8FGHA.1452@xxxxxxxxxxxxxxxxxxxxxxx
> >> I have a backup routine that backs up files if the archive attribute is
> > set
> >> and clears the attribute. This is done using Robocopy switches. It
> >> works
> >> great for all my servers except for one, a 2000 server running IIS. I
> > have
> >> verified that the backup works correctly, clearing the archive
attribute,
> >> but each time when I check the next day the archive attribute is set to
> >> archive again, even though the file has not changed. This is happening
> >> on
> > a
> >> lot of files, so it is making my backups much larger than I want. Does
> >> anyone have any ideas? Is this a known problem with 2000/IIS/Indexing,
> >> or
> >> something else? Thanks!
> >>
> >>
> >
> > I would start by examining the date stamp of the affected files.
> >
> >
>
>


.



Relevant Pages

  • Re: A required privilege is not held by the client
    ... > I have a 2003 server that I am trying to backup with Veritas Backup Exec ... > and post backup commands within Veritas. ... which you run the batch file has insufficient privileges ...
    (microsoft.public.win2000.general)
  • Problem with NTBACKUP
    ... I'm currently running 2003 server. ... I wrote up this backup batch file that runs every ... running NTBACKUP labels the tape with the time and date ...
    (microsoft.public.windows.server.general)
  • Re: backup software
    ... Here is a batch file I set up for a client's Win 2K Advanced Server ... NOTE that the /um is especially important when reusing tapes. ... > the backup software that comes with w2k3 is not able to run automatically,> if tapes are re-used. ...
    (microsoft.public.windows.server.general)
  • Re: Interesting question here about SBS2003
    ... scheduled run of a batch file that copies all of the files off of a shared ... folder on the vmail server to a shared folder on the Small Business ... Server which will then be backed up to tape daily. ... you need to backup from the local Machine to a share on the SBServer ...
    (microsoft.public.windows.server.sbs)
  • Re: SSIS, Backups and Variables
    ... You could construst the BACKUP DATABASE statement using a variable. ... of the server name to the database name. ... stamp>> currently ...
    (microsoft.public.sqlserver.dts)