rustyrpage
asked on
Create a batch file for NTBackup - "simple"
I had thought that my NTBackup script was working well, but it doesn't do what I need. What I am looking to do is create a Batch File that can be run manually & launch NTBackup & backup any changes since the last backup.
For example, the user will launch the Backup.bat & it will do a full initial backup to Y:\Documents.bkf....now the next time they double-click on backup.bat, I want it only to add what has been added & delete was has been deleted. I had thought the incremental switch would handle this, but apparently not.
Below is what I have for the script, but I am apparently not correct. Please help me with what parameters I need to use/change. I want this to be as easy as possible for my users
For example, the user will launch the Backup.bat & it will do a full initial backup to Y:\Documents.bkf....now the next time they double-click on backup.bat, I want it only to add what has been added & delete was has been deleted. I had thought the incremental switch would handle this, but apparently not.
Below is what I have for the script, but I am apparently not correct. Please help me with what parameters I need to use/change. I want this to be as easy as possible for my users
@echo off
echo Running Backup...
echo ------------------------
echo DO NOT CLOSE THIS WINDOW
echo ------------------------
echo DO NOT CLOSE THIS WINDOW
echo ------------------------
echo DO NOT CLOSE THIS WINDOW
echo ------------------------
echo DO NOT CLOSE THIS WINDOW
echo ------------------------
echo DO NOT CLOSE THIS WINDOW
ntbackup backup "C:\documents and settings\%username%\Favorites" /J "Backup Favs" /F Y:\Backup_Favs.bkf /M incremental /SNAP:on
ntbackup backup "C:\documents and settings\%username%\Desktop" /J "Backup Desktop" /F Y:\Backup_Desktop.bkf /M incremental /SNAP:on
ntbackup backup "C:\documents and settings\%username%\My Documents" /J "Backup Docs" /F Y:\Backup_Docs.bkf /M incremental /SNAP:on
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I just changed it to use RoboCopy & it is MUCH better...I just put Robocopy.exe on the USB drive & it is fast & leaves a log for them. I combine that with an Auto-It script & it automatically runs the backups, then displays the log on screen when it is done.
ASKER
Thanks anyway for your input!
ASKER
1) Have it verify the files have been backed up & if there were any exceptions (which shouldn't happen with VSC on), have it open a text document with the log showing what wasn't backed up.
2) Have it tell them in the command prompt window when they last backed up (if possible).
Also, I am testing this all out on my computer & I have a feeling that all of my files have already been marked as backed up. Is there a way to unmark them so that I can properly test this?
Thanks!