• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

Mysteriouse file copy proplem

R

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
 
R

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
 
P

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
 
R

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
 
S

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).
 
Top