How do I enable automatic backup?

Discussion in 'Installation/Configuration' started by drsintoma, Mar 1, 2006.

  1. SupuS

    SupuS Member HowtoForge Supporter

    I know it .. I wanted test if backup is working by modifiing

    Code:
    05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
    to

    Code:
    05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /root/backup.txt
    and I expected backup.txt file in my root directory .. but there was no backup.txt
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's the output of
    Code:
    ls -la /home/admispconfig/ispconfig/temp
    ?

    What happens now when you run
    Code:
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php
    ?
     
  3. bschultz

    bschultz Member

    total 8
    drwxr-xr-x 2 admispconfig admispconfig 4096 Jul 25 13:23 .
    drwxr-xr-x 8 admispconfig admispconfig 4096 Jul 24 13:28 ..
    zip warning: name not matched: *

    zip error: Nothing to do! (try: zip -r /home/admispconfig/ispconfig/temp/62bfa0608182b52cfa8c5f5b36ec8806/web3_user.zip . -i *)

    Which I tried...and it gave me this:

    Code:
    zip warning: name not matched: .kde/socket-localhost
            zip warning: name not matched: .kde/tmp-localhost
    zip I/O error: No such file or directory
    
    zip error: Could not create output file (/home/admispconfig/ispconfig/temp/62bfa0608182b52cfa8c5f5b36ec8806/web3_user.zip)
    
    Any ideas?
     
  4. SupuS

    SupuS Member HowtoForge Supporter

    Code:
    # ls -la /home/admispconfig/ispconfig/temp
    celkem 190548
    drwxr-xr-x  8 admispconfig admispconfig      4096 2006-07-24 10:31 .
    drwxr-xr-x  8 admispconfig admispconfig      4096 2006-07-25 18:57 ..
    drwxr-xr-x  2 admispconfig admispconfig      4096 2006-07-04 21:27 4a4b184eb64b07d368410afa3c3c5451
    -rwxr-xr-x  1 admispconfig admispconfig 185739938 2006-07-04 19:28 5a0f8ca8bed47e68f257012f994d514b.zip
    -rwxr-xr-x  1 admispconfig admispconfig   4564092 2006-07-04 21:28 7084c0e33e4e5567e836fa7b5d7b4919.zip
    drwxr-xr-x  2 admispconfig admispconfig      4096 2006-07-04 19:28 964bdee99cfacf64337c3838cee7b488
    drwxr-xr-x  2 admispconfig admispconfig      4096 2006-06-01 23:25 bf8af9eb4f765e5cbe0a8f15a1a43282
    -rwxr-xr-x  1 admispconfig admispconfig   4564092 2006-07-04 21:27 f0cc53b5aba398ba73befe471aafcc68.zip
    drwxr-xr-x  2 admispconfig admispconfig      4096 2006-07-04 21:28 f4a5874ade18b559b07b60194939d0c6
    -rwxr-xr-x  1 admispconfig admispconfig         0 2006-06-29 01:23 hta_nMqhJz
    drwxr-xr-x  2 admispconfig admispconfig      4096 2006-06-04 16:31 roundcubemail
    drwxr-xr-x 12 admispconfig admispconfig      4096 2006-07-25 18:57 webmail
    
    Code:
    # /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php
            zip warning: name not matched: *
    
    zip error: Nothing to do! (try: zip -ry /home/admispconfig/ispconfig/temp/00040bb6a0091483a2b166b628a668d7/web20_user.zip . -i *)
            zip warning: name not matched: *
    
    zip error: Nothing to do! (try: zip -ry /home/admispconfig/ispconfig/temp/2e1bc07df1cbf76680168abbb119b6b4/web22_user.zip . -i *)
            zip warning: name not matched: *
    
    zip error: Nothing to do! (try: zip -ry /home/admispconfig/ispconfig/temp/07667b363a59200ba093d66bf83d0038/web28_user.zip . -i *)
            zip warning: name not matched: *
    
    zip error: Nothing to do! (try: zip -ry /home/admispconfig/ispconfig/temp/efd7246204e82ef3d7e43dd40883e9bc/web32_user.zip . -i *)
    after manualy backup is content of temp same :eek:

    Code:
    # ls -la /home/admispconfig/ispconfig/temp
    celkem 190548
    drwxr-xr-x  8 admispconfig admispconfig      4096 2006-07-25 20:29 .
    drwxr-xr-x  8 admispconfig admispconfig      4096 2006-07-25 18:57 ..
    drwxr-xr-x  2 admispconfig admispconfig      4096 2006-07-04 21:27 4a4b184eb64b07d368410afa3c3c5451
    -rwxr-xr-x  1 admispconfig admispconfig 185739938 2006-07-04 19:28 5a0f8ca8bed47e68f257012f994d514b.zip
    -rwxr-xr-x  1 admispconfig admispconfig   4564092 2006-07-04 21:28 7084c0e33e4e5567e836fa7b5d7b4919.zip
    drwxr-xr-x  2 admispconfig admispconfig      4096 2006-07-04 19:28 964bdee99cfacf64337c3838cee7b488
    drwxr-xr-x  2 admispconfig admispconfig      4096 2006-06-01 23:25 bf8af9eb4f765e5cbe0a8f15a1a43282
    -rwxr-xr-x  1 admispconfig admispconfig   4564092 2006-07-04 21:27 f0cc53b5aba398ba73befe471aafcc68.zip
    drwxr-xr-x  2 admispconfig admispconfig      4096 2006-07-04 21:28 f4a5874ade18b559b07b60194939d0c6
    -rwxr-xr-x  1 admispconfig admispconfig         0 2006-06-29 01:23 hta_nMqhJz
    drwxr-xr-x  2 admispconfig admispconfig      4096 2006-06-04 16:31 roundcubemail
    drwxr-xr-x 12 admispconfig admispconfig      4096 2006-07-25 18:57 webmail
    
    in the backup directories of webs are files with today's date
     
  5. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    We will check that.
     
  6. SupuS

    SupuS Member HowtoForge Supporter

    Thanks Falko :)
     
  7. SupuS

    SupuS Member HowtoForge Supporter

    Any news? Please? :eek:
     
  8. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    We didn't have the time yet. I put this into our bugtracker, and Till or I will work on it.
     
  9. SupuS

    SupuS Member HowtoForge Supporter

    Thanks a lot .. the time is problem for me too .. I know it .. ;) Tell me if I can help you with testing of something ..
     
  10. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    All you can do is give us some time to test this and find a solution, if necessary. This forum and HowtoForge in general takes us a lot of time, so it's difficult for us to do other things... (Wait: there's one thing everyone can do: answer other people's questions if possible. This would be a great relief for Till and me... :))
     
  11. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    I tested the backup script on Centos and it worked finr. SupuS, on which distribution do you get the errors?
     
  12. SupuS

    SupuS Member HowtoForge Supporter

    Hi till

    I have ubuntu dapper server ... and backup script still doesn't work for me .. If I ran it by

    Code:
    # /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php
            zip warning: name not matched: *
    
    zip error: Nothing to do! (try: zip -ry /home/admispconfig/ispconfig/temp/4aa72ca18befc9934e006b54a0c4e45c/web20_user.zip . -i *)
            zip warning: name not matched: *
    
    zip error: Nothing to do! (try: zip -ry /home/admispconfig/ispconfig/temp/04ae3e6e61a92b6c31720c089143b412/web41_user.zip . -i *)
            zip warning: name not matched: *
    
    zip error: Nothing to do! (try: zip -ry /home/admispconfig/ispconfig/temp/c4afe2f7ccc9cb77ceceeecab3cdc0e3/web42_user.zip . -i *)
    
    everything is ok .. backup is created for each user .. except some empty dirs .. I think .. but script don't work automaticaly by cron ..

    and this is in my temp .. still not changed ..

    Code:
    # ls -la /home/admispconfig/ispconfig/temp
    total 190548
    drwxr-xr-x  8 admispconfig admispconfig      4096 Sep  9 12:51 .
    drwxr-xr-x  8 admispconfig admispconfig      4096 Sep  7 10:15 ..
    drwxr-xr-x  2 admispconfig admispconfig      4096 Jul  4 21:27 4a4b184eb64b07d368410afa3c3c5451
    -rwxr-xr-x  1 admispconfig admispconfig 185739938 Jul  4 19:28 5a0f8ca8bed47e68f257012f994d514b.zip
    -rwxr-xr-x  1 admispconfig admispconfig   4564092 Jul  4 21:28 7084c0e33e4e5567e836fa7b5d7b4919.zip
    drwxr-xr-x  2 admispconfig admispconfig      4096 Jul  4 19:28 964bdee99cfacf64337c3838cee7b488
    drwxr-xr-x  2 admispconfig admispconfig      4096 Jun  1 23:25 bf8af9eb4f765e5cbe0a8f15a1a43282
    -rwxr-xr-x  1 admispconfig admispconfig   4564092 Jul  4 21:27 f0cc53b5aba398ba73befe471aafcc68.zip
    drwxr-xr-x  2 admispconfig admispconfig      4096 Jul  4 21:28 f4a5874ade18b559b07b60194939d0c6
    -rwxr-xr-x  1 admispconfig admispconfig         0 Jun 29 01:23 hta_nMqhJz
    drwxr-xr-x  2 admispconfig admispconfig      4096 Jun  4 16:31 roundcubemail
    drwxr-xr-x 16 admispconfig admispconfig      4096 Sep  5 15:33 webmail
    in my crontab is:

    Code:
    # crontab -l
    30 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
    0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
    0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
    15 3,15 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
    40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null
    05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
     
  13. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Which ISPConfig version do you have installed?
     
  14. SupuS

    SupuS Member HowtoForge Supporter

    ISPConfig Version: 2.2.6
     
  15. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Strange... :confused:
     
  16. SupuS

    SupuS Member HowtoForge Supporter

    :( I have no idea what is wrong .. in my syslog is no mention about backup script ...
     
  17. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Me neither... :(
     

Share This Page