3 Replies Latest reply on Feb 18, 2010 8:31 AM by TSGal

    fmsadmin backup, trying to cancel after timeout, can't stop a running backup

    nalmar

      Title

      fmsadmin backup, trying to cancel after timeout, can't stop a running backup

      Your post

      I am trying to backup the databases on a server at regular intervals with a server schedule running a script. My script launch "fmsadmin backup ...." for each database with a timeout where the backup is cancelled after a specified time limit.

       

      My script launch backups one at a time in a loop and after 20 seconds, if it's still running, it sends a SIGTERM signal to fmsadmin process and continue with the next one. The problem is that the SIGTERM ( SIGINT and SIGKILL have the same result ) kills the fmsadmin process but do not stop the actual backup. All of the following backups timeout too ( according to my script ) but in fact get queued and continue execution.

       

      See the two runs from my script below :

      1- Event log from a run of my backup script with 4 small databases : working ok

      2- Event log from a run of my backup script with the same 4 small databases plus a huge database which get executed in third place : the last 3 timeout

       

      The question is : is there a clean way to stop a backup started with "fmsadmin backup" ?

       

       

       

       

       

      Event log from a run of my backup script with 4 small databases : working ok

       

      2010-02-11 15:10:13.438 -0500 Information 518 my.filemakerserver.com Administrator connected: "adminuser" (10.10.10.10).

      2010-02-11 15:10:13.462 -0500 Information 458 my.filemakerserver.com Starting to back up database: db 2...

      2010-02-11 15:10:13.501 -0500 Information 460 my.filemakerserver.com Backup of db 2 completed.

      2010-02-11 15:10:13.506 -0500 Information 682 my.filemakerserver.com Deleted backup folder "filemac:/MiniLab/Users/cln2204/db_backups/backup_1/db 2/2010-02-11_1504/".

      2010-02-11 15:10:13.508 -0500 Information 520 my.filemakerserver.com Administrator disconnected: "adminuser" (10.10.10.10).

       

      2010-02-11 15:10:17.866 -0500 Information 518 my.filemakerserver.com Administrator connected: "adminuser" (10.10.10.10).

      2010-02-11 15:10:17.885 -0500 Information 458 my.filemakerserver.com Starting to back up database: db_1...

      2010-02-11 15:10:17.913 -0500 Information 460 my.filemakerserver.com Backup of db_1 completed.

      2010-02-11 15:10:17.920 -0500 Information 682 my.filemakerserver.com Deleted backup folder "filemac:/MiniLab/Users/cln2204/db_backups/backup_1/db_1/2010-02-11_1504/".

      2010-02-11 15:10:17.925 -0500 Information 520 my.filemakerserver.com Administrator disconnected: "adminuser" (10.10.10.10).

       

      2010-02-11 15:10:22.168 -0500 Information 518 my.filemakerserver.com Administrator connected: "adminuser" (10.10.10.10).

      2010-02-11 15:10:22.187 -0500 Information 458 my.filemakerserver.com Starting to back up database: db_3...

      2010-02-11 15:10:22.187 -0500 Information 460 my.filemakerserver.com Backup of db_3 completed.

      2010-02-11 15:10:22.191 -0500 Information 520 my.filemakerserver.com Administrator disconnected: "adminuser" (10.10.10.10).

       

      2010-02-11 15:10:26.412 -0500 Information 518 my.filemakerserver.com Administrator connected: "adminuser" (10.10.10.10).

      2010-02-11 15:10:26.422 -0500 Information 458 my.filemakerserver.com Starting to back up database: db 4...

      2010-02-11 15:10:26.423 -0500 Information 460 my.filemakerserver.com Backup of db 4 completed.

      2010-02-11 15:10:26.431 -0500 Information 520 my.filemakerserver.com Administrator disconnected: "adminuser" (10.10.10.10).

       

       

       

      Event log from a run of my backup script with the same 4 small databases plus a huge database which get executed in third place : the last 3 timeout

       

      2010-02-11 15:11:56.573 -0500 Information 518 my.filemakerserver.com Administrator connected: "adminuser" (10.10.10.10).

      2010-02-11 15:11:56.593 -0500 Information 458 my.filemakerserver.com Starting to back up database: db 2...

      2010-02-11 15:11:56.594 -0500 Information 460 my.filemakerserver.com Backup of db 2 completed.

      2010-02-11 15:11:56.599 -0500 Information 682 my.filemakerserver.com Deleted backup folder "filemac:/MiniLab/Users/cln2204/db_backups/backup_1/db 2/2010-02-11_1510/".

      2010-02-11 15:11:56.601 -0500 Information 520 my.filemakerserver.com Administrator disconnected: "adminuser" (10.10.10.10).

       

      2010-02-11 15:12:00.791 -0500 Information 518 my.filemakerserver.com Administrator connected: "adminuser" (10.10.10.10).

      2010-02-11 15:12:00.810 -0500 Information 458 my.filemakerserver.com Starting to back up database: db_1...

      2010-02-11 15:12:00.811 -0500 Information 460 my.filemakerserver.com Backup of db_1 completed.

      2010-02-11 15:12:00.816 -0500 Information 682 my.filemakerserver.com Deleted backup folder "filemac:/MiniLab/Users/cln2204/db_backups/backup_1/db_1/2010-02-11_1510/".

      2010-02-11 15:12:00.818 -0500 Information 520 my.filemakerserver.com Administrator disconnected: "adminuser" (10.10.10.10).

       

      2010-02-11 15:12:05.101 -0500 Information 518 my.filemakerserver.com Administrator connected: "adminuser" (10.10.10.10).

      2010-02-11 15:12:05.120 -0500 Information 458 my.filemakerserver.com Starting to back up database: BSS_Design...

       

      2010-02-11 15:12:32.224 -0500 Information 518 my.filemakerserver.com Administrator connected: "adminuser" (10.10.10.10).

      2010-02-11 15:12:49.936 -0500 Information 518 my.filemakerserver.com Administrator connected: "adminuser" (10.10.10.10).

       

      2010-02-11 15:15:00.452 -0500 Warning 628 my.filemakerserver.com Administrator "adminuser" no longer responding; connection closed. (10.10.10.10)

      2010-02-11 15:15:00.454 -0500 Warning 628 my.filemakerserver.com Administrator "adminuser" no longer responding; connection closed. (10.10.10.10)

      2010-02-11 15:15:00.456 -0500 Warning 628 my.filemakerserver.com Administrator "adminuser" no longer responding; connection closed. (10.10.10.10)

       

      2010-02-11 15:24:36.125 -0500 Information 460 my.filemakerserver.com Backup of BSS_Design completed.

      2010-02-11 15:24:36.357 -0500 Information 682 my.filemakerserver.com Deleted backup folder "filemac:/MiniLab/Users/cln2204/db_backups/backup_1/BSS_design/2010-02-11_1442/".

      2010-02-11 15:24:36.444 -0500 Information 458 my.filemakerserver.com Starting to back up database: db_3...

      2010-02-11 15:24:36.482 -0500 Information 460 my.filemakerserver.com Backup of db_3 completed.

      2010-02-11 15:24:36.487 -0500 Information 682 my.filemakerserver.com Deleted backup folder "filemac:/MiniLab/Users/cln2204/db_backups/backup_1/db_1/2010-02-11_1512/".

      2010-02-11 15:24:36.493 -0500 Information 458 my.filemakerserver.com Starting to back up database: db 4...

      2010-02-11 15:24:36.497 -0500 Information 460 my.filemakerserver.com Backup of db 4 completed.

      2010-02-11 15:24:36.501 -0500 Information 682 my.filemakerserver.com Deleted backup folder "filemac:/MiniLab/Users/cln2204/db_backups/backup_1/db 2/2010-02-11_1511/".

       

       

       

       

       

       

      FileMaker Server 10v2, MacOSX 10.5.8