@@ -45,40 +45,40 @@ stage to your list of stages in dvc.yaml.
45
45
46
46
``` dvc
47
47
$ dvc run -n download_file
48
- -d s3://mybucket/data \
49
- -o data \
50
- aws s3 cp s3://mybucket/data data
48
+ -d s3://mybucket/data.txt \
49
+ -o data.txt \
50
+ aws s3 cp s3://mybucket/data.txt data.txt
51
51
```
52
52
53
53
### Microsoft Azure Blob Storage
54
54
55
55
``` dvc
56
56
$ dvc run -n download_file
57
- -d azure://my-container-name/data \
58
- -o data \
57
+ -d azure://my-container-name/data.txt \
58
+ -o data.txt \
59
59
az storage copy \
60
60
-d data.json \
61
61
--source-account-name my-account \
62
62
--source-container my-container-name \
63
- --source-blob data
63
+ --source-blob data.txt
64
64
```
65
65
66
66
### Google Cloud Storage
67
67
68
68
``` dvc
69
69
$ dvc run -n download_file
70
- -d gs://mybucket/data \
71
- -o data \
72
- gsutil cp gs://mybucket/data data
70
+ -d gs://mybucket/data.txt \
71
+ -o data.txt \
72
+ gsutil cp gs://mybucket/data.txt data.txt
73
73
```
74
74
75
75
### SSH
76
76
77
77
``` dvc
78
78
$ dvc run -n download_file
79
- -d ssh://[email protected] /path/to/data \
80
- -o data \
81
- scp [email protected] :/path/to/data data
79
+ -d ssh://[email protected] /path/to/data.txt \
80
+ -o data.txt \
81
+ scp [email protected] :/path/to/data.txt data.txt
82
82
```
83
83
84
84
⚠️ DVC requires both SSH and SFTP access to work with remote SSH locations.
@@ -91,10 +91,10 @@ Please check that you are able to connect both ways with tools like `ssh` and
91
91
92
92
``` dvc
93
93
$ dvc run -n download_file
94
- -d hdfs://[email protected] /data \
95
- -o data \
94
+ -d hdfs://[email protected] /data.txt \
95
+ -o data.txt \
96
96
hdfs fs -copyToLocal \
97
- hdfs://[email protected] /data data
97
+ hdfs://[email protected] /data.txt data.txt
98
98
```
99
99
100
100
### HTTP
@@ -103,18 +103,18 @@ $ dvc run -n download_file
103
103
104
104
``` dvc
105
105
$ dvc run -n download_file
106
- -d https://example.com/data \
107
- -o data \
108
- wget https://example.com/data -O data
106
+ -d https://example.com/data.txt \
107
+ -o data.txt \
108
+ wget https://example.com/data.txt -O data.txt
109
109
```
110
110
111
111
### Local file system path
112
112
113
113
``` dvc
114
114
$ dvc run -n download_file
115
- -d /home/shared/data \
116
- -o data \
117
- cp /home/shared/data data
115
+ -d /home/shared/data.txt \
116
+ -o data.txt \
117
+ cp /home/shared/data.txt data.txt
118
118
```
119
119
120
120
## Example: DVC remote aliases
@@ -130,9 +130,9 @@ For example, for an HTTPs remote/dependency:
130
130
``` dvc
131
131
$ dvc remote add example https://example.com
132
132
$ dvc run -n download_file
133
- -d remote://example/data \
134
- -o data \
135
- wget https://example.com/data -O data
133
+ -d remote://example/data.txt \
134
+ -o data.txt \
135
+ wget https://example.com/data.txt -O data.txt
136
136
```
137
137
138
138
Please refer to ` dvc remote add ` for more details like setting up access
0 commit comments