Anyway to find what files weren't copied by command line? RRS feed

  • Question

  • Here is the bat file I created to backup data:

    echo off
    Echo Creating Temp FIle
    type "blank Lines.txt" > log.txt
    Date /t >> log.txt
    time /t >> log.txt
    type "blank Lines2.txt" >> log.txt
    Echo Backing up data
    SyncToyCmd -R "Data Backup" >> log.txt
    Echo Copying log to database
    type log.txt >> x:\"backup log.txt"
    del log.txt


    It works great, but if there is a file that errors, it just says "look at the log" is there a way for me to have that log displayed?

    Wednesday, April 21, 2010 2:52 PM

All replies

  • Sorry, as this desciption is on console, so it suggests you to look into log. And if you enable syncToy's log tracing level to verbose, while there is error/exception, there will be more info displayed in SyncToyLog.log file.



    View Log File
    View the log to see a record or report of changes to files after a SyncToy folder pair action has been run. SyncToy reports on the number of files it synchronized, the number of files that did not require synchronization, the length of time the SyncToy run took, and other statistics. The log can be particularly useful when you have scheduled SyncToy to run unattended. You may wish to view the log to see whether the scheduled SyncToy run completed as you expected.

    The SyncToy log can be viewed by choosing the View Log option from the SyncToy File menu. The View Log dialog also has an option for deleting the current log contents. The log file is placed under the user's local application data folder (on Windows Vista: %LOCALAPPDATA%\Microsoft\SyncToy\2.0\SyncToyLog.log, on Windows XP: "%USERPROFILE%\Local Settings\Application Data\Microsoft\SyncToy\2.0\SyncToyLog.log")

    Verbose Logging
    SyncToy supports a verbose level of logging for helping troubleshoot issues you may be having during synchronization operatons. To enable verbose logging, you'll need to manually edit the configuration file named SyncToy.config under the SyncToy install location (by default installed to "%PROGRAMFILES%\SyncToy 2.1"). Open the SyncToy.config file in your favorite text editor and change the value property of the SyncToyTraceLevel switch from "Info" to "Verbose", e.g.:

    add name="SyncToyTraceLevel" value="Verbose"

    Copyright © 2009 Microsoft Corporation. All rights reserved.

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Friday, May 14, 2010 9:14 AM