anyone good with cronjobs?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marty
    Confirmed User
    • Feb 2002
    • 1656

    #1

    anyone good with cronjobs?

    Help Please

    I need someone to set up a cronjob on one of my sites. I don't understand how they work.

    It's for a daily backup of everything on that domain. The site, images and mysql database.

    Thanks
    ICQ 147571357
  • FrankWhite
    Confirmed User
    • Nov 2002
    • 3540

    #2
    http://www.adminschoice.com/docs/crontab.htm

    Comment

    • marty
      Confirmed User
      • Feb 2002
      • 1656

      #3
      Originally posted by FrankWhite
      Thanks but I've already looked at several sites describing crons and I just don't get it. I don't understand what it does, how to code a command or how to access the backup and restore it....

      Comment

      • PR_EZEKIEL
        Confirmed User
        • Feb 2005
        • 134

        #4
        are you colocated or do you have an admin?
        do you have root to your server?
        PimpRoll.com

        Comment

        • G-Rotica
          Confirmed User
          • Aug 2005
          • 4258

          #5
          I set up some cron jobs on my virtual site. They never ran, however according to the tech guys they should have. I have an idea how to do it. I'll help if I can.

          Comment

          • marty
            Confirmed User
            • Feb 2002
            • 1656

            #6
            Originally posted by PR_EZEKIEL
            are you colocated or do you have an admin?
            do you have root to your server?
            I have cronjobs in cPanel and FTP root access if that helps.

            Comment

            • mrkris
              Confirmed User
              • May 2005
              • 2737

              #7
              icq me i'll give you a hand

              PHP-MySQL-Rails | ICQ: 342500546

              Comment

              • mrkris
                Confirmed User
                • May 2005
                • 2737

                #8
                342500546 -- my sig is broken

                PHP-MySQL-Rails | ICQ: 342500546

                Comment

                • PR_EZEKIEL
                  Confirmed User
                  • Feb 2005
                  • 134

                  #9
                  thing with cronjobs is that you can either run scripts like you would from the command line..eg.
                  0 0 * * * php /usr/local/www/backup.php
                  or you can run shell commands...
                  depending on where your data is then your backups could be simple...
                  0 0 * * * tar czvf /usr/local/www/sitenamedatabasefolder.tag.gz /var/db/mysql/sitedatabasefoldername
                  30 0 * * * tar czvf /usr/local/www/site.tar.gz /usr/local/www/sitefolder
                  first one would run at midnight, second one would run at 12:30
                  you might want to think of writing a little script that backs it up so you have 2 days worth of backups or something. That way you're not just overwriting your backups(just in case something bad happens to everything at 11:59 and you want to make sure you're back up isn't a back up after the shit hit the fan)
                  PimpRoll.com

                  Comment

                  • skoalman
                    Registered User
                    • Jun 2004
                    • 94

                    #10
                    contact us at [email protected]

                    ICQ - 172146397

                    Comment

                    • marty
                      Confirmed User
                      • Feb 2002
                      • 1656

                      #11
                      Thank you guys, it's all good now
                      Thank you mrkris

                      Comment

                      Working...