平衡目录中的 rsync

发布于 2024-08-28 13:51:55 字数 64 浏览 4 评论 0原文

我需要将远程目录同步到本地服务器, 4 个目标目录中的平衡文件(与 4 个磁盘挂载相关)。

尖端?

I need to rsync a remote directory to a local server,
balancing file in 4 destination directory (related to 4 disk mounts).

tips?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

江心雾 2024-09-04 13:51:55

rsync 无法选择在下载之前或之后运行脚本来创建新文件名。

有多种方法可以实现此目的:

  1. 确保源文件位于不同的目录中,并相应地将文件系统挂载到目标上。

  2. 将文件下载到一处,然后从那里分发它们。

  3. 每天将文件下载到不同的文件系统

  4. 使用平衡文件系统(RAID5、集群文件系统、btrfs 或 ceph)

rsync has no option to run a script before or after a download to create a new filename.

There are several ways to achieve this:

  1. Make sure the source files are in different directories, and mount the filesystems on the destination accordingly.

  2. Download the files into one place and then distribute them from there.

  3. Download the files into a different filesystem every day

  4. Use a balancing filesystem (RAID5, filesystems for clusters, btrfs or ceph)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文