-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate files when syncing #143
Comments
Sorry, I must have missed this. Does it do this every time? If you delete those four files and then wait for it to re-run, does it behave the same way? |
Deleting the resync sometimes works, sometimes the same error occurs. It may be that some video files are too large and cannot be downloaded completely after the first synchronization. It may be necessary to compare the online and local files for consistency before synchronizing. If it is consistent, skip the download. If it is inconsistent, delete the local file and download it again. Of course, it is best if you can resume the transmission from a breakpoint. Thank you for your dedication. |
The underlying application downloads files to a temporary location, and once the download is complete, renames the download to the file that you see. You shouldn't see partially downloaded files in your file list. If a download is not successful, the temporary file will remain. Upon the next synchronisation, the underlying application will delete the temporary files and start the download again. There is no support for resuming downloads. Have you attempted to play one of the smaller files? Is it definitely corrupt? You don't have two files with the same name that require de-duplication? |
I've tried playing smaller files, but it doesn't work.The larger file can be played normally. Checked the icloud website, there is no file with the same name. |
This is odd. I've not seen this. I'll record some larger videos and see if I can replicate it. |
Thanks. Is this problem related to permissions? There is another question, is it possible to set crontab task to run the sync instead of setting a time interval. Because I will cooperate with other scripts to manage photos, if the time interval is set, there is no guarantee that the photos will be up to date when the script for managing photos is running. |
It shouldn't be, my container sets the required permissions on files and folders many times during its run, to make sure the correct permisisons are applied.
Unfortunately not. Running cron inside conatiners is bad practice. It's actually disabled in a lot of the Docker OS images. Docker advises that cron jobs should be run on the host eg: |
I'm going to look into having a mode which exits after a single synchronisation run. I've had a couple more people request this feature, so it makes sense. This would allow you to schedule the times you want my container to run via cron on the host computer... Might take a while though as it's probably going to mean a pretty big re-write and I need to think about knock on effect on things like health-checks and stuff. |
great, thanks. |
I've added a new variable |
Thanks. If |
Hi, Yes, if Then you should be able to start it from cron with |
Thanks for your help. |
Duplicate files when syncing When I checked the synchronization log, I found that there were duplicate files. As shown in the figure, such a large file as 3445.MOV may not be completely synchronized during the first synchronization. When synchronized again, duplicate files appeared. The previously synced files were not deleted, and the newly synced files were not renamed correctly.
Please, how can I solve this problem。
The system I use is truenas scale.
The text was updated successfully, but these errors were encountered: