wimleers / fileconveyor

File Conveyor is a daemon written in Python to detect, process and sync files. In particular, it's designed to sync files to CDNs. Amazon S3 and Rackspace Cloud Files, as well as any Origin Pull or (S)FTP Push CDN, are supported. Originally written for my bachelor thesis at Hasselt University in Belgium.
https://wimleers.com/fileconveyor
The Unlicense
340 stars 95 forks source link

FTP transporter deletes original files #106

Closed stongo closed 11 years ago

stongo commented 12 years ago

Should file conveyor be deleting files?

2012-02-20 21:23:24,751 - Arbitrator - WARNING - Deleted '/home/site/www/uk/files/imagefield_thumbs/_MG_0709_1.jpg' as per the 'CSS, JS, images and Flash' rule.

Here's the rule from config.xml ... can't see anywhere it's specifying to delete any files

misc:profiles:modules:themes:sites/all:files ico:js:css:gif:png:jpg:jpeg:svg:swf
satheshf12000 commented 12 years ago

@stongo How did you disable the delete function? I'm in similar situation. Can you please post it here for the community to see how you've solved?

Thanks.

kneedrag commented 12 years ago

add

fileDeletionDelayAfterSync="60000000000000000"

to your rule(s).

Then peridiocally use sqlite3 to open persistent_data.db and

delete from files_to_delete_list where id > 0 ;

Good luck...

stongo commented 12 years ago

kneedrag, thanks for posting a solution! Do you know if this is a bug in File Conveyor, or was it designed to delete the files?

kneedrag commented 12 years ago

I am not heavily involved in this project at all, just a user.

My guess is that this is a bug.....

I'm also positive there are lots of smarter people than me out there who may have a different / better fix....but mine IS working for me...

mnestor commented 12 years ago

I fixed this in my branch https://github.com/mnestor/fileconveyor

If you leave the attribute off it won't delete now.

wimleers commented 11 years ago

Fixed over at #108.

Sorry for introducing such a terrible bug :(