1

I'm looking for incremental backup of one of my folders in my USB flash drive to my pc I'm using a ROBOCOPY command and has scheduled it on log on event through task scheduler Here's the code I'm using in my bat file

ROBOCOPY "I:\MJDrive" "d:\DriveBackup" /e /z /xo /tee /mt:4 /R:10 /W:10 /xf /LOG:d:\Backup.log

Every thing is working fine with the other files except of the ms access files actually which I'm working on and especially which I'm doing all this for.

Why does it not work with ms access files.

  • 3
    Is the file locked? Does your log show anything? – Dave Oct 14 '18 at 13:37
0

Thank you guys for helping me out. I found the solution to my question and I thought the knowledge's worth sharing

Here is my complete code which I've found the perfect for the job and convenient

@echo on
ROBOCOPY "I:\MJDrive" "d:\DriveBackup" /e /z /xo /tee /mt:4 /R:5 /W:5 /it /LOG:d:\Backup.log
start "" "D:\Backup.log"
  1. I like to keep the echo on to be able to have a look at any time on whats going on

  2. The /it option is the real charm to handle the database type of files to stay updated

  3. Finally it opens the log file to show the details of operation just done.

Hope it contributes to someone else.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.