| Windows 7: Command line image backup |
23 Apr 2010
|
#1 | | W7 Ultimate in Assied Living facility, Fresno, Calif |
Command line image backup I have looked for but cannot find a command line that I can put in a bat file and use the Windows 7 scheduler to accomplish image backups on a schedule. | My System Specs |
| Computer type Laptop System Manufacturer/Model Number Asus OS W7 Ultimate CPU 2.2 bh Intel Core i3-2330M Motherboard Asustek Computer Inc. P53E 1.0 Memory 4MB Graphics Card On Board Sound Card On Board Monitor(s) Displays On Board Screen Resolution 1366 X 768 Hard Drives ST9500423AS
ST2000DM USB Backup Drive External |
23 Apr 2010
|
#2 | | |
Do you mean, to use Windows Backup? or another program. Here is some info on Task Sched command line
On that page you will find the following..... Quote:
To copy all files from the Documents folder to the MyDocs folder at midnight, type the following line, and then press ENTER:
at 00:00 cmd /c copy C:\Documents\*.* C:\MyDocs - To back up the Products server at 11:00 P.M. each weekday, create a batch file that contains the backup commands (for example, Backup.bat), type the following line, and then press ENTER to schedule the backup:
at \\products 23:00 /every:M,T,W,Th,F backup - To schedule a net share command to run on the Sales server at 6:00 A.M. and to redirect the listing to the Sales.txt file in the shared Reports folder on the Corp server, type the following line, and then press ENTER:
at \\sales 06:00 cmd /c "net share reports=d:\Documents\reports >> \corp\reports\sales.txt"
You know, I hadn't tested what I posted,, just assumed it would work.
And yes, it does infact work, as well as what SIW2 posted below.
Here is the info on SCHTASKS | My System Specs | | System Manufacturer/Model Number Self Built OS Win 7 Ultimate 32bit CPU C2D E6600 2.4Ghz Motherboard Intel D965WH Memory 4G Kingston KHX5400D2 Graphics Card EVGA GTX 570 HD SC (012-P3-1573-KR) Sound Card On-Board Monitor(s) Displays Samsung 226BW Screen Resolution 1680 x 1050 PSU Corsair TX750W Case In-Win C589 Cooling Stock Intel Cooling Hard Drives 2 x 250 Seagate Barracuda
2 x 500 Seagate Barracuda (Raid1) |
23 Apr 2010
|
#3 | | |
SCHTASKS /Create /SC DAILY /TN <TaskName> /RL HIGHEST /ST <StartTime> /TR <Wbadmin Command>
e.g.
SCHTASKS /Create /SC DAILY /TN MyDailyBackup /RL HIGHEST /ST 09:00 /TR "WBADMIN START BACKUP -backupTarget:J: -include:D: -quiet >> C:\mydailybackupLog.txt"
Or weekly:
SCHTASKS /Create /SC WEEKLY /D <Day Of Week> /TN <TaskName> /RL HIGHEST /ST <StartTime> /TR <Wbadmin Command> | My System Specs | | OS Vista x64 / 7 X64 CPU E8400 Motherboard ASRock 1333 GLAN R2.0 Memory 2x1 gb 800mhz Graphics Card 9500gt 1gb Case Coolermaster Cooling Winpower 500w Hard Drives Maxtor 160gb-2mb cache |
24 Apr 2010
|
#4 | | W7 Ultimate in Assied Living facility, Fresno, Calif |
Tepid,
I would use the Windows 7 Image backup.
I wish to create a batch file. This is the info I need. I will use then use the Windows 7 Task Scheduler to run the batch file at the appropriate time.
Thanks to SIW2 for your input. Not ready to take on the SCHTASKS thing yet. A simple batch file is what I am familiar with. | My System Specs | | Computer type Laptop System Manufacturer/Model Number Asus OS W7 Ultimate CPU 2.2 bh Intel Core i3-2330M Motherboard Asustek Computer Inc. P53E 1.0 Memory 4MB Graphics Card On Board Sound Card On Board Monitor(s) Displays On Board Screen Resolution 1366 X 768 Hard Drives ST9500423AS
ST2000DM USB Backup Drive External |
24 Apr 2010
|
#5 | | 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise Texas |
Hello Blockie,
Just in case you didn't know, when you create a backup, you can set to run the backup and/or system image (step 9 in tutorial below) to run on schedule of your choice automatically. Plus, you can make changes to this schedule whenever you like. Backup User and System Files
Hope this helps,
Shawn | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
25 Apr 2010
|
#6 | | W7 Ultimate in Assied Living facility, Fresno, Calif |
Shawn,
It looks like Windows 7 has everything.However, I do not wish to backup the libraries, Just an image. I would like to make as many images as my 300GB disk will hold, deleting the oldest when necessary. I can use the disk management tools to make an image a VHD and attach it. That way I can always explore it and copy and paste if necessary. Better than library BU's in my estimator. | My System Specs | | Computer type Laptop System Manufacturer/Model Number Asus OS W7 Ultimate CPU 2.2 bh Intel Core i3-2330M Motherboard Asustek Computer Inc. P53E 1.0 Memory 4MB Graphics Card On Board Sound Card On Board Monitor(s) Displays On Board Screen Resolution 1366 X 768 Hard Drives ST9500423AS
ST2000DM USB Backup Drive External |
25 Apr 2010
|
#7 | | Vista, Windows7, Mint Mate, Zorin, Windows 8 Florida in winter, Black Forest/Germany |
Why don't you make your life easy and use free Macrium for imaging. No hoops to jump like with the Windows 7 facility. Very easy to setup and schedule. See my video tutorial with a link to a short written introduction. I have done many restores with it and it works flawlessly.
Here is how I image my systems - but you need not go to such an extreme: I make a daily image of my system and data partitions at boot-up. I have set Macrium to do that automatically. It takes only 9 minutes from my SSD to the internal HDD. Every Sunday, I copy the Sunday image to an on-line external disk into a "weekly folder". Every first of the month I also copy the last image to an external disk "monthly folder" that usually stays off-line. That way I have a whole history all the way back to the initial installation. | My System Specs | | System Manufacturer/Model Number HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops OS Vista, Windows7, Mint Mate, Zorin, Windows 8 CPU from 1.6GHz Duo to i7 Monitor(s) Displays 2x HP w2207 Keyboard with trackball - no mices Mouse Trackball mice Hard Drives 5x HDD, 7x SSD, 12x Externals Internet Speed DSL 6000 |
25 Apr 2010
|
#8 | | Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86 |
Blockie,
You can use the "Wbadmin" command to backup Windows 7 from the command line. This the command reference page from MS. Wbadmin
But just google for "Windows 7 wbadmin" and there are pages and pages of results. | My System Specs | | System Manufacturer/Model Number Too many to describe... OS Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86 |
25 Apr 2010
|
#9 | | W7 Ultimate in Assied Living facility, Fresno, Calif |
If I understand all the help provided the BADMIN command only does backups of variouis folders or files. What I am asking is for a command line IMAGE, I say again, IMAGE backup. A simple batch file will do and then I will use the scheduler to execute it. I do not want to do a simple backup of various files and folders. | My System Specs | | Computer type Laptop System Manufacturer/Model Number Asus OS W7 Ultimate CPU 2.2 bh Intel Core i3-2330M Motherboard Asustek Computer Inc. P53E 1.0 Memory 4MB Graphics Card On Board Sound Card On Board Monitor(s) Displays On Board Screen Resolution 1366 X 768 Hard Drives ST9500423AS
ST2000DM USB Backup Drive External |
25 Apr 2010
|
#10 | | |
Not sure where you got that idea, Blockie.
It makes an image when i run it, eg
"WBADMIN START BACKUP -backupTarget:J: -include:D: -quiet >> C:\mydailybackupLog.txt"
makes an image of D volume and stores it on J.
if you want to include more volumes, separate them with colons, like this:
WBADMIN START BACKUP -backupTarget:J: -include:C:D:E: -quiet
This bit >> C:\mydailybackupLog.txt is optional , to output a log to a textfile.
I agree with whs - 3rd party apps. are easier to use and more flexible, even the free versions. | My System Specs | | OS Vista x64 / 7 X64 CPU E8400 Motherboard ASRock 1333 GLAN R2.0 Memory 2x1 gb 800mhz Graphics Card 9500gt 1gb Case Coolermaster Cooling Winpower 500w Hard Drives Maxtor 160gb-2mb cache Command line image backup problems? All times are GMT -5. The time now is 01:14 AM. | |