[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 633
  • Last Modified:

Windows Backup w/SBS 2008 and Enterprise 2008 to NAS or Remote Share

Has anyone found a way to schedule backup jobs to remote shares or NAS devices in windows 2008 sbs or Windows 2008 enterprise?
we can run an indivual backup to a remote share or NAS drive that we map a drive to but cannot schedule a job to use any of these devices.
is there way (maybe with scheduled tasks) we can schedule a backup to these shares/devices?
all help is greatly appreciated,
delebute
0
David Elebute
Asked:
David Elebute
  • 6
  • 3
1 Solution
 
Jaroslav MrazCTOCommented:
When you planing backup you can set shedule there. But the shedule alow you backup just files if oyu want to backup system state and barmetal recovery you need aditinal HDD insiide of server.
0
 
chakkoCommented:
You can install the command line part of Windows Backup and use Task Scheduler to run the job.

here is an example (.bat file executed by task scheduler) from Windows 2008 SBS to a NAS device.  
Note: in SBS 2008, I also make a separate backup of just System State (last line)

net use K /DELETE

net use K: \\192.168.2.11\backup /user:admin password

Wbadmin start backup -backupTarget:K:\Backup1 -include:C:,D:,E: -vssFull -allcritical -quiet


wbadmin start systemstatebackup -backuptarget:K:\SysState
0
 
David ElebuteAuthor Commented:
i like this method chakko
please hel pme detail

net use K: \\192.168.2.11\backup /user:admin password (understood here but the user and password should be as follows right?

/user:%username% (password for %username%)

delebute
0
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 
chakkoCommented:
Yes,  I use the local accounts in the Zyxel NAS in my example.  I do the Net Use to map a drive and also makes sure that it authenticates to the NAS.  so the login to the NAS is   username:   admin        password:   password

so I use the parameter   /user:admin password    in the net use command.

also, in my original script the wbadmin  backup command line  is set with the UNC Path \\192.168.2.1\backup\backup1   I just changed to drive K: in the answer I posted.   I can't remember if I was just lazy to change the UNC path to drive K: or if it worked better with the UNC path.

this is my original scrip (not real password)t:

rem  full backup Copy 1
net use K /DELETE
net use K: \\192.168.2.11\backup /user:admin mll442ca
Wbadmin start backup -backupTarget:\\192.168.2.11\backup\Backup1 -include:C:,D:,E: -vssFull -allcritical -quiet


Also, I just remembered that I actually do the system state to a local F: drive on this particular SBS 2008 server as mentioned by Jeremyno above.  I changed it to K: drive when I posted, but just read his comment. I am pretty sure I do the system state backup to local drive F: (2nd RAID1 mirror in the server) because it didn't support a Mapped drive or UNC.
0
 
David ElebuteAuthor Commented:
ok so if i get you straight, if my NAS or share does not need authentication then there is no need for that part of command line right?
everything else is straight forward, i will try it out shortly.
thank you,
delebute
0
 
chakkoCommented:
Yes, you're right.  My setup required authentication on the NAS device to browse the shared folder, that's the only reason I map the drive in my example.
0
 
David ElebuteAuthor Commented:
ok now im really feeeling stupid
installed remote storage manager and multipath i/o but where do i find camman line part of windows backup the task scheduler?

delebute
0
 
David ElebuteAuthor Commented:
ignore task scheduler question, i found it, wow i feel silly
sorry for the ignorant post
delebute
0
 
David ElebuteAuthor Commented:
ok here is what i found my server nas drive is available without drive letter or username and password
i kept getting failed operation with the script given by chakko, but i edited it until i could run the batch file commands from the command line

i used the following and it works fine, now i am going to schedule the batch file
the command line gave me error codes with the mapped drive stating to use the unc path

Wbadmin start backup -backupTarget:\\LS-CHLCC9\bk2 -include:C:,D: -vssFull -allcritical -quiet

works fine

delebute
0
 
David ElebuteAuthor Commented:
Thank you, chakko
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now