Skip to content

Commit

Permalink
SW-4263 include cam folder except lens calibration file (#117)
Browse files Browse the repository at this point in the history
* Backup cam folder
* Restore cam folder except lens calibration file.
  • Loading branch information
amrithvenkat authored Jan 10, 2024
1 parent 04b15fd commit d91e197
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/beamos/filesystem/migration/usr/bin/migration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ USB_MOUNT_PATH="/mnt/usb"

# list of files treated by preserve-data and restore-data
DATA_TO_PRESERVE=(
# "/home/pi/.octoprint/cam" # is a folder
"/home/pi/.octoprint/cam" # is a folder
"/home/pi/.octoprint/analytics/usage.yaml"
"/home/pi/.octoprint/users.yaml"
"/home/pi/.octoprint/users-dev.yaml"
Expand All @@ -506,6 +506,8 @@ DATA_TO_PRESERVE=(

DATA_TO_RESTORE=(
# ".octoprint/cam" # is a folder
".octoprint/cam/last_session.yaml"
".octoprint/cam/pic_settings.yaml"
".octoprint/analytics/usage.yaml"
".octoprint/users.yaml"
".octoprint/users-dev.yaml"
Expand Down

0 comments on commit d91e197

Please sign in to comment.