Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write restore script #26

Open
andrey-malets opened this issue Jul 1, 2015 · 0 comments
Open

Write restore script #26

andrey-malets opened this issue Jul 1, 2015 · 0 comments
Assignees

Comments

@andrey-malets
Copy link
Owner

Algorithm should be something like this:

  1. Bootstrap base system with debootstrap. Files from /etc/apt/souces.list may be useful while getting system bootstrapped.
  2. Restore essential system files: /etc/passwd, /etc/shadow and so on. This is required to properly restore all the user names and UIDs which may get created randomly during package installation and therefore may not work with files from backup.
  3. apt-get install --no-install-recommends all the packages from backup. This step may require additional check for package availability (not all packages may have been installed from known sources, we need to skip those).
  4. Restore all system and user files from backup. If the backup has some databases files, restore them also. This should be done iteratively by taking full backup as a base and applying diff backups one after another. tar --numeric-owner option must be used.
  5. Install kernel image and configure bootloader, if required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant