fts-rest-transfer-submit.md 3.21 KB
Newer Older
1
2
% FTS-REST-CLI(1) fts-rest-transfer-submit
% fts-devel@cern.ch
3
% August 24, 2016
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# NAME

fts-rest-transfer-submit

# SYNOPIS

Usage: fts-rest-transfer-submit [options] SOURCE DESTINATION [CHECKSUM]

# DESCRIPTION

This command can be used to submit new jobs to FTS3. It supports simple and bulk submissions. The bulk
format is as follows:

```json
{
  "files": [
    {
      "sources": [
        "gsiftp://source.host/file"
      ],
      "destinations": [
        "gsiftp://destination.host/file"
      ],
      "metadata": "file-metadata",
      "checksum": "ADLER32:1234",
      "filesize": 1024
    },
    {
      "sources": [
        "gsiftp://source.host/file2"
      ],
      "destinations": [
        "gsiftp://destination.host/file2"
      ],
      "metadata": "file2-metadata",
      "checksum": "ADLER32:4321",
40
41
      "filesize": 2048,
      "activity": "default"
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
    }
  ]
}
```


# OPTIONS

-h/--help
:	Show this help message and exit

-v/--verbose
:	Verbose output. 

-s/--endpoint
:	Fts3 rest endpoint. 

-j/--json
:	Print the output in json format. 

--key
:	The user certificate private key. 

--cert
:	The user certificate. 

68
69
70
--capath
:	Use the specified directory to verify the peer

71
72
73
--insecure
:	Do not validate the server certificate

74
--access-token
Aris Angelogiannopoulos's avatar
Aris Angelogiannopoulos committed
75
76
77
78
:	IAM-XDC access token (supported only by some endpoints, takes precedence)

--target-qos
:   the target QoS that the destination has to have when the operation is finished
79

80
81
82
83
84
85
86
87
88
-b/--blocking
:	Blocking mode. Wait until the operation completes. 

-i/--interval
:	Interval between two poll operations in blocking mode. 

-e/--expire
:	Expiration time of the delegation in minutes. 

89
90
91
--delegate-when-lifetime-lt
:	Delegate the proxy when the remote lifetime is less than this value (in minutes)

92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
-o/--overwrite
:	Overwrite files. 

-r/--reuse
:	Enable session reuse for the transfer job. 

--job-metadata
:	Transfer job metadata. 

--file-metadata
:	File metadata. 

--file-size
:	File size (in bytes)

-g/--gparam
:	Gridftp parameters. 

-t/--dest-token
:	The destination space token or its description. 

-S/--source-token
:	The source space token or its description. 

-K/--compare-checksum
117
118
119
120
:	Deprecated: compare checksums between source and destination. 

-C/--checksum-mode
: 	Compare checksums in source, target, both or none.
121
122
123
124
125

--copy-pin-lifetime
:	Pin lifetime of the copy in seconds. 

--bring-online
126
127
128
129
:	Bring online timeout in seconds.

--timeout
: Transfer timeout in seconds. 
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145

--fail-nearline
:	Fail the transfer is the file is nearline. 

--dry-run
:	Do not send anything, just print the json message. 

-f/--file
:	Name of configuration file

--retry
:	Number of retries. If 0, the server default will be used. If negative, there will be no retries. 

-m/--multi-hop
:	Submit a multihop transfer. 

146
147
148
--cloud-credentials
:	Use cloud credentials for the job (i. E. Dropbox). 

149
150
151
152
153
154
155
156
157
--nostreams
:	Number of streams

--ipv4
:	Force ipv4

--ipv6
:	Force ipv6

158
159
160



161
162
163
164
165
166
167
168
169
170
171
# EXAMPLE
```
$ fts-rest-transfer-submit -s https://fts3-devel.cern.ch:8446 gsiftp://source.host/file gsiftp://destination.host/file
Job successfully submitted.
Job id: 9fee8c1e-c46d-11e3-8299-02163e00a17a

$ fts-rest-transfer-submit -s https://fts3-devel.cern.ch:8446 -f bulk.json
Job successfully submitted.
Job id: 9fee8c1e-c46d-11e3-8299-02163e00a17a

```