weird...cron doesn't work on mine?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • piku
    Senior Member
    • Mar 2004
    • 153

    #1

    weird...cron doesn't work on mine?

    Code:
    0 */2 * * * /home/username/backups/automysqlbackup.sh
    got this running for a very minute db (if y'all are worried, less than 100kb) to test...it seems that that last backup was 3/16/04...? did i miss something?

    TIA.
    my signature was deleted. i miss my signature-filled-with-helpful-dathorn-links *sniff*sniff*
  • piku
    Senior Member
    • Mar 2004
    • 153

    #2
    currently switch the cpanel theme to xskin from cpskin... and then commited the changes to the crontab--i'll check again tomorrow morning. this might be a bug (maybe?) ...cause when i commit change on the cpskin-crontab, its doesn't say anything but "crontab >" ...and a link to go back...
    my signature was deleted. i miss my signature-filled-with-helpful-dathorn-links *sniff*sniff*

    Comment

    • piku
      Senior Member
      • Mar 2004
      • 153

      #3
      still no go =(

      can someone try this script on theirs (i.e. /home/username/backups/automysqlbackup.sh) to see if its my end ...

      file attached. just rename the extension from .txt to .sh, and just setup a cron like the one posted above--set the time to whatever is reasonable to test it. TIA.


      note: weird thing is...another cpanel account of mine has it working w/ the "/backups" folder as a sub-folder under "/public_html"--which i dont want to do with the other sites since its more of a security issue...
      my signature was deleted. i miss my signature-filled-with-helpful-dathorn-links *sniff*sniff*

      Comment

      • piku
        Senior Member
        • Mar 2004
        • 153

        #4
        doh!

        /bin/sh: /home/username/backups/automysqlbackup.sh: /bin/bash
        : bad interpreter: No such file or directory
        i guess so! ...anyone know the where the current one is? if we have one... this used to work before 3/16/04
        my signature was deleted. i miss my signature-filled-with-helpful-dathorn-links *sniff*sniff*

        Comment

        • piku
          Senior Member
          • Mar 2004
          • 153

          #5
          weird O_o

          now, after upgrading to 1.6, seems that its working--very weird though...

          AutoMySQLBackup VER 1.6
          http://sourceforge.net/projects/automysqlbackup/

          new features:
          -ability to backup "all" your dbs, and exlude ones you dont want it to do
          -pre and post backup operations that you can have it do (i.e. you can probably write/run a script to ftp to a remote server... so if you know how to do this, please do and post here ^^ )



          ...problem resolved (till further notice ^^ )
          my signature was deleted. i miss my signature-filled-with-helpful-dathorn-links *sniff*sniff*

          Comment

          • Eric
            Junior Member
            • Mar 2004
            • 22

            #6
            BASH scripts always have to be uploaded in text (ASCII) mode. If it was named filename.sh before you uploaded it, your ftp client may have sent it in binary mode. If it was filename.txt when you uploaded it, and then after uploading, you renamed it to filename.sh, then your ftp client should have correctly sent it in text mode. Perhaps this was a factor for you(?)

            Eric

            Comment

            • piku
              Senior Member
              • Mar 2004
              • 153

              #7
              just a quick fyi: as i posted above... it worked before, and i did up it as ascii; just straight out weird o_O
              my signature was deleted. i miss my signature-filled-with-helpful-dathorn-links *sniff*sniff*

              Comment

              Working...