This commit is contained in:
kento2 2026-08-19 02:15:39 +02:00
parent c4bf3b8bee
commit 8f29a4f56d
10 changed files with 819 additions and 15 deletions

View file

@ -1,6 +1,10 @@
#!/bin/sh
set -ex
set -eux
find /mnt -type f | while IFS= read -r file; do
dest="/data/$(dirname "${file#/mnt/}")"
mkdir -p "$dest"
cp -f "$file" "$dest"
done
cd /data
cp -rf /mnt/* . || true
exec "$@"