Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Options for copying log files to server where Weblog expert is lcoated

I saw this help for options on copying log files:

I'm surprised they didn't mention robocopy or xcopy.. Has anyone used either of these robocopy or xcopy to copy from server to another server? Can someone provide examples?


1 person has
this question
  • I use PHP script to rename and ftp the logfiles to a folder on the WLE server, running by a cron job on the webserver

    Other options:
    use smartsync pro to download the log files
    write script in PS to download and rename the log file
    start php script with wget or curl from WLE PC

    run as script before WLE analyse

    My php script for a directadmin shared hosting account

    $logmap= "/home/user/domains/domain.tld/logs/";
    $newfile= date("Ymd",time()-(24*60*60))."-domain.tld.gz";
    foreach (glob($logmap."*.gz") as $filename) {
    if (!copy($filename, 'ftp://ftpuser:ftppassword@ftpserver.tld/Logs/'.$newfile)) {
    if (!copy($filename, $archiefmap.$newfile)) {
    echo "failed to copy $filename ...";

    Ps no support on the script
  • (some HTML allowed)
    How does this make you feel?
    Add Image

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • This reply was removed on 2016-05-26.
    see the change log