Skip to content

wpdevelopment11/checknew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Checknew

Copy new files from the remote server to the local directory.

Gets the file list on the remote side by executing find through the ssh command. Copies files using the sftp command.

Only files that don't exist locally or have a different size are copied by default. Pass --check-time to copy files that are newer on the remote side.

This is only useful on Windows where rsync is hard to install, and where it doesn't work very well.

Usage: checknew.exe [--dry-run] [--check-time] [local] host:remote

If local is not provided, then the current working directory is used by default.