• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question How to know the entire list of programmed process backups?

Erwan

Regular Pleskian
Hi,

Is it possible to know with a command line the list of the process backup (customer)?
We have two "pigz" in process but we don"t know which customer is concerned.

Thanks.
 
I have:

#ps aux | grep pigz
root 19980 0.1 0.0 614080 7472 ? SNl Jun03 11:20 /usr/bin/pigz
root 22554 0.1 0.0 614080 7496 ? SNl 05:11 1:03 /usr/bin/pigz
root 26649 0.0 0.0 105468 2044 pts/0 S+ 14:42 0:00 grep pigz

But i don't know from where is 19980.
 
My suggestion here is to look into
# cd /usr/local/psa/PMM/logs
and find the directories with the latest backups like
backup-YYYY-MM-DD-HH-...
Decend into these directories and look into the backup.log files, e.g.
# less backup.log
or
# tail backup.log
For running backups, backup.log is continuously appended by new log entries. If the backup.log is still updated, the backup process is running. If it ends with "INFO: pmm-ras finished. Exit code: 0" and does not add new lines, it is not an actively running backup.
 
Thanks a lot Peter.

The latest directory: backup-2018-06-07-00-03-02-217/

And the last line (and modification) in backup.log:
[2018-06-07 05:11:08.093|27406] INFO: pmm-ras finished. Exit code: 0

But the backup is still running in the manager (?).
And i've a "pigz" process....

upload_2018-6-7_19-13-19.png
 
# ps aux | grep PMM
root 5817 0.0 0.0 105464 2100 pts/1 S+ 19:26 0:00 grep PMM
root 9627 0.9 4.7 3306340 3123432 ? SN 00:03 10:33 /usr/bin/perl /usr/local/psa/admin/bin/plesk_agent_manager server --owner-uid=a5e8349c-1cd1-45df-afd7-79523a6e1387 --owner-type=server --description=Scheduled Backup. All configuration and content. --keep-local-backup-if-export-failed --exclude-pattern-file=/usr/local/psa/PMM/sessions/2018-06-07-000302.217/exclude --session-path=/usr/local/psa/PMM/sessions/2018-06-07-000302.217 --output-file=ftp://[email protected]/ --ftp-passive-mode
root 10346 0.3 5.4 3798008 3614972 ? SN Jun03 22:55 /usr/bin/perl /usr/local/psa/admin/bin/plesk_agent_manager server --owner-uid=a5e8349c-1cd1-45df-afd7-79523a6e1387 --owner-type=server --description=Scheduled Backup. All configuration and content. --keep-local-backup-if-export-failed --session-path=/usr/local/psa/PMM/sessions/2018-06-03-000304.692 --output-file=ftp://[email protected]/ --ftp-passive-mode
root 11645 0.0 0.0 306300 19392 ? SN Jun03 4:58 /usr/local/psa/admin/sbin/pmm-ras --export-dump-as-file --dump-file-specification ftp://[email protected]/backup_1806030003.tar --use-ftp-passive-mode --dump-storage /var/lib/psa/dumps/ --session-path /usr/local/psa/PMM/sessions/2018-06-03-000304.692
root 11997 0.4 0.0 306300 21912 ? SN 00:07 5:05 /usr/local/psa/admin/sbin/pmm-ras --export-dump-as-file --dump-file-specification ftp://[email protected]/backup_1806070003.tar --use-ftp-passive-mode --dump-storage /var/lib/psa/dumps/ --session-path /usr/local/psa/PMM/sessions/2018-06-07-000302.217
root 19978 0.0 5.2 3662684 3475980 ? SN Jun03 3:22 /usr/bin/perl /usr/local/psa/admin/bin/plesk_agent_manager server --owner-uid=a5e8349c-1cd1-45df-afd7-79523a6e1387 --owner-type=server --description=Scheduled Backup. All configuration and content. --keep-local-backup-if-export-failed --session-path=/usr/local/psa/PMM/sessions/2018-06-03-000304.692 --output-file=ftp://[email protected]/ --ftp-passive-mode
10021 19981 0.0 5.2 3662684 3476532 ? SN Jun03 1:32 /usr/bin/perl /usr/local/psa/admin/bin/plesk_agent_manager server --owner-uid=a5e8349c-1cd1-45df-afd7-79523a6e1387 --owner-type=server --description=Scheduled Backup. All configuration and content. --keep-local-backup-if-export-failed --session-path=/usr/local/psa/PMM/sessions/2018-06-03-000304.692 --output-file=ftp://[email protected]/ --ftp-passive-mode
root 19984 0.0 5.2 3662684 3475528 ? SN Jun03 0:28 /usr/bin/perl /usr/local/psa/admin/bin/plesk_agent_manager server --owner-uid=a5e8349c-1cd1-45df-afd7-79523a6e1387 --owner-type=server --description=Scheduled Backup. All configuration and content. --keep-local-backup-if-export-failed --session-path=/usr/local/psa/PMM/sessions/2018-06-03-000304.692 --output-file=ftp://[email protected]/ --ftp-passive-mode
10021 20002 0.3 2.7 2047556 1832524 ? DN Jun03 22:39 /bin/tar -f - -c --no-recursion --anchored -X /tmp/pmm-tb-fltf-files-McAwso -T /usr/local/psa/PMM/tmp/pmm-dci-chn-0upAq6jp
root 22539 0.0 4.7 3306340 3119556 ? SN 05:11 0:26 /usr/bin/perl /usr/local/psa/admin/bin/plesk_agent_manager server --owner-uid=a5e8349c-1cd1-45df-afd7-79523a6e1387 --owner-type=server --description=Scheduled Backup. All configuration and content. --keep-local-backup-if-export-failed --exclude-pattern-file=/usr/local/psa/PMM/sessions/2018-06-07-000302.217/exclude --session-path=/usr/local/psa/PMM/sessions/2018-06-07-000302.217 --output-file=ftp://[email protected]/ --ftp-passive-mode
10021 22553 0.0 4.7 3306340 3120172 ? SN 05:11 0:12 /usr/bin/perl /usr/local/psa/admin/bin/plesk_agent_manager server --owner-uid=a5e8349c-1cd1-45df-afd7-79523a6e1387 --owner-type=server --description=Scheduled Backup. All configuration and content. --keep-local-backup-if-export-failed --exclude-pattern-file=/usr/local/psa/PMM/sessions/2018-06-07-000302.217/exclude --session-path=/usr/local/psa/PMM/sessions/2018-06-07-000302.217 --output-file=ftp://[email protected]/ --ftp-passive-mode
root 22557 0.0 4.7 3306500 3119212 ? SN 05:11 0:03 /usr/bin/perl /usr/local/psa/admin/bin/plesk_agent_manager server --owner-uid=a5e8349c-1cd1-45df-afd7-79523a6e1387 --owner-type=server --description=Scheduled Backup. All configuration and content. --keep-local-backup-if-export-failed --exclude-pattern-file=/usr/local/psa/PMM/sessions/2018-06-07-000302.217/exclude --session-path=/usr/local/psa/PMM/sessions/2018-06-07-000302.217 --output-file=ftp://[email protected]/ --ftp-passive-mode
10021 22558 0.3 2.4 1705472 1609640 ? DN 05:11 2:54 /bin/tar -f - -c --no-recursion --anchored -X /tmp/pmm-tb-fltf-files-eiy0vY -T /usr/local/psa/PMM/tmp/pmm-dci-chn-40febF6K

It seems that there is the 2018-06-03 backup still here but on the console it's finished..

upload_2018-6-7_19-31-47.png
 
I think it should be safe to kill all PMM jobs and see what happens afterwards.
If the backup is still shown as "running" in Plesk after PMM jobs have been killed and no PMM jobs remain visible in "ps aux | grep PMM" command output, remove the entries from the "longtasks" table in the psa database. This should reset all. It will not delete any data, but it will interrupt running backups, so that these backups are corrupt or incomplete and need to be re-done.

P.s.: Check if the pigz jobs stop when the PMM jobs are stopped. If not, kill the pigz jobs, too. Before restarting anything, make sure that you have enough space in your temporary directory/partition and on your FTP backup space.
 
Back
Top