Enhancement #2653

Samba: backup secrets.tdb in config backup

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

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

100%

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

Description

Add two actions to backup and restore /var/lib/samba/private/secrets.tdb.

Actions should be linked in pre-backup-config and post-restore-config.


Related issues

Related to NethServer 6 - Enhancement #2626: Implement hostname-modify event for samba CLOSED

Associated revisions

Revision 8a063f34
Added by Giacomo Sanchietti almost 6 years ago

createlinks, actions: backup secrets.tdb in config backup. Refs #2653

History

#1 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

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

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

#4 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Packages in nethserver-testing:
  • nethserver-samba-1.4.1-1.0git8a063f34.ns6.noarch.rpm
Test case
  • Execute backup-config
  • Check file /var/lib/nethserver/backup/secrets_tdb.dump is created
  • Execute restore-config
  • Check a backup file is created /var/lib/samba/private/secrets.tdb.bak
  • Check the dump is restored in /var/lib/samba/private/secrets.tdb

#5 Updated by Alessio Fattorini almost 6 years ago

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

[root@botolo ~]# rpm -q nethserver-samba
nethserver-samba-1.4.1-4.0gitbe1c57e5.ns6.noarch

[root@botolo ~]# backup-config

Check secrets_tdb.dump

[root@botolo ~]# ls /var/lib/nethserver/backup/secrets_tdb.dump
/var/lib/nethserver/backup/secrets_tdb.dump

Make restore:

[root@botolo ~]# restore-config

Check secrets.tdb.bak

[root@botolo ~]# ls /var/lib/samba/private/secrets.tdb.bak
/var/lib/samba/private/secrets.tdb.bak

Check secrets.tdb

[root@botolo ~]# ll /var/lib/samba/private/secrets.tdb
-rw-------. 1 root root 12288 20 feb 15:15 /var/lib/samba/private/secrets.tdb

VERIFIED

#6 Updated by Davide Principi almost 6 years ago

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

#7 Updated by Davide Principi almost 6 years ago

In nethserver-updates:
nethserver-release-6.5-4.ns6.rc1.noarch.rpm
nethserver-devbox-1.4.0-1.ns6.noarch.rpm
nethserver-backup-data-1.0.9-1.ns6.noarch.rpm
nethserver-base-2.1.0-1.ns6.noarch.rpm
nethserver-directory-2.0.1-1.ns6.noarch.rpm
nethserver-firewall-base-1.1.0-1.ns6.noarch.rpm
nethserver-hosts-1.0.7-1.ns6.noarch.rpm
nethserver-httpd-2.3.0-1.ns6.noarch.rpm
nethserver-httpd-admin-1.2.1-1.ns6.noarch.rpm
nethserver-hylafax-1.0.5-1.ns6.noarch.rpm
nethserver-ibays-2.0.3-1.ns6.noarch.rpm
nethserver-lib-2.0.1-1.ns6.noarch.rpm
nethserver-mail-server-1.6.1-1.ns6.noarch.rpm
nethserver-nethgui-1.4.0-1.ns6.noarch.rpm
nethserver-ntopng-1.1.2-1.ns6.noarch.rpm
nethserver-nut-1.0.7-1.ns6.noarch.rpm
nethserver-openssh-1.0.5-1.ns6.noarch.rpm
nethserver-roundcubemail-0.0.2-1.ns6.noarch.rpm
nethserver-samba-1.4.2-1.ns6.noarch.rpm
nethserver-shorewall-1.0.4-1.ns6.noarch.rpm
nethserver-sogo-thunderbird-1.1.1-1.ns6.noarch.rpm
nethserver-vpn-1.1.2-1.ns6.noarch.rpm
sogo-frontends-1.3.0-1.ns6.noarch.rpm

Also available in: Atom PDF