Fitus / Zaloha.sh

(obsolete version) Small and simple directory synchronizer
MIT License
68 stars 12 forks source link

Error line 3281 #4

Open SirTerrific opened 4 years ago

SirTerrific commented 4 years ago

HI, I ran my command

and I have during the backup an error : Zaloha.sh: Error on line 3281.

My command: #!/bin/bash zaloha.sh --sourceDir='/dlna/download/' --backupDir='/nas/dlna/' --findSourceOps='( -type f -a -name .nfo ) -o ( -type f -a -name .NFO ) -o' --noProgress --noLastRun

And when it stopped cp --preserve=timestamps '/dlna/download/incomplete/Steven Universe Saison 1/[SUF] Steven Universe S01E32 Fusion Cuisine VF-VOSTFR MULTI [1080p WEB-DL].mkv.part' '/nas/dlna/incomplete/Steven Universe Saison 1/[SUF] Steven Universe S01E32 Fusion Cuisine VF-VOSTFR MULTI [1080p WEB-DL].mkv.part' Zaloha.sh: Error on line 3281 .

I was able to run the command once but not with this time.

Thanks.

Fitus commented 4 years ago

Hi,

I just wanted to write you about the .NFO exclusion problem and saw you have closed it. I thought that the .NFO files on your source directory had something special and were not matched by the .NFO pattern. Did the filenames eventually had a dot at the beginning? I know that some FIND versions would not match such files with the *.NFO pattern. What was the actual problem and how did you resolve it ?

Regarding the failed copy: If you try to run the cp by hand, what error message do you get? I assume "file does not exist". It looks that some download software is running in parallel, and by the time when it came to the execution, the download of that file has already finished and the ".part" ending was not there anymore ...

Regards,

F.

SirTerrific commented 4 years ago

Hi, For the NFO/nfo, I reuse your commands. I changed nothing. I checked if "find" was mapped with an other command but no.

The issue was the .part... sorry for the "inattention"