在 CentOS 里你提到的 “recycle” 通常指两类东西之一,下面分别说明迁移方法:
CentOS 桌面(GNOME/KDE)用户的回收站一般在:
~/.local/share/Trash/挂载点/.Trash-1000cp -a ~/.local/share/Trash /目标路径/
cp -a /备份路径/Trash ~/.local/share/
⚠️ 注意:
restorecon -R ~/.local/share/Trash
例如 Samba 的 recycle 模块:
原配置(/etc/samba/smb.conf):
[share]
path = /data/share
recycle:repository = .recycle
recycle:keeptree = yes
迁移步骤:
.recycle 目录tar czf recycle.tar.gz /data/share/.recycle
tar xzf recycle.tar.gz -C /data/share/
chown -R samba用户:samba组 /data/share/.recycle
请补充:
我可以给你精确迁移方案。
如果你能说明:
✅ CentOS 版本
✅ 是桌面还是服务器
✅ recycle 具体指什么
我可以直接给你一步一步命令。