Overclock.net › Forums › Components › Hard Drives & Storage › Sean's Data Backup Guide
New Posts  All Forums:Forum Nav:

Sean's Data Backup Guide - Page 4

post #31 of 344
Yup, thanks!
Alpha v.2
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 740be @ 3.63 (16.5 x 220) ASUS M3A78-CM XFX HD4850 Crucial 2x2GM DDR2-800 6-6-6-18 
Hard DriveOptical DriveOSMonitor
WD Black 500GB OS/Programs, WD 1Tb + 800 GB data Sony DVD-RW Win 7x64 Professional Dell 22" 
PowerCase
Antec Earthwatts 650 Antec 300 w/5 fans 
  hide details  
Reply
Alpha v.2
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 740be @ 3.63 (16.5 x 220) ASUS M3A78-CM XFX HD4850 Crucial 2x2GM DDR2-800 6-6-6-18 
Hard DriveOptical DriveOSMonitor
WD Black 500GB OS/Programs, WD 1Tb + 800 GB data Sony DVD-RW Win 7x64 Professional Dell 22" 
PowerCase
Antec Earthwatts 650 Antec 300 w/5 fans 
  hide details  
Reply
post #32 of 344
Quote:
Originally Posted by SeanWebster View Post
Now what I want to know is how to make it a hidden process as in teh CMD window doesn't pop up. I think I can by making it a .vbs, but IDK how.
Hey Sean,

Try creating a text file, rename it to a .js file (i called mine hiddenrun.js) and put the following lines in it:

Code:
var WindowStyle_Hidden = 0
var objShell = WScript.CreateObject("WScript.Shell")
var result = objShell.Run("cmd.exe /c notepad.exe", WindowStyle_Hidden)
Of course replace the notepad.exe with whatever you want. You can put in your entire robocopy or shadowspawn script in there and then manually run that script or have Windows Task Scheduler handle it. Either way, you shouldn't see anything pop up -- the only proof you'll have that its running is looking for it in your processes.
2013 Rig
(13 items)
 
2012 Rig
(15 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500K 4.8GHz @ 1.34v ASRock P67 Extreme4 B3 XFX Radeon HD 6850 1GB 8GB DDR3 1600 MHz CL8 
Hard DriveOptical DriveCoolingOS
Crucial C300 128GB + 3x 1TB Spinpoint F3 RAID0 2x ASUS 24x DVD+-RW/DL Noctua NH-D14 Windows 7 Pro x64 SP1 
MonitorPowerCaseAudio
Viewsonic 24" LED SeaSonic X650 Gold Cooler Master HAF X Onboard HD 
  hide details  
Reply
2013 Rig
(13 items)
 
2012 Rig
(15 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500K 4.8GHz @ 1.34v ASRock P67 Extreme4 B3 XFX Radeon HD 6850 1GB 8GB DDR3 1600 MHz CL8 
Hard DriveOptical DriveCoolingOS
Crucial C300 128GB + 3x 1TB Spinpoint F3 RAID0 2x ASUS 24x DVD+-RW/DL Noctua NH-D14 Windows 7 Pro x64 SP1 
MonitorPowerCaseAudio
Viewsonic 24" LED SeaSonic X650 Gold Cooler Master HAF X Onboard HD 
  hide details  
Reply
post #33 of 344
Here I come with a question. I can't use the ShadowSpawn method since I need to be able to do the backups on a portable drive, so I need to do the backup when I am free to physically do it. If I store the robocopy bat in the folder I want backed up, will it back up the bat file too? Or will it get skipped since it's being used?
post #34 of 344
Quote:
Originally Posted by DrC View Post
Here I come with a question. I can't use the ShadowSpawn method since I need to be able to do the backups on a portable drive, so I need to do the backup when I am free to physically do it. If I store the robocopy bat in the folder I want backed up, will it back up the bat file too? Or will it get skipped since it's being used?
I'm not sure I understand what you mean. I backup to a portable external drive and I use ShadowSpawn without issues.
2013 Rig
(13 items)
 
2012 Rig
(15 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500K 4.8GHz @ 1.34v ASRock P67 Extreme4 B3 XFX Radeon HD 6850 1GB 8GB DDR3 1600 MHz CL8 
Hard DriveOptical DriveCoolingOS
Crucial C300 128GB + 3x 1TB Spinpoint F3 RAID0 2x ASUS 24x DVD+-RW/DL Noctua NH-D14 Windows 7 Pro x64 SP1 
MonitorPowerCaseAudio
Viewsonic 24" LED SeaSonic X650 Gold Cooler Master HAF X Onboard HD 
  hide details  
Reply
2013 Rig
(13 items)
 
2012 Rig
(15 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500K 4.8GHz @ 1.34v ASRock P67 Extreme4 B3 XFX Radeon HD 6850 1GB 8GB DDR3 1600 MHz CL8 
Hard DriveOptical DriveCoolingOS
Crucial C300 128GB + 3x 1TB Spinpoint F3 RAID0 2x ASUS 24x DVD+-RW/DL Noctua NH-D14 Windows 7 Pro x64 SP1 
MonitorPowerCaseAudio
Viewsonic 24" LED SeaSonic X650 Gold Cooler Master HAF X Onboard HD 
  hide details  
Reply
post #35 of 344
Thread Starter 
Quote:
Originally Posted by DrC View Post
Here I come with a question. I can't use the ShadowSpawn method since I need to be able to do the backups on a portable drive, so I need to do the backup when I am free to physically do it. If I store the robocopy bat in the folder I want backed up, will it back up the bat file too? Or will it get skipped since it's being used?
It will copy it as well. I have done it a ton of times lol.

And Gasman I can't get it to work lol. CMD is hidden but the file isn't being run.

Code:
var WindowStyle_Hidden = 0
var objShell = WScript.CreateObject("WScript.Shell")
var result = objShell.Run("cmd.exe /c Back-Up All To Second Drive", WindowStyle_Hidden)
post #36 of 344
Quote:
Originally Posted by SeanWebster;15329102 
It will copy it as well. I have done it a ton of times lol. smile.gif

And Gasman I can't get it to work lol. CMD is hidden but the file isn't being run.
Code:
var WindowStyle_Hidden = 0
var objShell = WScript.CreateObject("WScript.Shell")
var result = objShell.Run("cmd.exe /c Back-Up All To Second Drive", WindowStyle_Hidden)

Try renaming your batch file to one without any spaces in it (ie BackupAllToSecondDrive) or try putting quotes around it. Also unless you're running this from the same directory that your batch file is in, be sure to copy it to C:\Windows\System32 so you can call it from anywhere.

The fastest way to test if your batch file is working is to just open a command prompt and try typing in the batch file name and see if it runs. I'm pretty sure its the spaces that are causing it.
Edited by GasMan320 - 11/12/11 at 3:46pm
2013 Rig
(13 items)
 
2012 Rig
(15 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500K 4.8GHz @ 1.34v ASRock P67 Extreme4 B3 XFX Radeon HD 6850 1GB 8GB DDR3 1600 MHz CL8 
Hard DriveOptical DriveCoolingOS
Crucial C300 128GB + 3x 1TB Spinpoint F3 RAID0 2x ASUS 24x DVD+-RW/DL Noctua NH-D14 Windows 7 Pro x64 SP1 
MonitorPowerCaseAudio
Viewsonic 24" LED SeaSonic X650 Gold Cooler Master HAF X Onboard HD 
  hide details  
Reply
2013 Rig
(13 items)
 
2012 Rig
(15 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500K 4.8GHz @ 1.34v ASRock P67 Extreme4 B3 XFX Radeon HD 6850 1GB 8GB DDR3 1600 MHz CL8 
Hard DriveOptical DriveCoolingOS
Crucial C300 128GB + 3x 1TB Spinpoint F3 RAID0 2x ASUS 24x DVD+-RW/DL Noctua NH-D14 Windows 7 Pro x64 SP1 
MonitorPowerCaseAudio
Viewsonic 24" LED SeaSonic X650 Gold Cooler Master HAF X Onboard HD 
  hide details  
Reply
post #37 of 344
Quote:
Originally Posted by GasMan320 View Post
I'm not sure I understand what you mean. I backup to a portable external drive and I use ShadowSpawn without issues.
The ShadowSpawn method you posted said to schedule a task. My only issue with scheduling a task is that I may not always be available to have the drive in during the scheduled time.
post #38 of 344
Quote:
Originally Posted by DrC;15331717 
The ShadowSpawn method you posted said to schedule a task. My only issue with scheduling a task is that I may not always be available to have the drive in during the scheduled time.

Ahh, I see where you're getting confused. You don't have to schedule a task to run shadowspawn if you don't want to. You can just put your command in a regular text file, save it as a batch (.bat) file and then double click to run it whenever you feel like doing a backup.

Your code could just have:
Code:
shadowspawn C:\Source\ Q: Robocopy Q:\ G:\Destination\ /V /MIR /TEE /ETA /LOG+:G:\BackupLog.txt

Once you have that saved as a .bat file (ie backup.bat) then you could just double click on it and have it work. Be sure to make your ShadowSpawn.exe globally accessible by placing the executable in your C:\Windows\System32\ folder. Then you can call shadowspawn from anywhere.

If you have any questions feel free to ask. Good luck! smile.gif
Edited by GasMan320 - 11/12/11 at 3:46pm
2013 Rig
(13 items)
 
2012 Rig
(15 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500K 4.8GHz @ 1.34v ASRock P67 Extreme4 B3 XFX Radeon HD 6850 1GB 8GB DDR3 1600 MHz CL8 
Hard DriveOptical DriveCoolingOS
Crucial C300 128GB + 3x 1TB Spinpoint F3 RAID0 2x ASUS 24x DVD+-RW/DL Noctua NH-D14 Windows 7 Pro x64 SP1 
MonitorPowerCaseAudio
Viewsonic 24" LED SeaSonic X650 Gold Cooler Master HAF X Onboard HD 
  hide details  
Reply
2013 Rig
(13 items)
 
2012 Rig
(15 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500K 4.8GHz @ 1.34v ASRock P67 Extreme4 B3 XFX Radeon HD 6850 1GB 8GB DDR3 1600 MHz CL8 
Hard DriveOptical DriveCoolingOS
Crucial C300 128GB + 3x 1TB Spinpoint F3 RAID0 2x ASUS 24x DVD+-RW/DL Noctua NH-D14 Windows 7 Pro x64 SP1 
MonitorPowerCaseAudio
Viewsonic 24" LED SeaSonic X650 Gold Cooler Master HAF X Onboard HD 
  hide details  
Reply
post #39 of 344
Another tool to check out is XXCOPY (http://www.xxcopy.com/). Works just as well, if not better than ROBOCOPY since it's a lot more configurable. Free for home/private use.
SG06
(16 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-3570S 65W ASRock Z77E-ITX VisionTek AMD Radeon RX 480 8GB Reference G.SKILL Sniper DDR3-2400 (@ 1866 9-10-10-28) 2x8GB 
Hard DriveHard DriveCoolingCooling
Crucial m4 256GB Toshiba P300 3TB Prolimatech Samuel 17 Noctua NF-F12 
OSMonitorMonitorKeyboard
Windows 10 Pro x64 HP Omen 32" HP Pavilion 27xi Das Model S Professional Silent 
PowerCaseMouseAudio
Silverstone SST-ST45SF Silverstone SG06 Microsoft Intellimouse Realtek ALC898 
  hide details  
Reply
SG06
(16 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-3570S 65W ASRock Z77E-ITX VisionTek AMD Radeon RX 480 8GB Reference G.SKILL Sniper DDR3-2400 (@ 1866 9-10-10-28) 2x8GB 
Hard DriveHard DriveCoolingCooling
Crucial m4 256GB Toshiba P300 3TB Prolimatech Samuel 17 Noctua NF-F12 
OSMonitorMonitorKeyboard
Windows 10 Pro x64 HP Omen 32" HP Pavilion 27xi Das Model S Professional Silent 
PowerCaseMouseAudio
Silverstone SST-ST45SF Silverstone SG06 Microsoft Intellimouse Realtek ALC898 
  hide details  
Reply
post #40 of 344
Thread Starter 
Quote:
Originally Posted by GasMan320;15330601 
Try renaming your batch file to one without any spaces in it (ie BackupAllToSecondDrive) or try putting quotes around it. Also unless you're running this from the same directory that your batch file is in, be sure to copy it to C:\Windows\System32 so you can call it from anywhere.

The fastest way to test if your batch file is working is to just open a command prompt and try typing in the batch file name and see if it runs. I'm pretty sure its the spaces that are causing it.

Ok I have it working like this, I copied the .bat into the System32 folder to get it working.
Code:
var WindowStyle_Hidden = 0
var objShell = WScript.CreateObject("WScript.Shell")
var result = objShell.Run("cmd.exe /c BackUpAllToSecondDrive.bat", WindowStyle_Hidden)

But I would like to get it working from this location. Is it possible? It works fine when i run it in CMD.
Code:
D:\Documents\MyStuff\Scripts\BackUpAllToSecondDrive.bat
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Hard Drives & Storage
Overclock.net › Forums › Components › Hard Drives & Storage › Sean's Data Backup Guide