Hi,
Can you please help me find a solution to my script?
Here is the script:
https://github.com/kerzol81/Bash-and...master/syncer2
The bug comes into play when in the while cycle the connection goes away while wget does it's job greatfully. Wget tries 3 times to download from the server, and after that the arranging() function comes in, which also moves the partially downloaded files.
How could it be done to
only move those files that have been fully downloaded?
My approach is to use 'mv -u', but there are still chunk files if the connection is instable.
The main problem is that the axis server saves the files in many sub directories, which I don't like, i would like some arrangement after syncronising.
Could I convince somehow
wget to keep the partially downloaded files in a diffent place?
Thank you
Z