Enhancement #3222

Backup data: defer mount of destination

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

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

100%

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

Description

Actual implementation mounts the backup destination early in the pre-backup-data event.
So it's quite hard for other software to execute code before the destination is mounted.
For example, nethserver-restore-data is forced to index even the mounted destination, which is totally useless and a waste of time.

The solutions is to move all mount actions from index 10 to 70.

Associated revisions

Revision 7c3dad37
Added by Giacomo Sanchietti about 6 years ago

createlinks: change actions priority. Refs #3222

History

#1 Updated by Giacomo Sanchietti about 6 years ago

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

#2 Updated by Giacomo Sanchietti about 6 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 6 years ago

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

#4 Updated by Giacomo Sanchietti about 6 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-backup-data-1.1.4-1.5.g7c3dad3.ns6.noarch.rpm
Test case
  • Check following actions has been moved to index 10 inside pre-backup-data event:
    • mount-usb
    • mount-cifs
    • mount-nfs
  • Check following actions has been moved to index 80 inside post-backup-data event:
    • umount-usb
    • umount-cifs
    • umount-nfs
  • Check the cleanup-data-duplicity action has been moved to index 70 inside post-backup-data event

#5 Updated by Filippo Carletti about 6 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90
[root@ns65 ~]# ls -l /etc/e-smith/events/pre-backup-data/*mount*
lrwxrwxrwx. 1 root root 21 Jul 14 16:01 /etc/e-smith/events/pre-backup-data/S70mount-cifs -> ../actions/mount-cifs
lrwxrwxrwx. 1 root root 20 Jul 14 16:01 /etc/e-smith/events/pre-backup-data/S70mount-nfs -> ../actions/mount-nfs
lrwxrwxrwx. 1 root root 20 Jul 14 16:01 /etc/e-smith/events/pre-backup-data/S70mount-usb -> ../actions/mount-usb
[root@ns65 ~]# ls -l /etc/e-smith/events/post-backup-data/*mount*
lrwxrwxrwx. 1 root root 33 Jul 14 16:01 S70cleanup-data-duplicity -> ../actions/cleanup-data-duplicity
lrwxrwxrwx. 1 root root 22 Jul 14 16:01 /etc/e-smith/events/post-backup-data/S80umount-cifs -> ../actions/umount-cifs
lrwxrwxrwx. 1 root root 21 Jul 14 16:01 /etc/e-smith/events/post-backup-data/S80umount-nfs -> ../actions/umount-nfs
lrwxrwxrwx. 1 root root 21 Jul 14 16:01 /etc/e-smith/events/post-backup-data/S80umount-usb -> ../actions/umount-usb
[root@ns65 ~]# rpm -q nethserver-backup-data
nethserver-backup-data-1.1.4-1.5.g7c3dad3.ns6.noarch

#6 Updated by Giacomo Sanchietti about 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-backup-data-1.1.5-1.ns6.noarch.rpm

Also available in: Atom PDF