Very small site contains 15,000 files, what happened?

Permalink
I admit that my Internet connection is very spotty and slow right now, but I've never noticed this before.

I've made a few artist sites on my local MAMP server. I do this all the time, but for some reason these little sites contain some 15,000 files. There are about 5,000 in the concrete/ directory of course, but there are some 10,000 elsewhere, mainly in the files/ directory.

For example, on my demo3 site, the files directory is 161 MB and contains 11,543 items. There are no more than 37 images in the file manager, and they are all less 1mb each, generally around 40kb. Is this typical?

As it is, I will have to rebuild all these sites on the server as it's taking hours to upload them.

Veronikan
 
mhawke replied on at Permalink Reply
mhawke
I believe every time you 'publish' a page containing images, C5 generates a new copy of the images. This allows you to go back and 'approve' old versions of pages in case something goes wrong while editing the page and you need to restore your original page. Even when you delete old pages through the 'Jobs' page, I don't believe it removes these old images from the file structure.

To upload/duplicate your site's files, I wouldn't recommend uploading or downloading all the individual files. I would suggest creating a zip file, uploading the zip and expanding it through your server's File Manager (accessed through your host's Control Panel). You can also use your server's File Manager to 'compress' or 'archive' your site's directories and download that zip file. This is much faster and more reliable than transferring individual files.
Pomlo replied on at Permalink Reply
Pomlo
Hi Veronikan,

I have plenty of files under files/tmp, seems that the session files are stored there and are not purged (named sess_*).

I believe this is ok to purge them while the site is offline (otherwise you may delete some active sessions).

I'll try to work soon on a shell script to purge them automatically.

Hope this helps.