Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Use bat file to auto backup

18 Jan 2012   #1
timlab1955

Windows Professional 64bit
 
 
Use bat file to auto backup

I use to know how to do bat files, but it has been many years. Age has gotten to me and with some problems with my computer system, I'm wondering how I can backup certain files onto my USB drive when I turn "OFF" the computer. For example, when I tell windows 7 to power down, run this bat file first.

Thanks.


My System SpecsSystem Spec
.
18 Jan 2012   #2
JimLewandowski

 
 

For Windows Pro?? and above, using Group Policy, you can have a synchronoous (e.g.e don't start shutdown until script complete) shutdown script.

Or, without that, having a desktop icon that launches your backup script but also does the shutdown command at the end.
My System SpecsSystem Spec
18 Jan 2012   #3
timlab1955

Windows Professional 64bit
 
 

I like that one is for me to click on an icon have the computer run the script and then shut down the computer. Any suggestions on where I can find such a bat file to do this? And while I'm at it, how about if I click on the shut down button and have that do it all?
My System SpecsSystem Spec
.

18 Jan 2012   #4
JimLewandowski

 
 

Quote   Quote: Originally Posted by timlab1955 View Post
I like that one is for me to click on an icon have the computer run the script and then shut down the computer. Any suggestions on where I can find such a bat file to do this? And while I'm at it, how about if I click on the shut down button and have that do it all?
You penetrate the outer teachings. I haven't fully delved into it, but I don't think you can change what the shut down button/tile does. I was thinking the same thing.

For starters:

schedule a regularly scheduled Windows Backup (that includes or does not include a system image) via Backup and Restore main panel.

Then look in Task Scheduler under Microsoft? Window? Backup? or WindowsBackup? to find what is executed when Windows Backup runs.

Your script will basically have that line and a -shutdown- command.
My System SpecsSystem Spec
18 Jan 2012   #5
timlab1955

Windows Professional 64bit
 
 

Great minds think alike that's for sure. Okay I'm game, but let me ask you this. If I do a windows backup/restore, can I choose which files I want to restore and which one's I don't? Then comes the problem of how to tell windows which files I want to back up. I don't understand the backup/restore in windows. Just make it easy, put a few click marks in little boxes, and that's it. I'm thinking about going with Daemon Tools to make an iso file. They tell me that with this, I can check which files to add to the iso file and good to go. Any other suggestions?
My System SpecsSystem Spec
18 Jan 2012   #6
kado897

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bit Service Pack 1
 
 

FreeFileSync can do what you want. You can use it to create a batch job and use when finished action of Shutdown.FreeFileSync | Free Security & Utilities software downloads at SourceForge.net
My System SpecsSystem Spec
18 Jan 2012   #7
JimLewandowski

 
 

Quote   Quote: Originally Posted by timlab1955 View Post
Great minds think alike that's for sure. Okay I'm game, but let me ask you this. If I do a windows backup/restore, can I choose which files I want to restore and which one's I don't? Then comes the problem of how to tell windows which files I want to back up. I don't understand the backup/restore in windows. Just make it easy, put a few click marks in little boxes, and that's it. I'm thinking about going with Daemon Tools to make an iso file. They tell me that with this, I can check which files to add to the iso file and good to go. Any other suggestions?
You'll note that for Backup, the Task Scheduler has some command line with only one parm? My guess is that parm simply says "look at all the registry settings pertaining to the selectable file/folder tree in the Backup applet".

With that said, I haven't experimented with it, but I believe using the command line WBADMIN command, you can include and exclude folders as part of a regular backup (which I assume could also include a system image if the -allcritical option was specified).

You didn't say anything about automating a restore of files/folders. That doesn't make sense.
My System SpecsSystem Spec
18 Jan 2012   #8
HammerHead

win 7 X64 Ultimate SP1
 
 
Backup Automation

May not be a good solution for you.

Macrium Reflect (paid ver) does scripts and bat files. Will turn off the computer at completion. Paid ver does files while the free ver does only images.
My System SpecsSystem Spec
Reply

 Use bat file to auto backup




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows7 Backup and Restore utility: I can't find the file to backup
Hi, New to this forum. I am using Win7 Backup and Restore, along with a Seagate external drive for my backup needs. I backup every week, and have been using it for about 1 year. I see the backups happening each week, but I've never had the need to restore anything. For the first time, I've...
Backup and Restore
Backup & Restore Failed because of Auto Windows Update
I have an Acer Aspire AS5251 laptop. I was in "Backup & Restore", running Backup. I went to bed after inserting the sixth backup disk. I woke up this morning and I had to login. So, after that, I noticed a popup window with a message saying that my windows update had occured overnight and my...
Backup and Restore
File backup instead of image backup - Big Mess!
Hi all, One of my drives in raid0 crashed and fortunately I had windows 7 x64 backup activated and running daily. NOT!!! After recreating the array with the remaining drives, I tried to restore from the external usb drive but it didn't work. Apparently the problem is that I had been...
Backup and Restore
How do I auto backup my data in XP mode when I am not running it?
I have been using Palm Desktop for Notes, Contacts, etc for a long time on my XP laptop. I recently switched to Windows 7 on a new laptop. I couldn't get Palm Desktop to install on Windows 7 64bit. So I virtualized XP mode on my laptop and installed Palm Desktop in XP and transferred all the...
Backup and Restore
Choosing between a file backup and a image backup...
I've recently upgraded to a 1.5TB external hard drive for video production work, which has left me with a 500GB drive which is no longer needed. I'm thinking of using it as a backup. Is Windows backup sufficient? Or should I be looking at specialist software? Also, I'm probably just going to...
Backup and Restore
Need a software to open .bkf file(windows XP backup file)
i hav recently reinstalled windows 7 from windows xp ..... and i hav created my games backup file ......... but nw i m having a trouble to open it in windows 7...... plz help me
Backup and Restore


Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 22:33.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App