xplayer-ota/sync.sh
2025-09-20 14:31:06 +08:00

39 lines
1.9 KiB
Bash
Executable File

mkdir -p files
rsync 5c:/etc/ssh/sshd_config files/sshd_config
rsync 5c:/root/.ssh/authorized_keys files/authorized_keys
rsync 5c:/etc/asound.conf files/asound.conf
rsync 5c:/usr/local/bin/camilladsp files/camilladsp
rsync 5c:/etc/camilladsp.yml files/camilladsp.yml
# rsync -avz 5c:/root/camilladsp-conf files/
rsync 5c:/usr/local/lib/systemd/system/mpd.socket files/mpd.socket
rsync 5c:/usr/local/lib/systemd/system/mpd.service files/mpd.service
rsync 5c:/usr/local/bin/mpd files/mpd
rsync 5c:/etc/mpd.conf files/mpd.conf
rsync 5c:/etc/systemd/system/xplayer-server.service files/xplayer-server.service
rsync 5c:/usr/local/bin/server files/server
rsync 5c:/usr/bin/ota files/ota
rsync -avz 5c:/etc/apt/sources.list.d ./files/
rsync 5c:/etc/modules files/modules
rsync 5c:/etc/modprobe.d/snd-aloop.conf files/snd-aloop.conf
rsync 5c:/etc/systemd/system/camilladsp.service files/camilladsp.service
rsync 5c:/usr/lib/systemd/system/bluetooth.service files/bluetooth.service
rsync 5c:/etc/udev/rules.d/99-usb-auto-mount.rules files/99-usb-auto-mount.rules
rsync 5c:/usr/local/bin/usb-mount.sh files/usb-mount.sh
rsync 5c:/etc/custom_service/start_service.sh files/start_service.sh
rsync 5c:/etc/bluetooth/input.conf files/input.conf
rsync 5c:/etc/bluetooth/main.conf files/main.conf
rsync 5c:/etc/default/cpufrequtils files/cpufrequtils
rsync 5c:/usr/lib/systemd/system/shairport-sync.service files/shairport-sync.service
rsync 5c:/usr/local/bin/shairport-sync files/shairport-sync
rsync 5c:/etc/shairport-sync.conf files/shairport-sync.conf
rsync 5c:/usr/bin/shairport_monitor.sh files/shairport_monitor.sh
# rsync 5c:/etc/upmpdcli.conf files/upmpdcli.conf
rsync 5c:/usr/bin/sing-box files/sing-box
rsync 5c:/etc/systemd/system/sing-box.service files/sing-box.service
rsync -avz --exclude='login/' 5c:/srv/login/ files/login/
rsync 5c:/usr/bin/led-startup.sh files/led-startup.sh
# Clean up macOS resource fork files
find files -name "._*" -type f -delete
echo "done"