Comprehensive data protection for all workloads
Post Reply
Worti
Influencer
Posts: 17
Liked: never
Joined: Oct 04, 2011 7:44 am
Full Name: Rolf_G
Contact:

File Copy Job problem

Post by Worti »

Hi Forum

im setup a File Copy Job of a Folder with some txt or bat Files inside.
If they change something on the File it will be corrupt.

For Example:

Code: Select all

@echo off

del E:\Backup\Server01\*.* /q
del E:\Backup\Server02\*.* /q
del E:\Backup\Server03\*.* /q
del E:\Backup\Server04\*.* /q
del E:\Backup\Server05\*.* /q
del E:\Backup\Server06\*.* /q
del E:\Backup\Server07\*.* /q

mkdir E:\Backup

xcopy D:\Backup\Server01 E:\Backup\Server01\
xcopy D:\Backup\Server02 E:\Backup\Server02\
xcopy D:\Backup\Server03 E:\Backup\Server03\
xcopy D:\Backup\Server04 E:\Backup\Server04\
xcopy D:\Backup\Server05 E:\Backup\Server05\
xcopy D:\Backup\Server06 E:\Backup\Server06\
xcopy D:\Backup\Server07 E:\Backup\Server07\

exit
now delete all inside @echo off and exit and start the job again

The result of the File would be:

Code: Select all

@echo off

exitE:\Backup\Server01\*.* /q
del E:\Backup\Server02\*.* /q
del E:\Backup\Server03\*.* /q
del E:\Backup\Server04\*.* /q
del E:\Backup\Server05\*.* /q
del E:\Backup\Server06\*.* /q
del E:\Backup\Server07\*.* /q

exitr E:\Backup

xcopy D:\Backup\Server01 E:\Backup\Server01\
xcopy D:\Backup\Server02 E:\Backup\Server02\
xcopy D:\Backup\Server03 E:\Backup\Server03\
xcopy D:\Backup\Server04 E:\Backup\Server04\
xcopy D:\Backup\Server05 E:\Backup\Server05\
xcopy D:\Backup\Server06 E:\Backup\Server06\
xcopy D:\Backup\Server07 E:\Backup\Server07\

exit
Is there a way to force an overwriting of the files?
We make a Backup to the local Server, on Friday we copy everything to an USB disk. Actually we make that with a bat File, but would be nice we can do every with veeam.

Tips or Hints are welcome
Regards,
Worti

Vitaliy S.
Product Manager
Posts: 25349
Liked: 2235 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: File Copy Job problem

Post by Vitaliy S. »

Hello Worti,

If you use File Copy job all files are overwritten by default, there is no way to perform incremental pass or change the file itself. Please try copying your file via command prompt to check if you have the same result.

By the way, what exactly do you change in the script? I've just tried changing and then copying your script and it works just fine.

Thanks.

Worti
Influencer
Posts: 17
Liked: never
Joined: Oct 04, 2011 7:44 am
Full Name: Rolf_G
Contact:

Re: File Copy Job problem

Post by Worti »

Hi Vitaliy

if you create a bat file like the first example and make a backup from it you have the same file on the destination.
if you delete now in the source file all inside from @echo off and exit the result will be the second example.

on line 3 they are the exit followed the old code from the file.

im test the same with an txt file, 10 lines from 1 - 0
if you delete the number 8 the txt file will have after a backup on line 10 a double 0.

i will post some examples later

regards

Worti
Influencer
Posts: 17
Liked: never
Joined: Oct 04, 2011 7:44 am
Full Name: Rolf_G
Contact:

Re: File Copy Job problem

Post by Worti »

Some more Infos

Enviroment:
Windows 2008 R2
Veeam B&R Version 5.0.2.230

Copy backup.bat from C:\Source to D:\Source

Lines inside:

Code: Select all

@echo off

del E:\Backup\Server01\*.* /q
del E:\Backup\Server02\*.* /q
del E:\Backup\Server03\*.* /q
del E:\Backup\Server04\*.* /q
del E:\Backup\Server05\*.* /q
del E:\Backup\Server06\*.* /q
del E:\Backup\Server07\*.* /q

mkdir E:\Backup

xcopy D:\Backup\Server01 E:\Backup\Server01\
xcopy D:\Backup\Server02 E:\Backup\Server02\
xcopy D:\Backup\Server03 E:\Backup\Server03\
xcopy D:\Backup\Server04 E:\Backup\Server04\
xcopy D:\Backup\Server05 E:\Backup\Server05\
xcopy D:\Backup\Server06 E:\Backup\Server06\
xcopy D:\Backup\Server07 E:\Backup\Server07\

exit
Run the File Copy Job and check the File on Drive D:\Source
Everything looks ok.

Now change the backup.bat File on the Source side to:

Code: Select all

@echo off

exit
Run the File Copy Job after one Minute again and open the backup.bat File on Drive D:\Source
There are some problems in the File. Line 1 to 3 are as modified.
From Line 4 i have the old Lines from first File Copy Job.

Code: Select all

@echo off


exit
ackup\Server01\*.* /q
del E:\Backup\Server02\*.* /q
del E:\Backup\Server03\*.* /q
del E:\Backup\Server04\*.* /q
del E:\Backup\Server05\*.* /q
del E:\Backup\Server06\*.* /q
del E:\Backup\Server07\*.* /q

mkdir E:\Backup

xcopy D:\Backup\Server01 E:\Backup\Server01\
xcopy D:\Backup\Server02 E:\Backup\Server02\
xcopy D:\Backup\Server03 E:\Backup\Server03\
xcopy D:\Backup\Server04 E:\Backup\Server04\
xcopy D:\Backup\Server05 E:\Backup\Server05\
xcopy D:\Backup\Server06 E:\Backup\Server06\
xcopy D:\Backup\Server07 E:\Backup\Server07\

exit
Tested on a different Server.
If you copy them via xcopy or robocopy everything looks fine.

Vitaliy S.
Product Manager
Posts: 25349
Liked: 2235 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: File Copy Job problem

Post by Vitaliy S. »

Thank you for clarifications, I have managed to reproduce this behavior and it looks like a bug, I have already forwarded this info to our QC team. Thanks!

Worti
Influencer
Posts: 17
Liked: never
Joined: Oct 04, 2011 7:44 am
Full Name: Rolf_G
Contact:

Re: File Copy Job problem

Post by Worti »

Thank you to for your help.

Regards
Rolf

Post Reply

Who is online

Users browsing this forum: DaveWatkins and 37 guests