+ Reply to Thread
Results 1 to 5 of 5

Thread: NIGHTLY BACKUP - making sure users are not on the system

  1. #1
    Guest.Visitor Guest

    Default NIGHTLY BACKUP - making sure users are not on the system

    I have a question regarding nightly backup. Currently my shop does a user lib backup at 10:00 PM nightly. People get to the AS/400 off hours via the internet. I am concerned about the timing of things.... i.e.. if the backup is happening, and people are logged on,, I am sure files that are being used will not be backed up... in the event a restore would be needed--things might be out of sync. I am looking for a failsafe way to automatically kick users off the system (if any are logged on), do a backup, then let people back in.... ANy set of commands that could be placed in the backup CL to maybe shutdown QINTER after kicking people out etc... ??? not sure what I need to pull this off thanks gang... Rob O.

  2. #2
    Guest.Visitor Guest

    Default NIGHTLY BACKUP - making sure users are not on the system

    If all the users sign on through QINTER, then the simplest method is to do an ENDSBS QINTER with *IMMED. Make sure that you send out a warning at say, 5 minutes and 1 minute before you end the subsystem. After the backup, do an STRSBS QINTER to restart the subsystem. Russell

  3. #3
    Guest.Visitor Guest

    Default NIGHTLY BACKUP - making sure users are not on the system

    Rob, This is how I would handle your situation: 1. SNDBRKMSG to warn all users to sign-off due to Backup in 10 minutes 2. ENDSBS QINTER, QBATCH, QSERVER with OPTION(*CNTRLD) DELAY(*NOLIMIT) 3. After 10 minutes, ENDHOSTSVR SERVER(*ALL) 4. ENDTCP 5. ENDSBS QCMN, QINTER, QBATCH, QSERVER with OPTION(*IMMED) 6. After 5 minutes, start the backup. 7. Restart QCMN, QINTER, QSERVER, & TCP/IP 8. After the backup, restart QBATCH This assumes that: 1. The procedure is either run from the console, or from a custom batch subsystem and job queue (external from QBATCH subsystem/jobq). 2. All memory resident programs check for the end-job status flag. 3. There are no other active batch or interactive subsystems. Steps 3, 4, & 5 will definitely kick out everyone but the console operator. Step 7 will allow people to connect/signon and initiate some jobs that may interfere with the backup. To remove this possibility, you could interchange steps 7 and 8. However, it is my experience that you should allow people to connect so that in case anything goes wrong, the technical staff can still get in to fix it remotely. You could opt to insert an initial sign-on program into your non-technical users' user profiles to check if the backup is in progress, and if so, bar them with an informative message. Hope you find this useful.

  4. #4
    Guest.Visitor Guest

    Default NIGHTLY BACKUP - making sure users are not on the system

    We simply ENDSBS *ALL in our save program - which is more or less an automated version of the option 21 save with tape library management. We also reboot the system in this program. On a different thread, people mentioned that was to high a frequency for ipling. I felt no need to change is as everything is running smoothly. I'm curious what thoughts are on this. John

  5. #5
    Guest.Visitor Guest

    Default NIGHTLY BACKUP - making sure users are not on the system

    John, ENDSBS *ALL is brutally simple and effective. I like it, and use it whenever it is safe to do so. However, I would not advise it for an automated procedure in a busy production machine running on a 24x7 work schedule. This is most specially true when you have internet users connecting from anywhere (and any time-zone) in the world.

+ Reply to Thread

Similar Threads

  1. System backup
    By Guest.Visitor in forum General
    Replies: 6
    Last Post: 10-04-2006, 12:31 PM
  2. Second System Backup needs more tape
    By Guest.Visitor in forum General
    Replies: 0
    Last Post: 11-18-2002, 06:50 PM
  3. Automatic System Backup
    By Guest.Visitor in forum IBM i (OS/400, i5/OS)
    Replies: 1
    Last Post: 03-13-2001, 04:31 PM
  4. Automating Nightly Backup
    By Guest.Visitor in forum Analysis
    Replies: 5
    Last Post: 02-03-2000, 04:18 AM
  5. Problem with nightly backup
    By Guest.Visitor in forum Analysis
    Replies: 3
    Last Post: 07-13-1999, 01:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts