Menu

Incomplete backups with cronjob

Help
Atom.D
2016-02-04
2016-02-11
  • Atom.D

    Atom.D - 2016-02-04

    Hello,

    recently pMBP stopped working through a cronjob. When I do the backup manually it works: the files are stored on the server and transferred via ftp. The cron was still working at the beginning of january but that changed somewhere in January.

    I tried to figure out what the problem is but I'm at a loss here. This is the cronjob:

    php -q /home/username/public_html/backup/backup.php db_1,db_2,db_3,db_4 1 1 1 1

    The size of the databases goes from 3,8MB to 0.3MB, so they're not really that big. In the mail I receive from the cronjob it says the first database has been successfully backed up (the largest database), but then the rest of the mail is blank. On the server a backup of that first database can be found together with an empty file of database 2. On the ftp-server nothing can be found at all. The execution time when manually doing the backup is about 14 secs.

    I guess something is stopping the cronjob, but I have no idea what. Could you help me figure this one out please?

    Thanks. :)

     
  • Atom.D

    Atom.D - 2016-02-11

    Apparently it is db_2 which is causing the cronjob to fail and halting the backup of the other databases and the ftp transfer. But when I changed the cron to only do a backup of that database, everything works. What could be the reason of this?

     

Log in to post a comment.

MongoDB Logo MongoDB