You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-20Lines changed: 22 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,13 @@
1
-
# Warp-CLI - _Alpha v2.1_
1
+
# Warp-CLI - _Alpha v2.1_
2
2
TLDR: Warp is a CLI tool designed to make interacting with Facebook's [Warp Speed Data Transfer (WDT)](https://github.com/facebook/wdt) pain-free.
3
3
4
4
## Abstract
5
5
[WDT](https://github.com/facebook/wdt) is designed to provide the highest possible speed when transferring files(to be only hardware and network limited). WDT provides many advantages over most file transfer protocols including: native concurrency, end-to-end encryption, IPV6 support, and the ability to easily achieve +40Gbit speeds when supported. Unlike most file transfer solutions (Except [NORM](https://www.nrl.navy.mil/itd/ncs/products/norm)) WDT provides a native parallel solution for transferring files by separating files into chunks then queuing them across an arbitrary number of threads and TCP connections. In most cases, file transfer times are dramatically reduced compared to traditional methods like FTP or HTTP.
6
6
7
-
While WDT provides several benefits, it requires comparatively lengthy build process. Additionally, if you are already using a modified version of SSH such as [HPN-SSH](https://www.psc.edu/hpn-ssh), you are likely to see smaller performance gains. Since WDT is designed to fully saturate even the highest-end enterprise hardware, it is likely to overwhelm your network. Please consider this when transferring more than a 1TB of files.
7
+
While WDT provides several benefits, it requires a comparatively lengthy build process. Additionally, if you are already using a modified version of SSH such as [HPN-SSH](https://www.psc.edu/hpn-ssh), you are likely to see smaller performance gains. Since WDT is designed to fully saturate even the highest-end enterprise hardware, it will overwhelm your network. Please consider this when transferring more than a 1TB of files.
Click the above link to get a detailed comparison of WDT performance compared to traditional file transfer protocols.
10
11
11
12
## Design
12
13
Warp-CLI is mainly a wrapper for the limited existing [CLI app provided by WDT](https://github.com/facebook/wdt/wiki/Getting-Started-with-the-WDT-command-line). While the tool works extremely well, building performant commands for daily use is often unwieldy.
@@ -21,8 +22,8 @@ Warp-CLI shortens this command to:\
21
22
22
23
Warp.py can also be imported into any python3 script and then used independently of the CLI to send and receive directories.
23
24
24
-
## Usage
25
-
Warp-CLI features a number of shortcuts that attempt to make sending files as trivial and intuitive as possible.
25
+
## CLI Usage
26
+
Warp-CLI features several shortcuts that attempt to make sending files as trivial and intuitive as possible.
26
27
27
28
### Transfer Modes
28
29
Warp-CLI provides three core transfer modes:
@@ -34,61 +35,62 @@ Warp-CLI provides three core transfer modes:
34
35
`warp -p /dir/to/push dest_ssh /dir/to/receive`
35
36
36
37
### Flags
37
-
-`-tr, --threads` - default=8: In most cases, 8 threads is sufficient to saturate the connection. You may want to raise or lower this depending on your hardware.
38
-
-`-ri, --report_interval`- default=5000: This limits the heartbeat report to 5000 milliseconds(5 seconds).
39
-
-`-ts, --throttle_speed` - default=-1: This setting throttles the transfer to an average mbytes per second.
40
-
-`-ow, --overwrite` - default=false: Allow the receiver to overwrite existing files.
38
+
-`-tr, --threads`: default=8: You may want to raise or lower this depending on your hardware.
39
+
-`-ri, --report_interval`: default=5000: This limits the heartbeat report to 5000 milliseconds(5 seconds).
40
+
-`-ts, --throttle_speed`: default=-1: This setting throttles the transfer to an average mbytes per second.
41
+
-`-ow, --overwrite`: Allow the receiver to overwrite existing files.
42
+
-`-sym, --follow_sym`: Let WDT follow symlinks during transfer.
41
43
42
44
### Macros
43
45
Warp-CLI also includes a macro system for repeating custom transfers with a single command. Macros are stored transfer commands (stored in ~/warp-cli/macros) that are invoked with `warp -m macro_name`.
- -d, --daemon: Start a permanent receiver daemon on a local directory and export a file containing connection meta-data.\
61
63
`warp --daemon /dir/to/receive`
62
64
- -i, --install: Attempt to install WDT and dependencies.\
63
65
`warp --install`
64
-
- -ri, --remote_install: Attempt to install WDT and dependencies on a remote machine.\
65
-
`warp -ri ssh.alias /dir/to/install`
66
+
- -ir, --install_remote: Attempt to install WDT and dependencies on a remote machine.\
67
+
`warp -ir ssh.alias /dir/to/install`
66
68
- -rm, --uninstall: Uninstall Warp-CLI and config files.\
67
69
`warp --uninstall`
68
70
69
71
## Setup - _STILL UNDER DEVELOPMENT_
70
-
Since WDT requires multiple dependencies, Warp-CLI attempts to provide a fully automated installation process for as many linux flavors as possible. If your flavor is not supported, please refer to the [manual install documentation](https://github.com/facebook/wdt/blob/master/build/BUILD.md). Once you install WDT and its dependencies Warp-CLI will function normally.
72
+
Since WDT requires multiple dependencies, Warp-CLI attempts to provide a fully automated installation process for as many Linux flavors as possible. If your flavor is not supported, please refer to the [manual install documentation](https://github.com/facebook/wdt/blob/master/build/BUILD.md). Once you install WDT and its dependencies Warp-CLI will function normally.
71
73
72
74
### Automatic Installation
73
75
To install WDT and Warp-CLI automatically on your machine:
**So far, automatic installation is available on:**
79
81
- Arch Linux
80
82
- Ubuntu 19.xx and 18.xx Workstation and Server
81
83
- Debian 10.x and 9.x
82
84
- Fedora 30, 29 and 28 Workstation and Server
83
85
84
-
WDT requires CMAKE version > 3.2 or greater, making it incompatible on:
85
-
- CentOS 7
86
-
- Debian 8
87
-
88
86
### Uninstall
89
87
Warp-CLI will remove itself from the machine but WDT will remain installed.\
90
88
`warp --uninstall`
91
89
90
+
### WDT Incompatible OS's
91
+
WDT requires CMAKE version > 3.2 or greater, making it incompatible on:
92
+
- CentOS 7
93
+
- Debian 8
92
94
93
95
### OpenSSH for URL Sharing
94
96
Warp uses ssh to securely share connection URLs via a standard Linux pipe. It expects the use of an RSA key, which does not require a user password. While it is possible to use PAM authentication or key passwords, I have not yet added this as a feature.
parser.add_argument("-ri", "--report_interval", default="3000", metavar='INT', help="Update interval in milliseconds for transfer report updates.")
91
91
parser.add_argument("-ts", "--throttle_speed", default="-1", metavar='INT', help=" Throttle the transfer to an average mbytes per second.")
92
92
parser.add_argument("-ow", "--overwrite", action='store_true', help="Allow the receiver to overwrite existing files in a directory.")
93
-
parser.add_argument("-sym", "--follow_sym", action='store_false', help="Let WDT follow symlinks during transfer.")
93
+
parser.add_argument("-sym", "--follow_sym", action='store_true', help="Let WDT follow symlinks during transfer.")
94
94
parser.add_argument("-cp", "--custom_parms", default="", metavar="-CUSTOM_PARM value", help="Inject any additional parameters available in `wdt --help`.")
95
95
### utilities
96
96
parser.add_argument("-d", "--daemon", metavar='/DIR/FOR/DAEMON', help="Start a receiver daemon on a directory. Returns a connection url to ~/warp-cli/macros.")
0 commit comments