简体   繁体   中英

executing copy command in a batch file

I'm using a windows copy command to perform auto file backup of Microsoft outlook files for a domain users. the problem exists after 6 month of using this batch file is that the .pst file size for each user is growing and the copy operation is getting too long to complete.

i want to know are there any way to copy only the changed bits in the .pst file couse what i'm doing is copying the whole file each time a user login.

copy  C:\"Documents and Settings"\%USERNAME%\"Local Settings"\"Application Data"\Microsoft\Outlook\ \\storage\folder1\folder2\%USERNAME%\%DESTDIR% /y /v

thanks

此页面可能会帮助您做到这一点: 链接

In a word: with the regular Windows copy command, no.

You've a few alternatives, though. Probably the best is to ask your users (or get your administrator) to reduce the size of the mailbox.

Another is to try the robocopy utility, which is part of the Windows Server Resource Kit and which replaces xcopy in versions of Windows above Server 2008 R2. In my experience this is a little faster. It also includes an option to skip the copy if the file hasn't changed, which may help if your users only use email infrequently.

rsync (details here , Windows version here ) does a true differential copy, so only the changed bytes between the files are copied. However this needs to be installed as a Windows service on the listening side and needs to be installed as a program on each client.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM