#!/usr/bin/env bash # config.sh - Default configuration for ROCKNIX backup/restore # ROCKNIX console host ROCKNIX_HOST="${ROCKNIX_HOST:-rgcubexx.local}" ROCKNIX_USER="${ROCKNIX_USER:-root}" ROCKNIX_PASSWORD="${ROCKNIX_PASSWORD:-}" ROCKNIX_STORAGE="${ROCKNIX_STORAGE:-/storage}" # Local backup directory (resolved in lib-common.sh) BACKUP_DIR="${BACKUP_DIR:-backups}" # Files to back up (relative to /storage) # Specific backup (includes everything) SPECIFIC_FILES=( # RetroArch global ".config/retroarch/retroarch.cfg" ".config/retroarch/retroarch-core-options.cfg" ".config/retroarch/retroarch32bit-append.cfg" ".config/retroarch/retroarch64bit-append.cfg" # RetroArch .opt (per-core options at root level) ".config/retroarch/Flycast.opt" ".config/retroarch/Supafaust.opt" ".config/retroarch/ParaLLEl N64.opt" # RetroArch .rmp (remaps at root level) ".config/retroarch/TATE-MAME 2003-Plus.rmp" # RetroArch overrides (complete directory) ".config/retroarch/config/" # Shaders "shaders/" # PPSSPP ".config/ppsspp/PSP/SYSTEM/ppsspp.ini" ".config/ppsspp/PSP/SYSTEM/controls.ini" # DraStic ".config/drastic/config/" # Other emulators ".config/game/configs/" ".config/flycast/emu.cfg" ".config/flycast/flycast.gptk" ".config/flycast/mappings/" ".config/duckstation/settings.ini" ".config/yabasanshiro/.config" ) # Generic backup: exclude files with device/user-specific settings GENERIC_EXCLUDES=( ".config/retroarch/retroarch.cfg" ".config/retroarch/retroarch32bit-append.cfg" ".config/retroarch/retroarch64bit-append.cfg" ) # Settings patterns to filter from overrides in generic backup GENERIC_SETTINGS_FILTER=( "menu_scale_factor" "menu_widget_scale_factor" "video_fullscreen_x" "video_fullscreen_y" "video_windowed_position_width" "video_windowed_position_height" "video_refresh_rate" "custom_viewport_width" "custom_viewport_height" "video_driver" "audio_driver" "input_driver" "input_joypad_driver" "cheevos_username" "cheevos_password" "cheevos_token" "cheevos_custom_host" "google_drive_refresh_token" "webdav_password" "webdav_username" "kiosk_mode_password" "content_show_settings_password" "netplay_ip_address" "netplay_ip_port" "netplay_password" )