---
name: "rfcp"
section: "1"
platform: "linux"
package: "dpm"
version: "1.10.0-2+b3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/rfcp"
---

# rfcp(1)

Remote file copy

## NAME

rfcp - Remote file copy

## SYNOPSIS

**rfcp** \[ **-s** *size* \] \[ **-v2** \] *filename1* *filename2*\
 **rfcp** \[ **-s** *size* \] \[ **-v2** \] *filename* *directory*\

On Windows only:\
 **rfcp** \[ **-a** \] \[ **-b** \] \[ **-s** *size* \] \[ **-v2** \] **@***command\_file*

## DESCRIPTION

The remote file I/O copy program provides an interface to the **shift** remote file I/O daemon (rfiod) for transferring files between remote and/or local hosts. Each *filename* or *directory* argument is either a remote file name of the form:

-

  *hostname***:***path*

or a local file name (not containing the :/ character combination). The standard input is supported with the **-** character. Then directory in output is not supported.

## OPTIONS

- **-a**

  tells **rfcp** that the source file is ASCII text (Windows/NT only)

- **-b**

  tells **rfcp** that the source is a binary file (Windows/NT only)

- **-s** *size*

  If specified, only *size* bytes will be copied

- **-v2**

  If specified, forces the RFIO V.2 protocol. Otherwise, V.3 (streaming mode) is used.

## RETURN CODES

0	Ok.\
 1	Bad parameter.\
 2	System error.\
 3	Unknown error.\
 16	Device or resource busy.\
 28	No space left on device.\
 196	Request killed.\
 198	Stager not active.\
 200	Bad checksum.

## SEE ALSO

**[rcp(1)](/rcp/1.md),** **rfiod(1)**

## AUTHOR

**LCG Grid Deployment** Team
