Raised This Month: $51 Target: $400
 12% 

[TF2] tReplayCleanupCurl v0.0.1 (2011-06-13)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Thrawn2
Veteran Member
Join Date: Apr 2009
Plugin ID:
2376
Plugin Version:
0.0.1
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Cleans the ftp/http webspace from stale replays
    Old 06-12-2011 , 19:28   [TF2] tReplayCleanupCurl v0.0.1 (2011-06-13)
    Reply With Quote #1

    Idea by DarthNinja
    This is basically the same as [TF2] Http Replay Cleaner, it cleans up your remote replay store by deleting stale data.

    Difference
    This plugin is using the cURL extension to delete files directly from the FTP rather than via remote php script.
    Be sure to have that installed for running as well as compiling.

    Configuration:
    sm_treplaycleanupcurl_enable 1, Automatically cleanup on mapstart
    sm_treplaycleanupcurl_daystokeep 14, Delete replay files older than 14 days

    Expiration date
    There is already an command replay_docleanup and cvars replay_dofileserver_cleanup_on_start and replay_fileserver_autocleanup, but none of them do anything. Yet. Valve will probably add functionality to them making this plugin obsolete.
    Nonetheless it could help as an additional example on how to use ftp with the curl extension.

    Credits:
    DarthNinja for the idea.
    raydan for the cURL extension.
    Attached Files
    File Type: sp Get Plugin or Get Source (tReplayCleanupCurl.sp - 366 views - 8.7 KB)
    File Type: smx tReplayCleanupCurl.smx (6.4 KB, 426 views)
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 is offline
    4bdul
    AlliedModders Donor
    Join Date: Dec 2011
    Location: United Kingdom
    Old 05-07-2012 , 05:55   Re: [TF2] tReplayCleanupCurl v0.0.1 (2011-06-13)
    Reply With Quote #2

    Quote:
    L 05/07/2012 - 00:52:40: [tReplayCleanupCurl.smx] Failed retrieving the directory list ().
    Getting this error. Replay is working and it is uploading the files as normal, no other errors.

    Last edited by 4bdul; 05-07-2012 at 05:56.
    4bdul is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 05-07-2012 , 13:42   Re: [TF2] tReplayCleanupCurl v0.0.1 (2011-06-13)
    Reply With Quote #3

    Quote:
    Originally Posted by 4bdul View Post
    Getting this error.
    Code:
    L 05/07/2012 - 00:52:40: [tReplayCleanupCurl.smx] Failed retrieving the directory list ().
    Odd. curl_easy_strerror did not fill the error buffer. I have no idea why, maybe lasterror is not defined for some reason. I doubt it's curls fault ;)
    Without an error message it's hard to debug what's actually wrong on your end - "Failed retrieving the directory list" is just the result of an error.

    After you've triple checked that you indeed got the latest stable metamod (1.8.7), sourcemod (1.4.2) and curl extension (1.3.0.0) installed (and also checked that it's not an already known issue), it might be a good idea to report this to raydan over here.
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 is offline
    PCDrivers
    AlliedModders Donor
    Join Date: Feb 2013
    Location: Canary Islands
    Old 05-05-2013 , 15:33   Re: [TF2] tReplayCleanupCurl v0.0.1 (2011-06-13)
    Reply With Quote #4

    +1
    Plugin for dedicated servers with great replay.

    What I have a small question, as I get to be erased videos dedicated server folder
    / ..... / tf / replay / server / blocks

    I have noticed that the demos are recorded, are still there and not deleted, unless I make a
    rm-fr *. dmx

    thanks
    PCDrivers is offline
    kokzok
    Junior Member
    Join Date: Nov 2009
    Old 05-06-2013 , 13:12   Re: [TF2] tReplayCleanupCurl v0.0.1 (2011-06-13)
    Reply With Quote #5

    @PCDrivers
    https://forums.alliedmods.net/showthread.php?t=112651
    kokzok is offline
    Send a message via ICQ to kokzok
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 07:11.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode