Solved

Copy Large Files and create a log file

Posted on 2013-02-04
4
478 Views
Last Modified: 2013-02-04
Hello,

I would like to use XCOPY to backup some data on our server but would like to create a log file.  Can I output to a log file that will show the files backed up and possibly the file size of each file backed up?

Thank you.
0
Comment
Question by:cbones
  • 2
4 Comments
 
LVL 14

Expert Comment

by:John-Charles-Herzberg
ID: 38852877
Will this sample help?

xcopy "z:\*.id" "c:\data" /d /L /y >> "C:\Documents and Settings\Administrator\Desktop\ID_Log.txt"

echo. |time |find "current" >> "C:\Documents and Settings\Administrator\Desktop\ID_Log.txt"
echo. |date |find "current" >> "C:\Documents and Settings\Administrator\Desktop\ID_Log.txt"
0
 
LVL 53

Accepted Solution

by:
Bill Prew earned 500 total points
ID: 38852964
By defauly XCOPY will list the files copied, just redirect the output to a log file, like (add any options you want):

XCOPY c:\from d:\to >log.txt

I don't think there is any way to show file size from XCOPY during the copy.  If you wanted that ROBOCOPY might offer it as I recall, but would have to double check.

~bp
0
 

Author Closing Comment

by:cbones
ID: 38853020
Robocopy will log everything I need.

Thank you.
0
 
LVL 53

Expert Comment

by:Bill Prew
ID: 38853221
Welcome, thanks for the feedback.

~bp
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now