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

DietPi-Backup | Add Option to Automatically Restore on First Boot #4112

Merged
merged 36 commits into from
Feb 27, 2021

Commits on Feb 8, 2021

  1. v6.35

    Add restore dietpi.txt option
    ravenclaw900 committed Feb 8, 2021
    Configuration menu
    Copy the full SHA
    4fdd52c View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2021

  1. v7.1

    + DietPi-Software | Add way to automatically restore from backup on first boot
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    bb12c5b View commit details
    Browse the repository at this point in the history
  2. v7.1

    + DietPi-Software | CodeFactor fixes
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    bd6e36e View commit details
    Browse the repository at this point in the history
  3. v7.1

    + DietPi-Software | Make mawk more specific
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    794eaff View commit details
    Browse the repository at this point in the history
  4. v7.0

    + DietPi-Software | Various fixes
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    580856c View commit details
    Browse the repository at this point in the history
  5. v7.0

    + DietPi-Software | Remove other instance of $BACKUP_STATS_FILENAME
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    365b8f5 View commit details
    Browse the repository at this point in the history
  6. v7.0

    + DietPi-Software | Syntax Fixes
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    86d390d View commit details
    Browse the repository at this point in the history
  7. v7.0

    + DietPi-Software | Fix alist syntax error
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    05dfa8c View commit details
    Browse the repository at this point in the history
  8. v7.0

    +DietPi-Software | Boot into normal DietPi after restoring backup
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    d8cc428 View commit details
    Browse the repository at this point in the history
  9. v7.0

    + DietPi-Software | Fix booting into normal DietPi
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    ac013ae View commit details
    Browse the repository at this point in the history
  10. v7.0

    + DietPi-Software | Don't change install state and sync filesystem
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    5369ff6 View commit details
    Browse the repository at this point in the history
  11. v7.0

    + DietPi-Software | Switch from sed to G_CONFIG_INJECT
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    a0ed620 View commit details
    Browse the repository at this point in the history
  12. v7.0 (#4113)

    Update restore-boot branch
    MichaIng authored Feb 15, 2021
    Configuration menu
    Copy the full SHA
    5b3c2b9 View commit details
    Browse the repository at this point in the history
  13. v7.0

    + DietPi-Software | Fix automatic restore
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    a6f805d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    74a34e6 View commit details
    Browse the repository at this point in the history
  15. v7.0

    + DietPi-Backup | Fix search function
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    2094d45 View commit details
    Browse the repository at this point in the history
  16. v7.0

    + DietPi-Software | Only reboot if backup succeded
    ravenclaw900 committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    df2015f View commit details
    Browse the repository at this point in the history
  17. v7.0

    + DietPi-Software | Auto-restore backup: Reformat code (remove doubled indentation and such)
    + DietPi-Software | Only reboot when backup restore succeeded, inform user about it for three seconds
    + DietPi-Software | Downgrade auto-restore =2 to =1 in every case
    MichaIng authored Feb 15, 2021
    Configuration menu
    Copy the full SHA
    a5ef5a4 View commit details
    Browse the repository at this point in the history
  18. v7.0

    + DietPi-Software | Syntax: We are not in a function
    MichaIng authored Feb 15, 2021
    Configuration menu
    Copy the full SHA
    1642376 View commit details
    Browse the repository at this point in the history
  19. v7.0

    + DietPi-Software | On first run installs, services are disabled already, hence skip stopping and especially restarting them after restore has completed, as a reboot is done immediately.
    MichaIng authored Feb 15, 2021
    Configuration menu
    Copy the full SHA
    de3df2a View commit details
    Browse the repository at this point in the history
  20. v7.0

    + dietpi.txt | Add info that all attached drives will be mounted and searched automatically when restoring backup on first boot
    MichaIng authored Feb 15, 2021
    Configuration menu
    Copy the full SHA
    820d82e View commit details
    Browse the repository at this point in the history
  21. v7.0

    + CHANGELOG | DietPi-Backup: A new feature has been added which allows to automatically restore a dietpi-backup on first boot
    MichaIng authored Feb 15, 2021
    Configuration menu
    Copy the full SHA
    60cce61 View commit details
    Browse the repository at this point in the history
  22. v7.0

    + DietPi-Backup | Clear PATH cache after backup restore, in case commands are restored to a different locations
    MichaIng authored Feb 15, 2021
    Configuration menu
    Copy the full SHA
    5fbd2fa View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2021

  1. Configuration menu
    Copy the full SHA
    59b5c0c View commit details
    Browse the repository at this point in the history
  2. v7.0 (#4120)

    + Update restore-boot branch
    MichaIng authored Feb 17, 2021
    Configuration menu
    Copy the full SHA
    ce0ed5e View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2021

  1. Configuration menu
    Copy the full SHA
    5b1abee View commit details
    Browse the repository at this point in the history
  2. v7.0

    + DietPi-Backup | Do not stop services before we definitely run the backup or restore. The rsync process check still needs to be done after stopping the services, which include the rsync daemon. But do not kill a running rsync process afterwards, better error out.
    + DietPi-Backup | Implement a first function when restoring a backup, to check whether the backup's UUIDs match the current drive's UUIDs, so that we do not restore a system that is not booting, because the bootloader and fstab do not find the configured drives. If the UUIDs seem to not match, check whether we are able to reliably make the system bootable by adjusting known bootloader configurations. Add function to restore UUIDs, in case, but content is on ToDo for now :).
    MichaIng authored Feb 22, 2021
    Configuration menu
    Copy the full SHA
    f5519ea View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2021

  1. v7.0

    + DietPi-Globals | G_WHIP_YESNO: If the default is set to "yes", return "true" as well in case of non-interactive calls
    MichaIng authored Feb 24, 2021
    Configuration menu
    Copy the full SHA
    274fe91 View commit details
    Browse the repository at this point in the history
  2. v7.0

    + DietPi-Backup | Restore now obsolete functions
    + DietPi-Backup | Satisfy shellcheck
    + DietPi-Backup | Add whiptail yes/no dialogues when storing a backup to a system with different UUIDs. Default to "yes", if we did find the boot configuration method, else default to "no", which is especially relevant for non-interactive first run setups with AUTO_SETUP_BACKUP_RESTORE=1 set.
    MichaIng authored Feb 24, 2021
    Configuration menu
    Copy the full SHA
    1f9ebb3 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2021

  1. v7.0

    + DietPi-Backup | Full function to update UUID entries in fstab and boot configs after restore, if required
    MichaIng authored Feb 26, 2021
    Configuration menu
    Copy the full SHA
    144007d View commit details
    Browse the repository at this point in the history
  2. v7.0

    + DietPi-Backup | Satisfy shellcheck
    MichaIng authored Feb 26, 2021
    Configuration menu
    Copy the full SHA
    7721577 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9ecd07a View commit details
    Browse the repository at this point in the history
  4. v7.0

    + DietPi-Drive_Manager | Fix grabbing input argument
    MichaIng authored Feb 26, 2021
    Configuration menu
    Copy the full SHA
    8a435fd View commit details
    Browse the repository at this point in the history
  5. v7.0

    + DietPi-Backup | Fine tune output, coding and order of service start/stop and interactive parts
    MichaIng authored Feb 26, 2021
    Configuration menu
    Copy the full SHA
    ecbe1b7 View commit details
    Browse the repository at this point in the history
  6. v7.0

    + DietPi-Backup | Tiny
    MichaIng authored Feb 26, 2021
    Configuration menu
    Copy the full SHA
    19a7219 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2021

  1. v7.0

    + DietPi-Backup | Fix SBC boot config estimation and avoid doubled fstab rootfs edit as the loop includes root as well
    MichaIng authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    7a113e7 View commit details
    Browse the repository at this point in the history