Plesk

How to check if a Plesk backup/restoration task is still running

Question

How to check if a Plesk backup/restoration task is still running and is not stuck?

Answer

  1. Connect to a Plesk server via SSH.

  2. Check if the backup/restoration process is running:

    # ps auxww | grep PMM
    root 6066 0.2 0.4 153104 9528 ? S 22:18 0:00 /usr/local/psa/admin/bin/deployer --deploy-dump --session-path /usr/local/psa/PMM/rsessions/20170731221845483 --dump-index-file /usr/local/psa/PMM/rsessions/20170731221845483/dump/dump_index.xml

  1. Check if new records are being written to the file /var/log/plesk/PMM/pmmcli.log:

    # tail -fn0 /var/log/plesk/PMM/pmmcli.log

    Note: In case nothing is getting written to the log above, use the strace command line utility to determine whether or not the process (PID) is generating output. Its usage is strace -p <PID> taken from step 1. For example: strace -p 6066

    • If backup is restored from a remote storage, it will be downloaded locally at first. Check the size of already downloaded backup with:

      # du -sh /tmp/pmm-repo*
      57G /tmp/pmm-repo-icon-content-kRJTC3