• running nt backup in batch file

    Author
    Topic
    #452281

    One of my clients has a mail server that has never been backed up. So I have the unenviable task of starting to back it up.
    They use FirstClass for their mail client, and the network store is mirrored, but I have the commands for that – but as a result I have to run the backup via batch file, first pausing the mirroring, running the backup, and then resuming the mirroring.
    One of my questions (more later, no doubt) is how the batch file will interpret the commands. The batch file will in essence look like this:

    fcutil pause
    (command to execute backup)
    fcutil continue

    Will the batch file simply trigger the backup and then immediately move on to the next command and turn the mirroring back on? Because if it does then I can expect bad things to happen.

    I also have to configure the backup job using command line instead of the gui, and that’ll be a whole nother can of worms, I am sure. But I haven’t tried it yet, so hopefully I’m overestimating its difficulty.

    So for now I am just concerned if the batch file will wait until the backup is complete or not, and if not, is there a way to GET it to wait?

    Thanks!

    Viewing 1 reply thread
    Author
    Replies
    • #1116237

      Have them invest in real backup software instead of NT backup. Check out something such as Backup Exec: Data backup and system protection and recovery for Windows | Symantec.

      Joe

      --Joe

      • #1116241

        Well, other clients I have are using Symantec Backup Exec, and it does work, I’ll give you that. But most of my clients are not-for-profit organizations, so my boss wanted to try the “free and easy” method first.
        Free, yes. Easy? hairout

        You should see this setup – the building apparently used to house a considerable number of servers, and there are cages galore abandoned in the former cooler. Us? We’re in the former telephone closet – ironically no cellphone reception, no a/c (they’re FINALLY working on it) and a single cage with 2 servers, 1 monitor, no KVM, 2 keyboards & mice (have to go thru the back of the cage to switch views to the other server) and me with my flat feet, bad back and bad knees – and standing room only in front of the cage.
        Like they say, you can’t make this stuff up.

        So, getting back on topic, I take it you’re saying in a nice way, joe, that I’m screwed, blued and tattooed if I try to go this route?

        • #1116266

          Not necessarily. It is just that NT backup is not really very good. Why don’t you change the batch runstream to just do any task before the NT backup, another generic task as the NT backup, and have the NT BACKUP backup something innocuous that will at least run for a while. Then test it to see what happens.

          Joe

          --Joe

    • #1116278

      [indent]


      So for now I am just concerned if the batch file will wait until the backup is complete or not, and if not, is there a way to GET it to wait?


      [/indent]I think it is supposed to be possible using:

      start /wait c:pathtofile

      But a batch file guru probably needs to chime in.

      Also, what if the backup has a problem? Mirroring will never be turned back on…

      • #1116468

        A very good point, Jefferson. I test-ran the batch file I somehow came up with last night, and the only log entry was

        waiting for more command parameters

        So at least I didn’t crash the server, which is a huge plus in my book. grin
        Spoke to my boss and he is recommending to the client that they get Symantec Backup Exec after all – what a relief! Maybe I’ll get to fiddle around with batch files for awhile longer – maybe I can learn something. But in the end I get the distinct impression that NTbackup was not really meant to be run from a batch file. Or from a computer, for that matter. nope

        • #1116892

          NTBackup can be run from a BATch file, but the parameters are particularly tricky, and life is too short to investigate their bizarre quirkiness.

          That’s why those users of NTBackup on servers use the ‘front-end’ BackupAssist – a fairly cheap solution with exceptionally responsive support staff. We have a copy on each server, and are extremely happy with it – the more so since charities/not-for-profit organisations get a decent discount!

          (I’ve been away for ten days of Early Music concerts, otherwise I’d have answered this sooner…)

          BATcher

          Plethora means a lot to me.

    Viewing 1 reply thread
    Reply To: Reply #1116468 in running nt backup in batch file

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel