Enhancement #2828

Backup data: avoid multiple sessions

Added by Giacomo Sanchietti about 7 years ago. Updated about 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-backup-data
Target version:v6.5
Resolution: NEEDINFO:No

Description

If a backup lasts more than 24 hours, a new backup process is spawn. The last process will fail but the backup chain is always in good state.

Add a simple check to avoid running multiple backup-data processes: when a new backup starts it should stop if there is a previous backup already running.


Related issues

Related to NethServer 6 - Enhancement #2690: Backup data: add "Backup now" button CLOSED

Associated revisions

Revision 0d1e3c06
Added by Giacomo Sanchietti about 7 years ago

backup-data: abort if another backup process is already running. Refs #2828

Revision e426ceda
Added by Giacomo Sanchietti about 7 years ago

Backup library: add function to check already running processes. Refs #2828

Revision 0121b314
Added by Giacomo Sanchietti about 7 years ago

Web interface: show mounted USB disks. Refs #2828

Revision 05f69114
Added by Davide Principi about 7 years ago

Merge branch 'b2828'

Backup data: avoid multiple sessions

Refs #2828

Revision 2dd5cf42
Added by Davide Principi about 7 years ago

Merge branch 'b2828'

Backup data: avoid multiple sessions

Refs #2828

Revision 67da7797
Added by Davide Principi about 7 years ago

*.spec.in: require nethserver-backup-config >= 1.2.0. Refs #2828

History

#1 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from NEW to TRIAGED
  • Target version set to v6.5
  • % Done changed from 0 to 20

#2 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#3 Updated by Giacomo Sanchietti about 7 years ago

Implementation should only check if inside the process table there is another process called backup-data.

#4 Updated by Giacomo Sanchietti about 7 years ago

#5 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#6 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Packages in nethserver-testing:
  • nethserver-backup-config-1.1.0-3.0gite426ceda.ns6.noarch.rpm
  • nethserver-backup-data-1.0.11-2.0git0121b314.ns6.noarch.rpm

Before release, add the minimum required version for nethserver-backup-config (it contains the libraries) to nethserver-backup-data.

Test case
  • Configure a backup
  • Launch the backup from command line: backup-data
  • Launch the some command inside another shell when the first one is still running
  • The second backup must exit 1 with an explicit error

#7 Updated by Alessio Fattorini about 7 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90
# backup-data
..

# tail -f /var/log/backup-data.log
2014-07-31 18:26:05 - START - Backup data started
2014-07-31 18:26:07 - STEP - pre-backup-done done

# backup-data
Another backup is already running.

Verified

#8 Updated by Davide Principi about 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-updates:
nethserver-backup-data-1.1.0-1.ns6.noarch.rpm
nethserver-backup-config-1.2.0-1.ns6.noarch.rpm

Also available in: Atom PDF