Clokeep Clokeep Docs
Documentation API Reference
BackupsRun and stop a backup
Backups View as Markdown

Run and stop a backup

Start a backup by hand, follow it on the run page, and stop a run that is queued or running.

You can start a backup at any time, and stop a run before it ends. Stopping is also called cancelling: a stopped run ends as Cancelled, and the API calls the action cancel.

Prerequisites

  • A Clokeep account with the Admin or Operator role. A Viewer can open runs but cannot start or stop them.
  • A plan whose server has the agent installed. See Plans.

Run a backup now

Start the run

Open Plans and click the plan. Click Run now and confirm with Run now in the dialog.

Run now is also on each row of a server's Plans tab, and Run a backup now on the dashboard lets you pick a plan.

Open the run

A Backup queued message appears. Click View run in it. Every run is also listed under Backup Runs.

On an incremental plan, click More actions > Run full backup now to start a new chain with a full backup instead. See Incremental backups.

If Run now is greyed out, hover over it. The text starts with "This plan will not run:" and gives the reason.

To start a run from a script, see Run a backup through the API.

One backup at a time per plan

A plan has at most one backup run that is Queued or Running. If you click Run now while it has one, Clokeep queues nothing and shows Backup already active, for example: 'Plan "Website files" already has an active backup run.'

If Active is off on the server, Run now shows Server disabled and queues nothing.

Follow a run

The run page has two cards and the run's Logs.

  • The left card names the plan and the server. Its timeline shows when the run was Queued and what started it, such as "Triggered by its schedule" or "Triggered manually" with your name. Then come Started and Finished, with the time spent waiting and running in between. When a run fails, the error shows here. Once the run has stored backups, Encryption says whether they are encrypted. See Encryption.
  • The right card shows the status, the share done and the agent's latest message. Under it, the steps light up in turn: Prepare, Dump, Archive, Compress, Upload and Index.
  • Logs lists every message of the run, newest first, with its level.

While the run is Queued or Running, the page refreshes on its own every few seconds.

Stop a run

Click Stop run

On the run page, click Stop run and confirm. In the Backup Runs list, the same action is called Stop, in the row's menu.

Check the result

What happens next depends on the run's status:

  • A Queued run is cancelled at once. A Run stopped message appears. The run never started, so its card reads "Not started".
  • A Running run shows Stop requested: "The agent stops this run at its next check." The status reads Stopping…. The run turns Cancelled, with the message "Backup run cancelled.", at the agent's next report or check, at most about 10 seconds later. A run that finishes before then ends as usual.

Every stop adds "Stop requested by" and your name to the run's Logs. The timeline shows Stop requested and Stopped.

To stop a run from a script, see Stop a run.

The progress card of a queued run, waiting for the agent, with the Stop run button above it

A queued run. Stop run cancels it at once.

What a stopped run leaves

  • A cancelled run is not a successful backup. It does not count toward Keep at most, and it does not prevent a Backup overdue alert. It raises no alert of its own.
  • Archives Clokeep recorded before the stop stay on the storage for now. They do not appear in Browse Backups. An archive that finishes uploading after the stop is recorded too, and the run's Logs say "Backup #… finished uploading after the stop. It is not kept as a backup and is deleted automatically."
  • Retention deletes these archives once a later backup of the plan succeeds, or once they are older than Keep backups for. See Archives of failed and stopped runs.
  • To remove them at once, delete the run: in Backup Runs, open the row's menu, click Delete and tick Also delete the backups from storage. The box is not offered for backups of an incremental chain. A run deleted without the box keeps its backups: they show in Browse Backups with Source set to Orphaned backups. See Browse a backup.
  • On SFTP and FTP, an archive whose upload the stop cut off can stay on the storage, incomplete and without a record. Clokeep does not list or remove it. Delete it on the storage yourself.
  • If the stopped run of an incremental Files plan stored part of a backup, the next run starts a new chain with a full backup instead of building on it.

If the agent finished the run before it saw the stop, the run ends as usual and its backup is kept. The Logs then say "The stop arrived after the backup had finished, so the finished backup was kept."

Troubleshooting

The run stays Queued: Waiting for the agent to pick this up

The agent has not picked the run up, so the run is stuck in Queued. Open the server's page and check Agent status.

  • If the server is Offline, the run waits and does not time out. It starts when the agent checks in again. See How Clokeep works.
  • If the server is Online, the agent is busy. By default it runs one backup or restore at a time, and starts the waiting runs in the order they were queued. Look under Backup Runs for the server's run that is Running.

To give up on the run, click Stop run. The plan can then run again.

A run stays Running and the agent reports nothing

A run the agent reports nothing on for 12 hours, no progress, no log line and no archive, is marked Failed with the error "The agent reported nothing on this run for 12 hours: it is marked failed so later runs of the plan can start." A Backup run failed alert goes out, and the plan can run again. A run you asked to stop is marked Cancelled instead. Check the server and the agent, then run the plan again.

A backup failed: work directory ran out of disk space

The run's error starts with work directory /var/lib/clokeep-agent ran out of disk space; free space there or choose another work directory for this server, with the folder the run used. On a Plesk server or cPanel server plan, the failed account's error ends with no space left on device instead. The agent stages each backup on the server's disk before it uploads it. Free space on that disk, or pick another disk under Work directory on the server's page. See Disk space and the work folder.

Run now shows Backup already active

The plan already has a run that is Queued or Running. Open it under Backup Runs, wait for it to end or stop it, then run the plan again.

Next steps

Esc
↑↓to navigate↵to openEscto close