qmk_distro_wsl icon indicating copy to clipboard operation
qmk_distro_wsl copied to clipboard

[Feature Request] Optimise backup strategy

Open zvecr opened this issue 3 years ago • 1 comments

Description

Right now its just tar of the entire home directory, though it would be good to...

  • use partial updates
    • rsync
  • ignore as much as possible
    • only qmk_firmware?
  • as fast as possible on uninstall
    • rsync if done at least once
    • tar otherwise?
  • configurable target directory?

zvecr avatar Mar 12 '21 14:03 zvecr

Current Status

  • Implemented basic backup and restore menu within qmk-admin
  • Validated rsync is too slow for use on raw files
    • > 4 mins rsync vs 20s for zx + rsync
    • main slowdown seems to be in the amount of size and timestamp calls for a clone of qmk_firmware
  • Backup only copied if different
  • "Hidden" option for setting backup destination

Next steps?

  • Restore backup on upgrade
  • Validate use of /tmp as tmpfs
  • Conf file for which folders to backup?
  • get QMK_HOME when not set

zvecr avatar Mar 30 '21 18:03 zvecr