Ryo Nakamura
5fad665c39
add test_quiet_mode
2025-02-27 14:53:27 +09:00
Ryo Nakamura
a5bca0ebe0
resume: fix increment idx only when path is added ( #16 )
2024-04-15 22:09:25 +09:00
Ryo Nakamura
4ce62079cf
add -J proxyjump option ( #15 )
2024-04-14 16:22:31 +09:00
Ryo Nakamura
a1b9afefe5
add -o SSH_OPTION option
2024-04-12 23:08:22 +09:00
Ryo Nakamura
59b90d80bd
drop -H disable host key checking option
...
It can be done by ssh_config instead.
2024-04-11 20:30:46 +09:00
Ryo Nakamura
2bfd599ad9
add -L limit bitrate option ( #14 )
2024-04-10 20:57:11 +09:00
Ryo Nakamura
07a6cbf039
chmod after truncate and setutimes on the remote side.
...
When the source file permission is r--r--r--, truncate and setutimes
AFTER chmod fail due to permission deined. So, do chmod after truncate
and setutimes.
2024-03-16 00:12:14 +09:00
Ryo Nakamura
0d248c5f6b
fix port tests and v6only test.
...
port test: sshd listens on 8022 and run mscp with -P 8022
v6only test: change remote name from localhost to ip6-localhost
2024-03-12 15:24:09 +09:00
Ryo Nakamura
f3a24e0047
add test cases for resume with checkpoint
...
Now mscp supports resume (#5 ) and (#10 )
2024-02-20 22:05:17 +09:00
Ryo Nakamura
ce376beeb9
avoid * in paths from two test cases for alpine
2024-02-11 22:05:04 +09:00
Ryo Nakamura
a828ca3f5a
change chunk_pool from list to pool
2024-02-11 21:28:03 +09:00
Ryo Nakamura
bfc955a9a7
change path_list to path_pool
2024-02-11 14:11:47 +09:00
Ryo Nakamura
b2628b54fb
add -4 and -6 options to use either IPv4 or IPv6
2024-02-07 15:14:27 +09:00
Ryo Nakamura
ff45d9d71b
add two env vars to pass password/keyphrase ( #9 )
...
MSCP_SSH_AUTH_PASSWORD passes a password, and MSCP_SSH_AUTH_PASSPHRASE
passes a passphrase for publickey auth. They enable avoiding interactive
password input. Test cases are also added.
2024-02-06 10:35:38 +09:00
Ryo Nakamura
d57ed4149d
drop python binding support
2024-02-04 16:18:27 +09:00
Ryo Nakamura
5cbf3ad648
fix wrong dst path for source path under '/'
...
When a source file path is /FILE, its dest path would be dst/ILE.
This commit fixes this issue (#8 ).
2024-01-18 12:59:49 +09:00
Ryo Nakamura
4b34118a88
add a test case test_copy_file_under_root_to_dir
...
Coping a file under / (root) to a remote directory causes
corrupted remote path (Issue #8 ).
2024-01-18 12:59:49 +09:00
Ryo Nakamura
2b71c4bf8c
add -P, equivalent to -p for just compatibility
...
and add a test case for -p and -P
2023-11-25 15:49:09 +09:00
Ryo Nakamura
0cf3acee20
add -I interval option
...
-I INTERVAL option inserts sleep for interval (seconds) between
SSH connection attempts (issue #7 ).
2023-11-25 15:17:33 +09:00
Ryo Nakamura
8e590da322
fix parsing user@host:path.
...
This commit fixes issue #6 . Now mscp command correctly parses
[x::x] IPv6 address notation in hostname.
2023-11-01 19:54:18 +09:00
Ryo Nakamura
53a560b130
fix test_e2e for ccalgo and tiny fix on test_dir_copy_single
2023-11-01 19:54:18 +09:00
Ryo Nakamura
bf74aa095a
add -g option to specify TCP cc algorithm
...
This commit introduce SSH_OPTIONS_CCALGO option to the libssh patch
and add -g CONGESTION option to mscp.
2023-11-01 19:54:18 +09:00
Ryo Nakamura
13ec652195
fix mscp_opendir, do not use tls_sftp, use sftp isntead.
...
The fixed issue causes mscp_opendir wrongly calls opendir() for
local when tls_sftp is NULL although sftp is not NULL.
2023-08-30 19:09:29 +09:00
Ryo Nakamura
24c1bc9149
do not set O_TRUNC when opening destination file.
...
It prevents `mscp localhost:hoge ~/hoge` from truncating the source
file. See https://bugzilla.mindrot.org/show_bug.cgi?id=3431 .
https://github.com/upa/mscp/issues/1
2023-08-04 15:06:14 +09:00
Ryo Nakamura
2773c7b4d6
add test for specifying ssh_config
2023-08-04 14:04:46 +09:00
Ryo Nakamura
fbc817213b
use pseudo glob/globfree for remote-glob when musl
...
musllibc does not implement GLOB_ALTDIRFUNC, so do not call
glob for remote sides when libc is musl.
test_e2e.py skips test_glob_src_path when running on alpine.
2023-08-03 21:59:54 +09:00
Ryo Nakamura
ba6f53d253
add glob for source paths
...
https://github.com/upa/mscp/issues/3
2023-08-03 20:26:13 +09:00
Ryo Nakamura
24e86f58d8
mscp: maintain mscp_thread structs in list
...
Instead of m->threads array, struct mscp_thread instanes are
maintained in m->thread_list. This enables stable counter access
via mscp_get_stats().
2023-05-07 21:05:05 +09:00
Ryo Nakamura
1bd832a135
Merge branch 'main' of github.com:upa/mscp
2023-03-26 01:50:00 +09:00
Ryo Nakamura
834407379d
fix error handling when scan thread failed.
...
set chunk pool to fill to invoke copy threads when scan failed.
2023-03-25 22:29:09 +09:00
Ryo Nakamura
3f00bd2c7b
test: set min_chunk_sz to 32768 on test_min_chunk
...
Page size of arm mac is 16384.
2023-03-22 18:00:52 +09:00
Ryo Nakamura
4ec877a290
test: add __repr__ to File
2023-03-15 23:23:14 +09:00
Ryo Nakamura
2fdfa7b830
test: add invalid kwargs test
2023-03-15 22:20:00 +09:00
Ryo Nakamura
a923d40ada
mscp: add -u max_startups option.
...
pymscp also accepts keyword 'max_startups' (int).
2023-03-15 21:53:34 +09:00
Ryo Nakamura
e2da5811ce
test: add test_python.py for testing python-mscp
...
Dockerfiles also adapt themselvs for testing python-mscp bindings.
2023-03-12 20:37:57 +09:00
Ryo Nakamura
d22c02b793
remove numpy from test, and fix compiling single binary mscp
2023-03-10 22:07:07 +09:00
Ryo Nakamura
363296f499
add mscp_ssh_opts and change -C optarg
2023-03-03 16:50:06 +09:00
Ryo Nakamura
dca0241824
add O_TRUNC when the first open() for a file
2022-11-18 22:30:34 +09:00
Ryo Nakamura
5e7aa774ca
fix when copy multiple sources and various tiny fixes
...
* when copying multiple sources, target must be directory
* add multi-src copy test and parametrize src/dst prefixes
* cleanup REAMDE (s/sessions/connections/g)
* make error output in copy functions simple
2022-11-18 20:20:19 +09:00
Ryo Nakamura
a69115a4dc
add -m coremask option
2022-11-15 19:57:53 +09:00
Ryo Nakamura
ffb1c45d0f
remove accidentally added Makefile
2022-11-06 00:20:32 +09:00
Ryo Nakamura
243bf1fa57
add -H option to disable host key check
...
tests use this option.
2022-11-05 22:46:02 +09:00
Ryo Nakamura
6f7f564315
update README for test
2022-11-05 21:29:26 +09:00
Ryo Nakamura
6e6e5066c7
create file at the remote although file size is 0
2022-11-05 19:13:53 +09:00
Ryo Nakamura
b8ee960732
add test_transfer_zero_bytes
2022-11-01 00:34:40 +09:00
Ryo Nakamura
7039b84c4f
capture retval from copy threads
2022-11-01 00:17:05 +09:00
Ryo Nakamura
07b9d8ca55
add ctest to run pytest
2022-11-01 00:02:34 +09:00
Ryo Nakamura
93b02300d5
add (not complete) end-to-end test with pytest
2022-10-31 23:27:28 +09:00