# Syncing files to and from Ray Cluster

**URL:** <https://discuss.ray.io/t/syncing-files-to-and-from-ray-cluster/2566>\
**Category:** Kubernetes\
**Created:** [June 18, 2021, 5:55am UTC](https://discuss.ray.io/t/syncing-files-to-and-from-ray-cluster/2566 "2021-06-18T05:55:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eg4l](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/eg4l/32/1150_2.png) [@eg4l](https://discuss.ray.io/u/eg4l)\
**Post date:** [June 18, 2021, 5:55am UTC](https://discuss.ray.io/t/syncing-files-to-and-from-ray-cluster/2566/1 "2021-06-18T05:55:05Z")

</div>

Pardon my lack of knowlegde.  
If I understand correctly when using Cluster Launcher I have and option to set file\_mounts and it syncs files to all nodes and then I can use ‘ray rsync-down’ to download files from Cluster head.

How could I do those things while the using Cluster Operator instead of Cluster Launcher?

---

<div class="post-metadata">

**Author:** ![Dmitri](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/dmitri/32/657_2.png) [@Dmitri](https://discuss.ray.io/u/Dmitri)\
**Post date:** [June 22, 2021, 5:48pm UTC](https://discuss.ray.io/t/syncing-files-to-and-from-ray-cluster/2566/2 "2021-06-22T17:48:36Z")

</div>

This is a great question - syncing files up can be handled using the “working\_dir” setting of Runtime environments.

Syncing files up can be handled using the working\_dir setting of runtime environments:  
[https://docs.ray.io/en/master/advanced.html#runtime-environments-experimental](https://docs.ray.io/en/master/advanced.html#runtime-environments-experimental)

I don’t think we currently have a built-in answer for syncing files down.  
I’ve opened a feature request:

> <https://github.com/ray-project/ray/issues/16615>
>
> \### Describe your feature request
> 
> The deprecated K8s cluster launcher support…ed syncing files from cluster to laptop, but the operator does not.
> 
> We may want a Ray-internal system for syncing files/directories down and between nodes.
> 
> For feature requests or questions, post on our Discussion page instead: https://discuss.ray.io/

---

<div class="post-metadata">

**Author:** ![Dmitri](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/dmitri/32/657_2.png) [@Dmitri](https://discuss.ray.io/u/Dmitri)\
**Post date:** [June 22, 2021, 11:45pm UTC](https://discuss.ray.io/t/syncing-files-to-and-from-ray-cluster/2566/3 "2021-06-22T23:45:08Z")

</div>

Come to think of it, `kubectl cp` is an option here.

---

<div class="post-metadata">

**Author:** ![eg4l](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/eg4l/32/1150_2.png) [@eg4l](https://discuss.ray.io/u/eg4l)\
**Post date:** [June 29, 2021, 3:40pm UTC](https://discuss.ray.io/t/syncing-files-to-and-from-ray-cluster/2566/4 "2021-06-29T15:40:40Z")

</div>

Sorry for my slow reply. Your answear helped me very much and I really do appreciate your help.
