batch file to copy backup information


Recommended Posts

Currently i am using the backup utility that is part of Windows NT Server However, i have notice that it has not been backup up as often as it should (every evening) i have a BKS file which contains the locations of each directory that needs backed up.

Could someone write a batch file that i could schedule to run that would copy this data to a Mapped directory (Network Storage)

Here is the contents of the BKS file. and if possible i would need it to replace the previous nights data.

C:\
C:\appservice\ /Exclude
C:\Dell\ /Exclude
C:\Documents and Settings\ /Exclude
C:\JACADA\ /Exclude
C:\Program Files\ /Exclude
C:\RECYCLER\ /Exclude
C:\temp\ /Exclude
C:\test\ /Exclude
C:\tmp\ /Exclude
C:\WINNT\ /Exclude
C:\System Volume Information\ /Exclude

E:\
E:\bin\ /Exclude
E:\Config.Msi\ /Exclude
E:\downloads\ /Exclude
E:\ETIME\ /Exclude
E:\Golf Galaxy\ /Exclude
E:\Golfworks Intranet\ /Exclude
E:\msdownld.tmp\ /Exclude
E:\Program Files\ /Exclude
E:\RECYCLER\ /Exclude
E:\System Volume Information\ /Exclude
E:\TEMP\ /Exclude
E:\winnt\ /Exclude
E:\WUTemp\ /Exclude

Any help is always appreciated thank you.

I believe you can copy while excluding folders using Robocopy with the /xd switch. Dunno if NT Server has it, if not you can grab it here. (assuming it runs on NT Server)

For the C: drive, the command might look something like:

robocopy c: z:\mynetworkshare\backup /e /xd C:\appservice C:\Dell "C:\Documents and Settings" C:\JACADA "C:\Program Files" C:\RECYCLER C:\temp C:\test C:\tmp C:\WINNT "C:\System Volume Information"

Same for the E: drive, just change the drive & excluded folders.

The quick-and-dirty way, if you want to remove the old backup each day, is to do something like

rmdir /s /q z:\mynetworkshare\backup

before running robocopy. But there are also switches that can make robocopy copy only files recently created, or with the archive bit set, things like that.

Hope that helps get you going! If you're not comfortable creating batch files you may want to stick with a GUI backup program, such as Cobian Backup or similar. Or figure out why ntbackup doesn't always run on your system.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Not such a great deal, Ultimate, which gives you full 5080 features is $181.99 CAD per month, that's $2183.88 per year, I can buy the 5080 for $1809.99 CAD, then it goes up to $279.99 per month after the first billing cycle. Typical cloud rental, costs more than buying the hardware.
    • Wow, spoken like a true blind hater, you don't even provide arguments. Please, go check my comment above to @seacaptain and you'll find out why what you say doesn't make sense in this context...
    • Get used to this, with AI tooling now uncovering new vulns and getting them exploitable far faster than has ever been possible before software is going to need to be updated far more frequently. Back in the day it may take reseachers weeks or months to do what AI can now do in hours. Once its a threat is discovered it's weaponsized far more quickly, meaning you simply can't be waiting 2, 3, 4 weeks to deploy a patch, it needs to be patched immediately. Going to be interesting handling this in the enterprise space where traditionally patching has been steady, but very staged (and rightly so up until now), that is going to have to change.
    • You don't need to "close all browser sessions constantly" or wait for updates to install. The updates download in the background while you use the browser, without interrupting you, they install automatically the next time you launch the app. And they install very fast (depending on your storage speeds, of course), you have to wait at most 2-3 extra seconds, if any. Seems like you haven't used Edge in a loooooooong time...
    • Segra 1.6.0 by Razvan Serea Segra is a free, open-source OBS-powered game recorder offering fast gameplay capture, instant clips, AI highlights, deep game integration, and seamless uploads—perfect for gamers, streamers, and content creators. Lightweight, fast, zero bloat. Segra key features: Automatic Game Recording: Begin capturing gameplay the moment your game launches, with zero manual setup. Instant Clipping: Save important moments instantly using a customizable hotkey—perfect for highlights, montages, or quick shares. Segra AI Highlights: Let Segra automatically detect kills, assists, deaths, and key events to generate polished highlight reels without manual editing. Gameplay Uploads: Upload recordings and clips directly to Segra.tv for fast sharing and cloud access. Deep Game Integration: Enjoy advanced game-data tracking across hundreds of supported titles, enabling smart highlight generation and stat-informed clipping. High-Performance Capture: Record up to 4K at 144 FPS using OBS-powered technology with minimal performance impact, supporting NVENC, AMD VCE, and custom quality controls. Segra Editor: Edit recordings easily with timeline controls, segment management, and event-based navigation to build the perfect clip. Customization Options: Adjust hotkeys, output formats, storage paths, codecs, capture quality, and performance settings for a tailored recording experience. Segra 1.6.0 changelog: Recording: Added HDR support. Grand Theft Auto: Added game integration for deaths (FiveM and RAGE MP supported). Highlights: Added customizable padding for highlights. Replay Buffer: Added a shockwave visual effect when a replay buffer clip is saved. Audio: Increased the maximum sound effects volume from 100% to 200%. Hotkeys: Fixed hotkeys not triggering while unrelated keys were held. Installer: Added code signing to verify publisher identity, branded the installer, and reduced OS security warnings. OBS: Updated the supported OBS version to 32.1.2. Download: Segra 1.6.0 | 74.4 MB (Open Source) View: Segra Homepage | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • One Month Later
      Clizby earned a badge
      One Month Later
    • One Month Later
      Timaximus earned a badge
      One Month Later
    • Week One Done
      Timaximus earned a badge
      Week One Done
    • Rookie
      FBSPL went up a rank
      Rookie
    • First Post
      davidbazooked earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      509
    2. 2
      PsYcHoKiLLa
      175
    3. 3
      +Edouard
      163
    4. 4
      Steven P.
      86
    5. 5
      ATLien_0
      80
  • Tell a friend

    Love Neowin? Tell a friend!