Solved

Copy Large Files and create a log file

Posted on 2013-02-04
4
481 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 56

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 56

Expert Comment

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

~bp
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 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 show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

623 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