Bug #2143

Backup data: exclude e-smith db directory

Added by Giacomo Sanchietti almost 8 years ago. Updated almost 8 years ago.

Status:CLOSEDStart date:09/02/2013
Priority:NormalDue date:09/16/2013
Assignee:-% Done:

100%

Category:nethserver-backup-data
Target version:v6.4-beta2
Security class: Resolution:
Affected version:v6.4-beta1 NEEDINFO:No

Description

Directory /var/lib/nethserver/db is in both configuration backup and data backup. After a data restore, all modifications to e-smith databases are overwritten.

To avoid the problem, simply exclude /var/lib/nethserver/db from data backup.


Related issues

Related to NethServer 6 - Bug #2040: Backup: web ui doesn't report real db data after submitti... CLOSED 09/02/2013 09/16/2013

Associated revisions

Revision 8f36ab81
Added by Giacomo Sanchietti almost 8 years ago

nethserver-base.exclude: exclude /var/lib/nethserver/db directory from backup. Refs #2143

History

#1 Updated by Giacomo Sanchietti almost 8 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20
  • Estimated time set to 0.50

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

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

#4 Updated by Giacomo Sanchietti almost 8 years ago

  • Affected version changed from v6.4-beta2 to v6.4-beta1
Test case
  • Configure and execute a backup
  • Apply a change to configuration database
  • Restore a backup and check configuration database is not overwritten

To list files in a NFS backup:

/etc/e-smith/events/actions/mount-nfs
duplicity list-current-files --archive-dir /var/lib/nethserver/backup/duplicity/ --no-encryption file:///mnt/backup/<hostname>
/etc/e-smith/events/actions/umount-nfs

#5 Updated by Giacomo Sanchietti almost 8 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
New package in nethserver-testing:
  • nethserver-backup-data-1.0.6-2.0git8f39b343.ns6.noarch.rpm

See previous note for test case.

QA Note
See also #2040

#6 Updated by Davide Principi almost 8 years ago

  • Assignee set to Davide Principi
  • Start date set to 09/02/2013

#7 Updated by Davide Principi almost 8 years ago

  • Due date set to 09/16/2013
  • Assignee deleted (Davide Principi)

VERIFIED

  # config setprop backup-data  FullDay 1
  # backup-data
  # config setprop backup-data  FullDay 2
  # restore-data
  # config printprop backup-data FullDay 
FullDay=2

#8 Updated by Davide Principi almost 8 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

#9 Updated by Giacomo Sanchietti almost 8 years ago

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

Also available in: Atom PDF