Delete unused files on the hosting

0 like 0 dislike
17 views
Hello. I gave the service a few dozen sites, the history worked about 10-15 people, of course there was a bunch of junk, unused html pages, stylesheets, images, etc. to manually Search these files for a very long time. May anyone tell me how to automate the process? Thanks in advance.
by | 17 views

7 Answers

0 like 0 dislike
As an option to find a file that was not handling time. This will help find (I understand that hosting on unix?). -exec will delete the files.
find ./ -used number volnation -exec rm '{}' \\;
by
0 like 0 dislike
A bit unnecessary response:
I think that the tmp folder you can clear for sure if hosting the Knicks.
All sorts of logs are also clean and mail.
Sometimes it can pretty well be free space.
\r
And everything else can still be tricky, but involved.
There is need carefully.
How to automate the process to tell.
by
0 like 0 dislike
Sites are so outrageously written, there copy-paste the regular html pages. No php and js scripts, solid html and images.

copy on the PC. create a Dreamweaver one "site" for each site. then ask Dreamweaver to look for sirotinushka (Site, Check links sitewide (Ctrl+F8) and the results of a filter for orphaned files)
\r
the trial for that is enough. the hotkeys in the latest versions may vary. I was looking at old 8-ke
this method works pretty well. if the file names never are calculated dynamically it should work perfectly.
by
0 like 0 dislike
If it is a simple hypertext markup language and I have correctly understood your task — to put your site on Apache, deflate it entirely (for example, teleport-Ohm) — then noparity the logs that were loaded.
That is not there — in the furnace.
by
0 like 0 dislike
You can try to put the bot to deflate this website conform to the structure, the bot only links goes. Then compare the two folders, everything on the website is, and in the local copy of not — garbage.
by
0 like 0 dislike
Methods of solution of your problem in the General case does not exist. A possibility to remove the targeted content approaches 100%. No teleport won't help find topics which are not linked to from other pages, but referenced outside.
On the other hand, the sites can be downloaded to your computer, then clean (the method used to teleport), and if that need from the copy to restore.
\r
But the most competent is capacity disk, because there is not a problem.
by
0 like 0 dislike
Thank you all for the answers.
by

Related questions

0 like 0 dislike
4 answers
0 like 0 dislike
1 answer
0 like 0 dislike
4 answers
asked May 2, 2019 by cloudloud
0 like 0 dislike
2 answers
asked Jun 10, 2019 by boch112
110,608 questions
257,186 answers
0 comments
28,716 users