Skip to content

ffabbr/ftp-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

ftp-push

Upload the current directory to a folder on your FTP server via a simple TUI.

Run ftp-push from any local folder. It connects to your FTP server, lets you pick a remote destination with fzf, and mirrors the directory using lftp.

Dependencies

  • lftpbrew install lftp
  • fzfbrew install fzf

Installation

git clone https://github.com/ffabbr/ftp-push.git
cd ftp-push
./install.sh

This copies bin/ftp-push to ~/.local/bin/. Make sure that directory is on your PATH.

Configuration

ftp-push reads its config from ~/.config/wp-local-push/config. The config file should define:

LFTP_BOOKMARK="your-lftp-bookmark"
REMOTE_WP_ROOT="/"

Set up an lftp bookmark with your FTP credentials:

lftp -e "bookmark add myserver ftp://user@host; quit"

Usage

ftp-push              # upload current directory (select remote folder interactively)
ftp-push --delete     # mirror with deletion of extra remote files
ftp-push --dry-run    # preview what would be uploaded
ftp-push doctor       # check dependencies and connection

License

MIT

About

Upload the current directory to an FTP server via a simple TUI (lftp + fzf)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages