On Wed, 2 Dec 2020, Micka wrote:> Thanks, > > Any idea how to detect a transfer failure?Have the client upload a zero-length "transfer succeeded" file after the main file completes? -d
On Wed, 2 Dec 2020 at 13:36, Damien Miller <djm at mindrot.org> wrote:> On Wed, 2 Dec 2020, Micka wrote: > > Any idea how to detect a transfer failure? > > Have the client upload a zero-length "transfer succeeded" file after the > main file completes?Have the client upload into an unmonitored "in-progress" directory and move (ie rename) the file into a monitored directory as the final step? -- Darren Tucker (dtucker at dtucker.net) GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860 37F4 9357 ECEF 11EA A6FA (new) Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
On Wed, Dec 02, 2020 at 01:32:16PM +1100, Damien Miller wrote:> On Wed, 2 Dec 2020, Micka wrote: > > > Thanks, > > > > Any idea how to detect a transfer failure? > > Have the client upload a zero-length "transfer succeeded" file after the > main file completes?When I did this in the mid 90s (for Oracle log shipping to a standby database), I scp'd the datafile and then scp'd a checksum file and then the receiving side would verify the checksum to ensure the file had copied properly. -- rgds Stephen