GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Clean Webserver from rarely used files? (https://gfy.com/showthread.php?t=788393)

cranki 11-29-2007 04:00 PM

Clean Webserver from rarely used files?
 
Is there a (ftp?-)program that allows me to search my webserver for rarely used files? So I may delete old gallery htmls which haven't been accessed in three years for example...

zagi 11-29-2007 06:06 PM

I'm not sure about an FTP server but a unix command will do the trick.

So long as your file system is not mounted with "noatime" then you can use:

stat filename.ext

This will show you something like:

stat package.xml
File: `package.xml'
Size: 11656 Blocks: 24 IO Block: 4096 regular file
Device: 807h/2055d Inode: 7225548 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2007-10-23 13:36:51.000000000 -0400
Modify: 2007-09-21 12:11:54.000000000 -0400
Change: 2007-10-23 13:36:51.000000000 -0400

From which you can use the Access time to determine last time of access

rvn 11-30-2007 01:09 AM

If you have a dedicated server, use sFTP Drive - it can connect your server as a regular disk in Windows. It supports all operations - search, copy, delete, etc. Then just search by access date (sFTP drive caches remote directories, so access will be very fast) and delete rarely used.


All times are GMT -7. The time now is 12:37 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123