summaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)Author
2024-04-29default chunk size is filesize/(nr_conn*4) (Issue #20)Ryo Nakamura
and clean-up chunk_sz related parts.
2024-04-29manpage: improve descriptions for MaxStartupsRyo Nakamura
2024-04-29add available ciphers and hmacs on help print (#20)Ryo Nakamura
2024-04-26change default minimum chunk size to 16MB (Issue #20)Ryo Nakamura
2024-04-26support k, m, g for -s, -S, and -b options (Issue #20)Ryo Nakamura
2024-04-26connect SSH before starting copy threads in resume transferRyo Nakamura
The first ssh connection attempt intends to get ssh password/passphrase for following ssh connections spawned by copy threads (Issue #17 and #18).
2024-04-14add -J proxyjump option (#15)Ryo Nakamura
2024-04-12add -o SSH_OPTION optionRyo Nakamura
2024-04-11drop -H disable host key checking optionRyo Nakamura
It can be done by ssh_config instead.
2024-04-10fix bitrate factor should be 1 when unit is not specifiedRyo Nakamura
2024-04-10add -L limit bitrate option (#14)Ryo Nakamura
2024-02-20update doc for checkpointRyo Nakamura
2024-02-18update console output and docRyo Nakamura
2024-02-18add -W and -R option for resume checkpointRyo Nakamura
2024-02-17add checkpoint.c and .hRyo Nakamura
2024-02-11cleanup mscp_scan_thread related codesRyo Nakamura
2024-02-07add -4 and -6 options to use either IPv4 or IPv6Ryo Nakamura
2024-02-07cleanup error message handlingRyo Nakamura
The top-level funtion in a thread should print errors using priv_get_err(), while lower-level functions should set error messages using priv_set_err() except that error mesesages should be printed immediately, e.g., under walk_src_path().
2024-02-06add .clang-format from Linux kernel and format sourcesRyo Nakamura
The exception is that ColumnLimit is 90.
2024-02-06refactor error message-related functionsRyo Nakamura
split message print fuctions (mpr_*), strerrno, and mscp_get/set_error into print.c/h and strerrno.c/h. ToDo: revise usages of priv_set_errv and pr_* functions.
2024-02-06add -p option, preserving file timestampsRyo Nakamura
2024-02-06add two env vars to pass password/keyphrase (#9)Ryo Nakamura
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-05passing options via pointers in mscp_ssh_optsRyo Nakamura
We do not need static buf because we have already dropped python biding support.
2024-02-04do not passing msg_fp via mscp optsRyo Nakamura
instead, mpr_* functions print messages to stdout or stderr directly.
2024-01-18add SPDX-License-Identifier to source filesRyo Nakamura
2023-11-25add -P, equivalent to -p for just compatibilityRyo Nakamura
and add a test case for -p and -P
2023-11-25add -I interval optionRyo Nakamura
-I INTERVAL option inserts sleep for interval (seconds) between SSH connection attempts (issue #7).
2023-11-01fix parsing user@host:path.Ryo Nakamura
This commit fixes issue #6. Now mscp command correctly parses [x::x] IPv6 address notation in hostname.
2023-11-01main: adopt rolling average of recent eight bps values to calculate ETARyo Nakamura
2023-11-01main: call only mscp_stop() when receives sigintRyo Nakamura
2023-11-01write total transferred bytes and number of filesRyo Nakamura
at the end of output when serverity is notice.
2023-11-01print 1st decimal point in the progress barRyo Nakamura
2023-11-01add -g option to specify TCP cc algorithmRyo Nakamura
This commit introduce SSH_OPTIONS_CCALGO option to the libssh patch and add -g CONGESTION option to mscp.
2023-08-04fix usage: "none" is not supported for -FRyo Nakamura
2023-08-04introduce git-based versioningRyo Nakamura
MSCP_BUILD_VERSION (`git describe --tags --dirty --match "v*"`) is passed through include/mscp_version.h.in and cmake. When git is failed, use VERSION file instead (for building from source tar balls that excludes .git).
2023-08-04add -F ssh_config optionRyo Nakamura
2023-05-07mscp: maintain mscp_thread structs in listRyo Nakamura
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-04-05main: add a white space to the elapsed time outputRyo Nakamura
It adjusts the position of XX:XX in elapsed timeou output.
2023-04-05main: print elapsed time instead ETA at the endRyo Nakamura
2023-03-15rename mscp_prepare to mscp_scanRyo Nakamura
2023-03-15mscp: add -u max_startups option.Ryo Nakamura
pymscp also accepts keyword 'max_startups' (int).
2023-03-15cleanup message print functionsRyo Nakamura
2023-03-13mscp_prepare() scans source paths in a thread.Ryo Nakamura
This commit runs mscp_prepare() in a pthread. mscp copy threads run aysnchronously with mscp_prepare(). So, when mscp_prepare() has not finished yet (due to too many source files), we can start to copy files.
2023-03-11move direction from mscp_opts to mscp_init argumentRyo Nakamura
2023-03-10fix uninitialized dst_path_is_dir boolRyo Nakamura
2023-03-04fix dryrun handling on main.cRyo Nakamura
2023-03-04remove sigalrm. integrate print messages and progress barRyo Nakamura
2023-03-04tiny fix for clang warningRyo Nakamura
2023-03-04use setitimer instead of alarm, and print message.Ryo Nakamura
print_stat now prints messages per interval. ToDo: - realtime message printing - use timer_create instead of setitimer (mscOS has different one)
2023-03-04compilable on ubuntuRyo Nakamura