1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mysteriouse file copy proplem

Discussion in 'Windows 7' started by Roland Mösl, Aug 28, 2010.

  1. Roland Mösl

    Roland Mösl Flightless Bird

    I have in my software a backup system integrated.

    The subroutine duing the copy job

    if ( ! open ( GET_TARGET, ">$target" ) )
    {
    if ( $condition eq 'alert' ) { view_alert ( "get_file_copy: can not
    open $target" ) }
    }

    Which means open at the target a file for overwrite.
    If open fails, make an error message.

    This worked for years fine on windows XP.

    Now I make my first backup at Windows 7 64 Bit

    Surpise, I get at each altered file
    this means file exists on backup drive,
    but should be overwritten by newer version
    an error message.

    But only at an external harddisk NTSF formated.
    The same software works fine on a 32 Bit FAT
    SD-Card

    Any ideas about the problem?

    --
    Roland Mösl - PEGE - http://www.pege.org
    Planetary Engineering Group Earth
     
  2. Roland Mösl

    Roland Mösl Flightless Bird

    On 2010-08-28 19:03, Roland Mösl wrote:
    > I have in my software a backup system integrated.
    >
    > The subroutine duing the copy job
    >
    > if ( ! open ( GET_TARGET, ">$target" ) )
    > {
    > if ( $condition eq 'alert' ) { view_alert ( "get_file_copy: can not open
    > $target" ) }
    > }
    >
    > Which means open at the target a file for overwrite.
    > If open fails, make an error message.
    >
    > This worked for years fine on windows XP.
    >
    > Now I make my first backup at Windows 7 64 Bit
    >
    > Surpise, I get at each altered file
    > this means file exists on backup drive,
    > but should be overwritten by newer version
    > an error message.
    >
    > But only at an external harddisk NTSF formated.
    > The same software works fine on a 32 Bit FAT
    > SD-Card
    >
    > Any ideas about the problem?


    I tried now the same with the command prompt copy command

    the command ended with 0 files copied at each line
    at the external USB drive

    copy "d:/mind2.files\2010\Internetwerbung\Werbepotential.ods"
    "f:/backup\mind2.files\2010\Internetwerbung\Werbepotential.ods"
    copy "d:/mind2.files\2010\PEGE Auto\E-Max S Dauertest.ods"
    "f:/backup\mind2.files\2010\PEGE Auto\E-Max S Dauertest.ods"

    Same copy to the SD Card FAT32 formatted

    copy "d:/mind2.files\2010\Internetwerbung\Werbepotential.ods"
    "f:/backup\mind2.files\2010\Internetwerbung\Werbepotential.ods"
    copy "d:/mind2.files\2010\PEGE Auto\E-Max S Dauertest.ods"
    "f:/backup\mind2.files\2010\PEGE Auto\E-Max S Dauertest.ods"

    the command ended with 1 files copied at each line

    --
    Roland Mösl - PEGE - http://www.pege.org
    Planetary Engineering Group Earth
     
  3. philo

    philo Flightless Bird

    On 08/28/2010 12:03 PM, Roland Mösl wrote:
    > I have in my software a backup system integrated.
    >
    > The subroutine duing the copy job
    >
    > if ( ! open ( GET_TARGET, ">$target" ) )
    > {
    > if ( $condition eq 'alert' ) { view_alert ( "get_file_copy: can not open
    > $target" ) }
    > }
    >
    > Which means open at the target a file for overwrite.
    > If open fails, make an error message.
    >
    > This worked for years fine on windows XP.
    >
    > Now I make my first backup at Windows 7 64 Bit
    >
    > Surpise, I get at each altered file
    > this means file exists on backup drive,
    > but should be overwritten by newer version
    > an error message.
    >
    > But only at an external harddisk NTSF formated.
    > The same software works fine on a 32 Bit FAT
    > SD-Card
    >
    > Any ideas about the problem?
    >




    Since it only happens on the NTFS drive
    it's got to be a permissions problem
     
  4. Roland Mösl

    Roland Mösl Flightless Bird

    On 2010-08-29 03:01, philo wrote:
    > On 08/28/2010 12:03 PM, Roland Mösl wrote:
    >> I have in my software a backup system integrated.
    >>
    >> The subroutine duing the copy job
    >>
    >> if ( ! open ( GET_TARGET, ">$target" ) )
    >> {
    >> if ( $condition eq 'alert' ) { view_alert ( "get_file_copy: can not open
    >> $target" ) }
    >> }
    >>
    >> Which means open at the target a file for overwrite.
    >> If open fails, make an error message.
    >>
    >> This worked for years fine on windows XP.
    >>
    >> Now I make my first backup at Windows 7 64 Bit
    >>
    >> Surpise, I get at each altered file
    >> this means file exists on backup drive,
    >> but should be overwritten by newer version
    >> an error message.
    >>
    >> But only at an external harddisk NTSF formated.
    >> The same software works fine on a 32 Bit FAT
    >> SD-Card
    >>
    >> Any ideas about the problem?
    >>

    >
    >
    >
    > Since it only happens on the NTFS drive
    > it's got to be a permissions problem


    But how to set up permissions,
    that my external NTSF drive is treated
    like my FAT 32 SD card?

    --
    Roland Mösl - PEGE - http://www.pege.org
    Planetary Engineering Group Earth
     
  5. Seth

    Seth Flightless Bird

    "Roland Mösl" <founder@pege.org> wrote in message
    news:i5hm6b$vt7$1@news.albasani.net...
    > On 2010-08-29 03:01, philo wrote:
    >> On 08/28/2010 12:03 PM, Roland Mösl wrote:
    >>> I have in my software a backup system integrated.
    >>>
    >>> The subroutine duing the copy job
    >>>
    >>> if ( ! open ( GET_TARGET, ">$target" ) )
    >>> {
    >>> if ( $condition eq 'alert' ) { view_alert ( "get_file_copy: can not open
    >>> $target" ) }
    >>> }
    >>>
    >>> Which means open at the target a file for overwrite.
    >>> If open fails, make an error message.
    >>>
    >>> This worked for years fine on windows XP.
    >>>
    >>> Now I make my first backup at Windows 7 64 Bit
    >>>
    >>> Surpise, I get at each altered file
    >>> this means file exists on backup drive,
    >>> but should be overwritten by newer version
    >>> an error message.
    >>>
    >>> But only at an external harddisk NTSF formated.
    >>> The same software works fine on a 32 Bit FAT
    >>> SD-Card

    >>
    >> Since it only happens on the NTFS drive
    >> it's got to be a permissions problem

    >
    > But how to set up permissions,
    > that my external NTSF drive is treated
    > like my FAT 32 SD card?


    You'll have to grant permissions to the user account under which your backup
    is running. Is it running as a specific user? Via Scheduled Tasks as
    "SYSTEM"? Give that account FC (Full Control) of the file hierarchy (both
    source and destination).
     

Share This Page