Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Copy Large Files and create a log file

Posted on 2013-02-04
4
Medium Priority
?
486 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 59

Accepted Solution

by:
Bill Prew earned 2000 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 59

Expert Comment

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

~bp
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
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…
Suggested Courses

971 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