Backup and recovery planning

A Commit Server can use the same backup and high availability / disaster recovery (HA/DR) strategy as a master server. Edge Servers contain unique information and should have their own backup and a HA/DR plan.

Whether an Edge Server outage is as urgent as a master server outage depends on your requirements. An Edge Server might have a HA/DR plan with a less ambitious Recovery Point Objective (RPO) and Recovery Time Objective (RTO) than the Commit Server.

Tip

If you are planning for Failover, make sure that the Edge Servers will be redirected to use the new Commit Server.

If a Commit Server must be rebuilt from backups, each Edge Server must be rolled back to a backup prior to the Commit Server’s backup.

Alternatively, if your Commit Server has no local users, the Commit Server can be rebuilt from a fully-replicated Edge Server. In this scenario, the Edge Server is a superset of the Commit Server.

Backing up and recovering an Edge Server is similar to backing up and restoring a replica server.

Important

Avoid allowing checkpoints to occur simultaneously on multiple Edge Servers.

Expect that each Edge Server checkpoint might take significantly longer than a checkpoint on Commit Server with no local users.

Journal rotations for Edge Servers can occur at the same time as journal rotations for Commit Servers.

Note

We recommend that you use OS backup utilities to make a copy of:

Steps for backing up an Edge Server

  1. On the Edge Server, schedule a checkpoint to be taken the next time journal rotation is detected on the Commit Server. For example:

    p4 -p myedgehost:myedgeport admin checkpoint

    This causes a stateCKP file to be written to the P4ROOT directory of the Edge Server, recording the scheduling of the checkpoint. The p4 pull command performs the checkpoint at the next detected rotation of the journal on the Commit Server.

    Where multiple Edge Servers are working with a Commit Server, try to stagger the checkpoints so they do not all occur at the same time.

  2. Rotate the journal on the Commit Server:

    p4 -p mycommithost:mycommitport admin journal

The Edge Server will automatically resume processing user commands when the checkpoint has finished.