글을 쓰는 목적
패치 파일을 올리고 싶었다. 무료 FTP를 찾던 도중 NcFTP, LFTP를 찾았는데, LFTP가 FTP 서버내의 폴더 및 파일을 삭제하기 편했다. 그 사용 방법을 적기 위해 글을 쓴다.
작업 환경
UE4.26
LFTP 장단점
장점
인터넷에 무료 FTP를 검색해 보니 FTP, NcFTP, WinFTP, LFTP 가 있었는데 그 중 자동화 가능하고 폴더 및 파일을 삭제하기 편한 FTP는 LFTP가 제일 쉬웠다.(다른건 내가 제대로 사용 못한 걸 수도 있으니 참고)
단점
LFTP 접속후 CLI가 나오고 명령어를 쓰면 글자가 깨지는 현상이 있었다.
사용 방법
설치
PowerShell에서 Cocho down 후
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Install Choco 를 통해서 설치
choco install lftp
폴더 삭제, 폴더 생성, 디렉토리 업로드
C:\Folder\PatchFolder 폴더를 FTP Server의 Folder\PatchFolder에 올린다고 가정 했을 때
cd C:\MyFolder\PatchFolder
lftp -e "rm -rf /FTPFolder; mkdir -pf /FTPFolder; cd /FTPFolder; mirror -R PatchFolder /MyFolder/PatchFolder; bye" -u UserName,Password FTPServer.com
참고
https://evandde.github.io/chocolatey/
Windows용 패키지 관리자 Chocolatey(choco) 설치 및 이용하기 | EvaNote
이 글에서는 Windows용 패키지 관리자인 Chocolatey(약칭: choco)를 설치하고 이용하는 방법에 대해 알아봅니다.
evandde.github.io
https://nwgat.ninja/install-lftp-in-chocolately/
Install LFTP in Chocolately
Chocolatey NuGet is a Machine Package Manager, somewhat like apt-get, but built with Windows in mind. Install Chocolately @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/instal
nwgat.ninja
lftp: login, put file in remote dir and exit in a single command: proper quoting help
I want to use lftp -c to do an entire session in one go (as I'll be launching this from a script later on) and I managed with -e but that ofc leaves me with the interactive session which I don't wa...
unix.stackexchange.com
How to upload a directory recursively to an FTP server by just using ftp or lftp?
I am writing a Linux shell script to copy a local directory to a remote server (removing any existing files). Local server: ftp and lftp commands are available, no ncftp or any graphical tools. R...
serverfault.com
https://lftp.yar.ru/lftp-man.html
'개발' 카테고리의 다른 글
[UML] Plant UML (0) | 2022.05.23 |
---|---|
Android KeyStore 정보 확인 (0) | 2022.03.18 |
MacBook에서 iPhone 또는 iPad 에 케이블 연결시 계속 "신뢰하겠습니까?"가 떠서 정상적으로 연결이 안되는 현상 수정 방법 (0) | 2021.08.23 |
Window에서 Redmine 설치방법 (1) | 2020.05.04 |