Configure access to a source: file system

To transfer data from an on-premises or private cloud file system (such as POSIX-compliant file systems, NFS, or SMB), you must install and configure Storage Transfer Service agents on machines with network access to the source files.

Prerequisites

Before configuring your transfer, ensure you have set up the following:

Local file system permissions

Transfer agents run inside Docker or Podman containers on your host machines. To enable agents to read your files:

  1. OS user permissions: Ensure the operating system user running the container has read (and execute on directories) permissions for all files and directories you plan to transfer.
  2. Mount directories: When installing your agents, mount the directories you want to copy into the container using the --mount-directories flag (or -v flags in Docker):

    gcloud transfer agents install --pool=AGENT_POOL_NAME \
      --mount-directories=/path/to/source/dir
    

To restrict which host directories agents can view, see Restricting agent directory access.

Performance and optimization

What's next