Solved

Copy Large Files and create a log file

Posted on 2013-02-04
4
480 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 54

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 54

Expert Comment

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

~bp
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

Suggested Solutions

Are you looking to recover an email message or a contact you just deleted mistakenly? Or you are searching for a contact that you erased from your MS Outlook ‘Contacts’ folder and now realized that it was important.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

710 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