Announcement

Collapse
No announcement yet.

Backup util

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Backup util

    Now that my network is up and running i'd like to reduce the chance of loosing data by backing up certain critical components. Now my documents are easy enough thanks to synchtoy, but the mail server itself is more problematic as i can't backup all the files unless i stop certain services. SynchToy can't do this.

    I'd be happy with a compromise. Say a way to schedule switching off a service for an hour and then time synchtoy to do its thing. I've googled for scheduling stopping services, but nothing useful came up.

    Does anyone know of a util that would do this, or better yet, an all-in backup program?
    The Welsh support two teams when it comes to rugby. Wales of course, and anyone else playing England

  • #2
    I know that via the command line function of SC you can control services.

    SC \\computername stop,query,start <servicename>

    I use that every now and then to stop services and such when I do video captures via a batch file. Then I start the services with another batch file when I'm done. Its not pretty but it gets the job done.

    Edit:

    Do a SC /? in the command prompt and you will get a boatload of info about how to use the command.
    Go Bunny GO!


    Titan:
    MSI NEO2-FISR | Intel P4-3.0C | 1024MB Corsair TWINX1024 3200LLPT RAM | ATI AIW 9700 Pro | Dell P780 @ 1024x768x32 | Turtle Beach Santa Cruz | Sony DRU-500A DVD-R/-RW/+R/+RW | WDC 100GB [C:] | WDC 100GB [D:] | Logitech MX-700

    Mini:
    Shuttle SB51G XPC | Intel P4 2.4Ghz | Matrox G400MAX | 512 MB Crucial DDR333 RAM | CD-RW/DVD-ROM | Seagate 80GB [C:] | Logitech Cordless Elite Duo

    Server:
    Abit BE6-II | Intel PIII 450Mhz | Matrox Millennium II PCI | 256 MB Crucial PC133 RAM | WDC 6GB [C:] | WDC 200GB [E:] | WDC 160GB [F:] | WDC 250GB [G:]

    Comment


    • #3
      cheers! That sounds very helpful.
      The Welsh support two teams when it comes to rugby. Wales of course, and anyone else playing England

      Comment


      • #4
        can you not use the NET STOP service command and schedule it using the Windows scheduler?
        When you own your own business you only have to work half a day. You can do anything you want with the other twelve hours.

        Comment


        • #5
          I've created a batch file that stops the services, xcopys the data and then restarts the service.
          I have done it this way to have as minimal downtime as possible.

          Now I would like to compress the directories into a single archive and date stamp the file name.

          My goal is to perform a daily backup every evening. I want to keep daily backups for one week, then weekly for two months, then monthly. In order to do this, I would need to have some way of selectivley deleting the files. This sounds complicated, but I am fairly sure that I could write a series of batch files for this.

          What command line based archiver should I use.
          Any other suggestions, tips?
          The Welsh support two teams when it comes to rugby. Wales of course, and anyone else playing England

          Comment


          • #6
            Right. This is a little bit complicated as I am moving data from my DMZ into the LAN and I don't want to setup a pinhole.
            I have created a batch file that stops services on the Web/Mail Server, copies data to a shared volume and then restarts the services. This happens at 0400 every night.

            On the LAN file server, it maps to the shared volume on the Web/Mail Server and copies the data using xcopy. It then uses RAR to compress the archive and date stamp the file name.

            Tasks remaining:
            1) It would be nice for the File Server (LAN) to delete the temp files created by the Web/Mail server (DMZ), but the rmdir gives access denied. I could simply use another scheduled batch file on the Web/Mail server but we could do better than that!

            2) Having got my backup folder full of daily archives, it would be nice to setup some sort of 'pruning' system. The files are stamped with DDMMMYY. Is it possible to delete files based on 'relative' date. In other words, delete files older than one week, or one month???

            Cheers.
            The Welsh support two teams when it comes to rugby. Wales of course, and anyone else playing England

            Comment


            • #7
              Fixed 1: I had a problem with permissions. Now to move/delete files based on name or creation date...
              The Welsh support two teams when it comes to rugby. Wales of course, and anyone else playing England

              Comment


              • #8
                Completed! I needed to write three batch files, but It all works perfectly.
                Now do i dare to kill the server and test the backup?
                The Welsh support two teams when it comes to rugby. Wales of course, and anyone else playing England

                Comment

                Working...
                X