我正在尝试将大文件集(100个)复制到我的远程服务器。然而,使用'copy‘命令这个任务需要相当长的时间。稍微搜索一下,我就知道‘同步’是一个很好的选择。不幸的是,我当前的远程服务器没有'rsync‘,所以我也不能使用'synchronize’选项。
作为一种变通办法,我想在ansible主机中压缩文件夹,然后使用“unarchive”模块将其传输到远程服务器。
- name: Archive the folder
shell: zip <dest-zip-path> <path-to-folder>
delegate_to: local
我在jenkins工作区文件夹中有一个压缩文件,我试图通过ssh传输那个压缩文件,但是我得到了SSH: Transferred 0 file(s)。
我的配置在以下-
传输集源文件: my-files.zip
删除前缀:
远程目录:/home/my-file
我的控制台输出:
Started by user Mizanur Rahman
SSH: Transferred 0 file(s)
Build step 'Send files or execute commands over SSH' changed build result to SUCCESS
我正在尝试提取一个压缩文件,然后被远程用户下载。解压缩后,我将有一个安装包的脚本,但我需要使用压缩文件夹,远程用户没有7zip或类似的东西。
我有这个,但我一直有个错误-
$shell = new-object -com shell.application
$zip = $shell.NameSpace(“C:\name.zip”)
foreach($item in $zip.items())
{
$shell.Namespace(“C:\temp\name”).copyhere($item)
}
我所犯的错误在以下-
You cannot call a method on a null-va
我正在尝试使用TrueZip 7.7.3在Android4.3模拟器上打开压缩文件
这条线
TArchiveDetector ad = new TArchiveDetector("myext", new ZipDriver(IOPoolLocator.SINGLETON));
引发由java.nio.charset.UnsupportedCharsetException: IBM437 at java.nio.charset.Charset.forName(Charset.java:303) at de.schlichtherle.truezi