4 Star 8 Fork 7

matrixy / squeeze

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

squeeze 文件压缩传输

客户端遍历文件,将数据压缩传输到服务器端,服务器一边接收一边解压。可用于大文件传输,日志文件的转移,通过在线压缩传输的方法,以达到时间换空间的目的。

sender客户端

参数

  1. --level= 压缩级别,0-9
  2. --threads= 压缩线程数
  3. --bandwidth= 带宽限制,单位可以是k、m、g
  4. --method= 压缩方式,如zip或7zip(目前只支持zip)
  5. --receiver= 接收方,格式如:IP/域名:端口
  6. 文件或目录名,可以是一个或多个文件、目录,目录将遍历其下全部的文件及路径

注意,带宽限制表示的是传输速率的上限,通常会受接收方的处理速度及带宽等影响,而通常会导致无法达到设定的上限。

receiver接收服务器端

  1. 配置项见配置文件/src/main/resources/conf.properties
  2. 服务器端支持单会话连接,多会话连接可能会导致IO、CPU负载过高,影响到其它应用。
Copyright [2019] [matrixy] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

一边压缩一边传输文件的小工具 展开 收起
Java
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/matrixy/squeeze.git
git@gitee.com:matrixy/squeeze.git
matrixy
squeeze
squeeze
master

搜索帮助