Announcement

Collapse
No announcement yet.

Technical question

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

  • Technical question

    Given the nature of the system now in operation, is there any offsite backup being done on a regular basis of the software and data?

    When static pages were being used, this wasnt as much of a concern since they were being botted into search engine caches. However, with source code and database... I've become a bit concerned with the physical safety. Any reassurances available?


  • #2
    We have backups, and it sounds like our hosting provider has some, too. We're actually working on getting a fresh one done now, once all the permissions are once again re-set. (They moved us to a new server a couple days ago and we're still shaking out the kinks.)

    Comment


    • #3
      In case you haven't, double check that they periodically verify backups. Nothing worse that doing multiple backups and finding out that none of them are any good.
      Inyidd Bullneck - Dorf Waryer - Morell-Thule

      I don't suffer from insanity. I enjoy every last second of it!

      Comment


      • #4
        anyone know how to write cron jobs? It looks like I may be able to write one for the server... but I have never done so in my life
        Ngreth Thergn

        Ngreth nice Ogre. Ngreth not eat you. Well.... Ngreth not eat you if you still wiggle!
        Grandmaster Smith 250
        Master Tailor 200
        Ogres not dumb - we not lose entire city to froggies

        Comment


        • #5
          Oy. Haven't written one from scratch in a while. I'll give it a try and get back to you.
          Inyidd Bullneck - Dorf Waryer - Morell-Thule

          I don't suffer from insanity. I enjoy every last second of it!

          Comment


          • #6
            I found a decent info page on how to write crons.

            http://www.oc12host.com/support/prog...sic_crons.html

            To start up the editor, you just need to type:

            crontab -e

            (edit mode). I don't know what kind of experience you have with text editors in Linux/Unix, but it's probably vi.

            Hope that helps out. Let me know if it doesn't.
            Inyidd Bullneck - Dorf Waryer - Morell-Thule

            I don't suffer from insanity. I enjoy every last second of it!

            Comment


            • #7
              If it is a vi editor I can send you the command cheat sheet for use in that editor. let me know. Sal
              Salomea Sillverfrost
              Lvl 65 Arcanist
              CoV and Coldain Faction Maxed
              Flagged for entry to Planes of Air, Water, Earth and Fire

              Comment


              • #8
                Only use crontab -e if you want your changes to immediatly take effect. If you want to build your new cron lines but want to apply them in the future, you can use this small shell script:

                Assuming you have the new lines saved in /cron.new (change to wherever you have them stored):

                Code:
                crontab -l > /tmp/cron.out
                cat /cron.new >> /tmp/cron.out
                crontab < /tmp/cron.out
                Each line of cron has 5 tokens that map to when to launch the script, followed by the full path of the script you want to execute along with any arguments and any redirected input or output you want:

                A B C D E /usr/local/bin/script_to_run.sh > /tmp/cron.out 2>&1

                A is the "minute" to run the script
                B is the "hour" to run the script
                C is the "day" to run the script
                D is the "month" to run the script
                E is the day of the week (0 = sunday, 6 = saturday) to run the script.

                So if you want something to run every Sunday morning at 3AM:

                0 3 * * 0 /...

                You can also use comma lists to add extra value per "token". If you want something run every half hour:

                0,30 * * * * /... (no spaces in the 0,30 token)

                And just in case you don't know what 2>&1 is, 2> is the stderr output of the script. &1 tells it to reuse what it knows as the stdout output of the script (so any and all output, error or standard would go into my /tmp/cron.out file).

                Hope this helps. If you need anything else described a little better, let me know and I'll see what I can do.

                EDIT: was more specific with spacing in one of my examples.

                EDIT: I looked at the previous link, and it looks like depending on the system, Day of week can be 0-6 or 1-7 and it may or may not be forgiving with 0 or 00 values. You'll have to check what your system allows.
                Last edited by llaffer; 11-10-2003, 03:07 PM.


                Comment


                • #9
                  Now I have to figure out how to make a script that runs the backup Thanks.
                  Ngreth Thergn

                  Ngreth nice Ogre. Ngreth not eat you. Well.... Ngreth not eat you if you still wiggle!
                  Grandmaster Smith 250
                  Master Tailor 200
                  Ogres not dumb - we not lose entire city to froggies

                  Comment

                  Working...
                  X