I
I
Ilya bow2021-02-26 12:32:00
Computer networks
Ilya bow, 2021-02-26 12:32:00

How to solve the problem of copying the archive?

When I copy a 7z archive (from 0.5 to 2GB) to a network folder, it sometimes beats.
The source of the file is a computer with Windows 7, the recipient is a PC with windows 2012.
Between them there is one tsiska 100 Mbps and one stupid gigabit tp-link switch.
I copy through the script on PS here is a piece of code where the file is copied.

del C:\temp\* ;\\dc\soft\7zip\7z.exe $full; Wait-Event -Timeout 10; copy "C:\temp\$env:computername.7z" \\dc\backup\$env:computername.7z

What can be the problem and how to fix it without problems?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
R
rPman, 2021-02-26
@rPman

Check the memory for glitches on both machines, both on the source and on the recipient, with a simple memtest regular Windows, but it's better to take linux

P
pfg21, 2021-02-26
@pfg21

use a file transfer validation system to transfer the file.
resilio sync, syncthing and the like.

Z
Zzzz9, 2021-02-26
@Zzzz9

There was such a problem, it turned out the memory on the file server.

A
Anton Shamanov, 2021-02-26
@SilenceOfWinter

just split and send 100mb each - no one canceled problems on the line or on the final server. well, do not use max compression - there must be data to restore the archive.

A
Akina, 2021-02-26
@Akina

Faced several times.
Most often, the problem was in various kinds of antiviruses / firewalls.
Less often - in faulty / unstable memory.
Once - in the disk access controller (which literally died in a couple of days - fortunately, there were two controllers on the mother, the second after that worked for a long time without problems).
And several times it was not possible to find the cause.
I recommend that you start by performing the same operation from another OS instance - just to understand if the hardware or software is naughty.

V
Vladimir Korotenko, 2021-02-26
@firedragon

I join the previous advice, but I will add from myself.
Use
https://docs.microsoft.com/en-us/powershell/module...
To compute the hash and call retry if it doesn't match

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question