Welcome to CP2TOTO! This tool is designed to streamline the process of transferring files from your local machine to a remote server using the Secure Copy Protocol (SCP). With a user-friendly terminal interface, CP2TOTO takes the hassle out of file transfers and even offers file conversion to optimize storage space on your server.
SCP, or Secure Copy Protocol, is a method for securely transferring files between a local host and a remote host or between two remote hosts. CP2TOTO leverages SCP to provide a seamless file transfer experience, complete with interactive selection and optional file conversion to the efficient H.265 mp4 format.
- Interactive File Selection: Choose exactly which files or folders you want to transfer with an easy-to-use interface.
- File Conversion: Convert your files to mp4 with H.265 codec on-the-fly for efficient storage.
- Automation: Save time with automated processes, reducing manual effort and the risk of errors.
Here's a step-by-step guide to get CP2TOTO up and running on your system:
- Clone the repository:
git clone https://github.com/patillacode/cp2toto.git
- Navigate to the project directory:
cd cp2toto
- Copy the
.env.sample
file to.env
and configure it with your settings:cp .env.sample .env # Edit the .env file with your preferred text editor
- Set up a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate
- Alternatively, you can use the
Makefile
to set up your environment and install dependencies:make install
To start using CP2TOTO, you can utilize the Makefile
commands for a simplified setup process. Follow these simple steps:
- Launch the script:
python cp2toto.py
- Use the interactive terminal interface to select the files or folders you wish to transfer.
- Choose whether to convert files to H.265 mp4 format before transfer.
- Confirm the transfer and let CP2TOTO handle the rest!
Example:
# Start the script
python cp2toto.py
# Follow the on-screen prompts to select and transfer your files.
If you encounter any issues, please check the following:
- Ensure you have Python 3.6 or higher installed.
- Verify that SCP is installed and configured on both your local and remote systems.
- Make sure ffmpeg is installed if you wish to use the file conversion feature.
We welcome contributions of all kinds! To contribute:
- Fork the repository.
- Create a new branch for your feature (
git checkout -b feature/AmazingFeature
). - Commit your changes (
git commit -m 'Add some AmazingFeature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or suggestions, feel free to reach out to us at https://github.com/patillacode/cp2toto.