Enhancement #2749

Backup data: restore files from a certain time

Added by Giacomo Sanchietti over 5 years ago. Updated over 5 years ago.

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

100%

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

Description

Add an option to /sbin/e-smith/restore-file script to allow restore of a file from a given time.

For example: restore /etc/passwd from 3 days ago.

See -t | --time options from duplicity manual.

Associated revisions

Revision 1d73164b
Added by Giacomo Sanchietti over 5 years ago

Scriptt: add scripts to restore specific files. Refs #2749

Revision d8b3c8e3
Added by Giacomo Sanchietti over 5 years ago

Scripts: add scripts to restore specific files. Refs #2749

Revision 04824183
Added by Giacomo Sanchietti over 5 years ago

restore: add time (-t) option. Refs #2749

Revision 9933aa97
Added by Giacomo Sanchietti over 5 years ago

backup-data-list: umount backup when done. Refs #2749

Revision e5d7b85e
Added by Giacomo Sanchietti over 5 years ago

post-backup: generate backup file list. Refs #2749 #2773

Revision 83dab3f9
Added by Giacomo Sanchietti over 5 years ago

restore-file: remove leading slash if needed. Refs #2749

Revision 4d3a1f1d
Added by Giacomo Sanchietti over 5 years ago

restore-file: correctly handle arguments. Refs #2749

Revision 1c8363fc
Added by Giacomo Sanchietti over 5 years ago

restore-file: fix type (umount filesystem). Refs #2749

History

#1 Updated by Giacomo Sanchietti over 5 years ago

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

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

  • Subject changed from Backup data: restore from a certain time to Backup data: restore files from a certain time

#4 Updated by Giacomo Sanchietti over 5 years ago

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

#5 Updated by Giacomo Sanchietti over 5 years ago

  • Assignee deleted (Giacomo Sanchietti)

#6 Updated by Giacomo Sanchietti over 5 years ago

Also added a new command
  • backup-data-list: print file from last backup

#7 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-backup-data-1.0.9-8.0git83dab3f9.ns6.noarch.rpm
Test case
  • Configure and execute a backup
  • Execute the backup multiple times during different days (or change the system clock)
  • Try to restore a file from a given date:
    /sbin/e-smith/restore-file -t 1D /myfile
    

#8 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from ON_QA to TRIAGED
  • % Done changed from 70 to 20

The restore-file script doesn't correctly handle arguments.

#9 Updated by Giacomo Sanchietti over 5 years ago

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

#10 Updated by Giacomo Sanchietti over 5 years ago

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

#11 Updated by Giacomo Sanchietti over 5 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.9-10.0git4d3a1f1d.ns6.noarch.rpm

#12 Updated by Nicola Rauso over 5 years ago

  • Assignee set to Nicola Rauso

#13 Updated by Nicola Rauso over 5 years ago

  • Status changed from ON_QA to TRIAGED
  • Assignee deleted (Nicola Rauso)
  • % Done changed from 70 to 20

The restore operation works - also for given date - but at the end of restore procedure the backup filesystem remains mounted

#14 Updated by Giacomo Sanchietti over 5 years ago

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

#15 Updated by Giacomo Sanchietti over 5 years ago

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

Fixed typo on /sbin/e-smith/restore-file script.

#16 Updated by Giacomo Sanchietti over 5 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.9-11.0git1c8363fc.ns6.noarch.rpm

#17 Updated by Nicola Rauso over 5 years ago

  • Assignee set to Nicola Rauso

#18 Updated by Nicola Rauso over 5 years ago

  • Assignee deleted (Nicola Rauso)

Tested: ok

#19 Updated by Nicola Rauso over 5 years ago

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

#20 Updated by Giacomo Sanchietti over 5 years ago

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

Documentation added to developer's and administrator's manual.

#21 Updated by Giacomo Sanchietti over 5 years ago

New package without modification from #2773:
  • nethserver-backup-data-1.0.11-1.ns6.noarch.rpm

Also available in: Atom PDF