Menu

Tree [141599] master /
 History

HTTPS access


File Date Author Commit
 .github 2023-05-22 Khaliq Khaliq [7a00fc] fix: add new file
 cmd 2023-05-22 Khaliq Khaliq [14a465] feat: enable filename truncation in progressbar
 docs 2023-05-22 Khaliq Khaliq [f662bd] docs: add turncate information to docs
 internal 2023-05-22 Khaliq Khaliq [16b516] feat: add helper functions to cleanup code
 .gitignore 2023-05-22 Khaliq Khaliq [c41c54] chore: add site folde to ingore
 .goreleaser.yaml 2023-05-21 Khaliq Khaliq [456217] feat: add goreleaser config
 CODE_OF_CONDUCT.md 2023-05-19 Khaliq Khaliq [742d18] docs: add readme license and contrib guide
 CONTRIBUTING.md 2023-05-19 Khaliq Khaliq [742d18] docs: add readme license and contrib guide
 Dockerfile 2023-05-21 Khaliq Khaliq [ff8035] feat: add Dockerfile for build
 LICENSE 2023-05-19 Khaliq Khaliq [742d18] docs: add readme license and contrib guide
 README.md 2023-05-22 Khaliq Khaliq [141599] docs: update readme file
 go.mod 2023-05-19 Khaliq Khaliq [1671e4] feat: initial commit of ncp
 go.sum 2023-05-19 Khaliq Khaliq [1671e4] feat: initial commit of ncp
 install.sh 2023-05-22 Khaliq Khaliq [5918b9] feat: add install script
 main.go 2023-05-22 Khaliq Khaliq [6a0795] feta: add global flag for filename turncation
 mkdocs.yml 2023-05-21 Khaliq Khaliq [584501] feat: add mkdocs config

Read Me

GitHub Build Status Release Go Report Card GitHub issues License

DocumentationInstallationFeaturesUsageContributing

NCP (NFS Copy)

NCP is a file transfer utility that enables efficient copying of files to and from an NFS server. It offers a convenient way to transfer files between your local machine and an NFS server, supporting both upload and download operations.

📢 Note ncp only supports NFSv3

Features

  • Easy file transfer to and from an NFS server
  • Support for upload and download operations
  • Multi-architecture binaries available for installation (e.g deb, apk, rpm, exe)
  • Compatible with Windows and macOS operating systems
  • Option to specify UID and GID for write operations using a global flag
  • Display upload and download speeds in real-time.
  • Show the elapsed time for write operations.
  • Show total file size

NCP

Installation

Linux
# DEB
export NCP_VERSION="0.1.1"
wget -q https://github.com/kha7iq/ncp/releases/download/v${NCP_VERSION}/ncp_amd64.deb
sudo dpkg -i ncp_amd64.deb
# RPM
sudo rpm -i ncp_amd64.rpm
- AUR
yay -S ncp-bin

pamac install ncp-bin
Windows
scoop bucket add ncp https://github.com/kha7iq/scoop-bucket.git
scoop install ncp
Bash Install Script By default, ncp is going to be installed at `/usr/bin/`. Sudo privileges are required for this operation. If you would like to provide a custom install path, you can do so as an input to the script. For example, you can run `./install.sh $HOME/bin` to install ncp in the specified directory.
curl -s https://raw.githubusercontent.com/kha7iq/ncp/master/install.sh | sudo sh
or
curl -sL https://bit.ly/installncp | sudo sh
MacOS
brew install kha7iq/tap/ncp
Manual
# Chose desired version
export NCP_VERSION="0.1.1"
wget -q https://github.com/kha7iq/ncp/releases/download/v${NCP_VERSION}/ncp_linux_amd64.tar.gz && \
tar -xf ncp_linux_amd64.tar.gz && \
chmod +x ncp && \
sudo mv ncp /usr/local/bin/.

Alternatively you can head over to release pages
and download binaries for all supported platforms.

Docker

Docker container is also available on both dockerhub and github container registry.

latest tag will always pull the latest version available.

Docker
docker pull khaliq/ncp:latest
docker pull ghcr.io/kha7iq/ncp:latest
- Run
docker run khaliq/ncp:latest

Usage

Copying Files/Folders to NFS Server

To copy the _local/src folder to the NFS server with the IP address 192.168.0.80 and the NFS path data, use the following command:

ncp to --host 192.168.0.80 --nfspath data --input /src/backup.tar.gz

See Usage Documentation for more details

Contributing

Contributions, issues and feature requests are welcome!
Feel free to check
issues page. You can also take a look
at the contributing guide.

Issues

If you encounter any problems or have suggestions for improvements, please open an issue on GitHub.

License

NCP is licensed under the MIT License. Please note that it may use third-party libraries that have their own separate licenses. Refer to the individual licenses of those libraries for more information.


If you find this project useful, give it a ⭐️

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.