| Windows 7: Use bat file to auto backup |
18 Jan 2012
|
| | Windows Professional 64bit 169 posts |
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 Specs |
| System Manufacturer/Model Number Dell XPS 17 OS Windows Professional 64bit CPU Intel Core i7 2820QM @ 2.30GHz, Sandy Bridge 32nm Motherboard 03RG89, Intel Ver: A12 Memory 16GB Graphics Card Generic PnP Monitor (1600x900@60Hz), NVIDIA GeForce GT 555m Sound Card High Definition Audio Device Monitor(s) Displays NVIDIA 3D Screen Resolution 1600 x 900 3d Hard Drives 250GB SAMSUNG SAMSUNG SSD PM810 2.5" 256GB ATA Device (SATA-SSD)
625GB SAMSUNG SAMSUNG HM640JJ ATA Device (SATA) Other Info Transend 64GB Memory Card, Lexar Echo ZE 32GB USB 2.0 Backup DriveLEHZE32GASBNA <---Newest thing and very small. |
18 Jan 2012
|
| | Windows 7 458 posts Raleigh, NC |
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 Specs | | System Manufacturer/Model Number Custom OS Windows 7 CPU AMD Phenom II X2 (dual-core) Motherboard GA-MA785GM-US2H Memory 4G Graphics Card integrated ATI HD 4200 Sound Card integrated Monitor(s) Displays Samsung 24" Screen Resolution 1920x1080 Keyboard Microsoft Digital Media Pro Mouse Logitech WIRED! PSU Ultra X4 500W Case Ultra X-blaster Hard Drives 1 SATA (750GB, 32MB cache, 7200 RPM)
1 IDE (80GB, 8MB cache, 7200 RPM)
1 SSD (Intel 320, 120GB, installed but not activated) Internet Speed 15 Mbps FIOS |
18 Jan 2012
|
| | Windows Professional 64bit 169 posts |
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 Specs | | System Manufacturer/Model Number Dell XPS 17 OS Windows Professional 64bit CPU Intel Core i7 2820QM @ 2.30GHz, Sandy Bridge 32nm Motherboard 03RG89, Intel Ver: A12 Memory 16GB Graphics Card Generic PnP Monitor (1600x900@60Hz), NVIDIA GeForce GT 555m Sound Card High Definition Audio Device Monitor(s) Displays NVIDIA 3D Screen Resolution 1600 x 900 3d Hard Drives 250GB SAMSUNG SAMSUNG SSD PM810 2.5" 256GB ATA Device (SATA-SSD)
625GB SAMSUNG SAMSUNG HM640JJ ATA Device (SATA) Other Info Transend 64GB Memory Card, Lexar Echo ZE 32GB USB 2.0 Backup DriveLEHZE32GASBNA <---Newest thing and very small. |
18 Jan 2012
|
| | Windows 7 458 posts Raleigh, NC |

Quote: Originally Posted by timlab1955 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 Specs | | System Manufacturer/Model Number Custom OS Windows 7 CPU AMD Phenom II X2 (dual-core) Motherboard GA-MA785GM-US2H Memory 4G Graphics Card integrated ATI HD 4200 Sound Card integrated Monitor(s) Displays Samsung 24" Screen Resolution 1920x1080 Keyboard Microsoft Digital Media Pro Mouse Logitech WIRED! PSU Ultra X4 500W Case Ultra X-blaster Hard Drives 1 SATA (750GB, 32MB cache, 7200 RPM)
1 IDE (80GB, 8MB cache, 7200 RPM)
1 SSD (Intel 320, 120GB, installed but not activated) Internet Speed 15 Mbps FIOS |
18 Jan 2012
|
| | Windows Professional 64bit 169 posts |
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 Specs | | System Manufacturer/Model Number Dell XPS 17 OS Windows Professional 64bit CPU Intel Core i7 2820QM @ 2.30GHz, Sandy Bridge 32nm Motherboard 03RG89, Intel Ver: A12 Memory 16GB Graphics Card Generic PnP Monitor (1600x900@60Hz), NVIDIA GeForce GT 555m Sound Card High Definition Audio Device Monitor(s) Displays NVIDIA 3D Screen Resolution 1600 x 900 3d Hard Drives 250GB SAMSUNG SAMSUNG SSD PM810 2.5" 256GB ATA Device (SATA-SSD)
625GB SAMSUNG SAMSUNG HM640JJ ATA Device (SATA) Other Info Transend 64GB Memory Card, Lexar Echo ZE 32GB USB 2.0 Backup DriveLEHZE32GASBNA <---Newest thing and very small. |
18 Jan 2012
|
| | Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1 5,195 posts Hertfordshire |
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 Specs | | Computer type PC/Desktop System Manufacturer/Model Number Hewlett-Packard/G62-107SA Notebook OS Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1 CPU Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz Motherboard Hewlett-Packard 1425 Memory 8 GB DDR3 Graphics Card Intel(R) HD Graphics Sound Card Realtek High Definition Audio Monitor(s) Displays Builtin Screen Resolution 1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz Mouse Microsoft Bluetooth Notebook Mouse 5000 Hard Drives 250 GB SATA Hard Disk Drive 7200 rpm
2TB Seagate GoFlex USB 2 Drive
1TB Iomega Prestige USB 2 Drive
1.5TB Iomega Prestige USB 2 Drive (Samsung)
1TB Iomega NAS. Internet Speed 60 Mbs download 3 Mbs upload Antivirus Norton 360 Browser Chrome |
18 Jan 2012
|
| | Windows 7 458 posts Raleigh, NC |

Quote: Originally Posted by timlab1955 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 Specs | | System Manufacturer/Model Number Custom OS Windows 7 CPU AMD Phenom II X2 (dual-core) Motherboard GA-MA785GM-US2H Memory 4G Graphics Card integrated ATI HD 4200 Sound Card integrated Monitor(s) Displays Samsung 24" Screen Resolution 1920x1080 Keyboard Microsoft Digital Media Pro Mouse Logitech WIRED! PSU Ultra X4 500W Case Ultra X-blaster Hard Drives 1 SATA (750GB, 32MB cache, 7200 RPM)
1 IDE (80GB, 8MB cache, 7200 RPM)
1 SSD (Intel 320, 120GB, installed but not activated) Internet Speed 15 Mbps FIOS |
18 Jan 2012
|
| | win 7 X64 Ultimate SP1 1,610 posts Ohio (From WV) |
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 Specs | | System Manufacturer/Model Number BGC (Bob's Garage Crew) OS win 7 X64 Ultimate SP1 CPU I3770K Motherboard Asus P8Z77-V Deluxe Memory G Skill F3-14900CL9-4GBXL x 4 Graphics Card NVIDIA GeForce GTX670 + Intel 4000 Sound Card Realtek HD 5.1 (MOB) Monitor(s) Displays Asus VW224T (1) Screen Resolution 1920 x 1080 Keyboard MS Wireless 3000 V2 Mouse MS Wireless 3000 V2 PSU CoolerMaster 1000 Watt Case CoolerMaster HAF X Cooling CPU -- CoolerMaster 520N Hard Drives SATA Corsair Force GT 2.5" 180GB (System) Sata 3
OCZ Vertex3 120GB
OCZ Vertex 2 120GB 2.5" SATA II
ST31000524AS 1000.2GB
WD15EARS (External) Internet Speed Cable Antivirus Norton Internet Security Browser IE9 Other Info AMI Bios 1805
OC'd 3% Use bat file to auto backup problems? All times are GMT -5. The time now is 04:10 AM. | |