67b8b004 / configs /persistence.conf
autoface's picture
Updated the log directory structure to change all log paths from `/home/user/logs` to `/home/user/log` to simplify file management. Also update related scripts and configuration files to reflect this change.
5b0a02b
# =============================================================================
# Data Persistence Configuration File
# =============================================================================
# Core Configuration - Set via environment variables
# HF_TOKEN and DATASET_ID must be provided at runtime through environment variables
# Example: docker run -e HF_TOKEN="your_token" -e DATASET_ID="username/dataset" ...
# Archive Path Configuration
# Archive important data directories for your service and File Browser
ARCHIVE_PATHS="/home/user"
# Restore Path Configuration
# Archive files will be extracted to the root directory
RESTORE_PATH="/"
# Sync Configuration
# Auto sync interval (seconds)
SYNC_INTERVAL=3600
# Maximum number of archive files
MAX_ARCHIVES=1
# Compression level (1-9, 9 is highest compression)
COMPRESSION_LEVEL=6
# File Configuration
# Archive file prefix
ARCHIVE_PREFIX="backup"
# Archive file extension
ARCHIVE_EXTENSION="tar.gz"
# Exclude patterns, comma-separated
# Exclude temporary files, cache files, and files that change frequently
EXCLUDE_PATTERNS=""
# Application Configuration
# Since the core service runs independently, set to empty or simple command
APP_COMMAND="echo 'Persistence daemon running'"
# Feature Switches
# Enable auto restore
ENABLE_AUTO_RESTORE=true
# Enable auto sync
ENABLE_AUTO_SYNC=true
# Delay first backup to allow application to fully start (seconds)
INITIAL_BACKUP_DELAY=300
# Synchronous Restore Configuration
# Force synchronous restore to complete successfully before service startup
# If true, service startup will be aborted if restore fails
# If false, service will continue even if restore fails (legacy behavior)
FORCE_SYNC_RESTORE=true
# Enable data integrity verification after restore
ENABLE_INTEGRITY_CHECK=true
# Log Configuration
# Log file path (using user directory for better permissions)
LOG_FILE="/home/user/log/persistence.log"
# Log level (DEBUG, INFO, WARN, ERROR)
LOG_LEVEL="INFO"