+ Reply to Thread
Results 1 to 5 of 5

Thread: help -- how to use cronjobs to automatically download log files?

  1. #1
    dystemper is offline New Bee
    Join Date
    Dec 2007
    Posts
    19
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help -- how to use cronjobs to automatically download log files?

    i run a counter-strike source community. i am setting up psychostats, but since whb does not allow remote-sql, i cannot get the logs off my gameserver onto a mysql database on my webserver hosted on whb.

    i have an idea of a workaround, where i can setup a cronjob to download off of the ftp server of my gameserver, and upload to a folder on my whb-hosted website.

    any ideas on what the command would look like? i think it is a wget command, but i'm not sure how to specify an entire folder instead of a single file.

    any help would be appreciated.

  2. #2
    dystemper is offline New Bee
    Join Date
    Dec 2007
    Posts
    19
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    does whb allow wget, lftp, or rsync be run as cronjobs?

    basically, i'm looking to mirror folders from 2 different servers. they are all logs in the form of plain text files.

  3. #3
    dystemper is offline New Bee
    Join Date
    Dec 2007
    Posts
    19
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well, i got the cronjob working... sort of.

    it copied the file tree onto my whb account, but none of the files. anyone have an idea?

    the cronjob command line:

    wget -r ftp://username:password@75.102.27.17.../cstrike/logs/

  4. #4
    Anna M.'s Avatar
    Anna M. is offline WeeHBie
    Join Date
    Dec 2008
    Posts
    453
    WHB Points this Month
    0.00
    WHB Points
    50.00
    Thanks
    2
    Thanked 6 Times in 3 Posts

    Default

    Please refer to the following ticket HMN-886531.
    CS Team
    WebHostingBuzz.com

    Get the latest news and promotions by following us on Twitter and Facebook

  5. #5
    omniuni's Avatar
    omniuni is offline Jewbergeek!
    Join Date
    Jul 2007
    Posts
    181
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hey, just to mention, they have rsync too. It works great, I use it to refresh a demo of my CMS.
    [URL="http://d-site.net"]http://d-site.net/[/URL]

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts