Windows 7 Forums


Windows 7: ROBOCOPY - Create Backup Script

18 Sep 2011  
Golden

 
ROBOCOPY - Create Backup Script

How to Create a Backup Script Using the ROBOCOPY Command

...


Last edited by Golden; 16 Oct 2012 at 07:59 AM..
My System SpecsSystem Spec

19 Jan 2013  
ROBO731

 

I'll have a look around and see what I can find. Thanks.
My System SpecsSystem Spec

19 Jan 2013  
Golden

 

Imaging using something like Macrium would probably be a better option.

My System SpecsSystem Spec
19 Jan 2013  
ROBO731

 

Yeah, but I'm not willing to pay for macrium and the free version doesn't let you exclude folders or backup certain folders.
My System SpecsSystem Spec
15 Apr 2013  
ghadley

 
Robocopy Log file Maximum Size

Dear Experts,

I have robocopy running continuously to mirror a folder every X hours. The windows 2008R2 server running the code is set to start the script at startup. Everything appears to be working fine, except the log files are becoming to be gigs big (too big to open with notepad, etc). I can manually stop the process, rename the log file, then the restart the process, but I am looking for a way to programmatically limit the size of the log file. Is this possible? Thanks!

-GH
My System SpecsSystem Spec
.


16 Apr 2013  
Golden

 

Hi,

Unfortunately, its not possible to limit the size of the logfile - that would defeat the purpose of the the logfile : to log everything it does.

A workaround might be to write to a new logfile every X hours, so you write to several different named logfiles during the course of a day. Perhaps using the date to name the logfile, like this?

Code:
SET log_fname=%prefix%%date:~-4,4%%date:~-10,2%%date:~-7,2%.log
Regards,
Golden
My System SpecsSystem Spec
3 Weeks Ago  
Nuno Lopes

 

Hi all,

I´ve create a .bat file with the help of this tutorial, to make a backup of a directorie to my Skydrive account, this is the script.

robocopy.exe "C:\Radio\DXLab" "C:\Users\userid\SkyDrive\Radio\DXLab Backups\teste" /e /mir /np /z /tee /log:backup_log.txt

Now what I was trying to do is:

Inside DXLab directorie is an Folder - Luncher, with an Luncher.exe, that lunches 7 applications, and when I terminate the Luncher.exe it terminates all 7 applications.

Now what I wanna do is when Luncher.exe close, the Backup.bat will make the backup of that session.

I've already converted .bat to .exe and the script works good.

Any ideia on how to do this.

Thanks.
My System SpecsSystem Spec
Comment

 ROBOCOPY - Create Backup Script problems?



Tutorial Tools



Similar help and support threads for: ROBOCOPY - Create Backup Script
Windows 7 Tutorial Category
How to create batch script to lock workstation then log off. General Discussion
Robocopy backup for personal folders Backup and Restore
Robocopy backup - file permissions General Discussion
Anyone use robocopy to backup? Backup and Restore
Create ErrorHandler.cmd script file General Discussion


All times are GMT -5. The time now is 01:05 AM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd