commands
keepuptodate
Watch a local directory and mirror its changes to the server.
Syntax
Section titled “Syntax”keepuptodate [switches] [<local-directory> [<remote-directory>]]Watches <local-directory> and its subdirectories. Each time something
changes, linscp waits until the directory has been quiet for half a
second, then uploads what is new or modified to the matching place under
<remote-directory>. Without arguments it uses the local and remote
working directories.
keepuptodate does not upload anything that existed before it started;
run synchronize remote first if the two sides differ.
Existing remote files are replaced without asking.
The command runs until you press Ctrl+C or an error occurs, so it is usually the last command in a script.
Switches
Section titled “Switches”| Switch | What it does |
|---|---|
-delete |
Remove a remote file or directory after it is deleted locally. |
-permissions=<mode> |
Give uploaded files these octal permissions, such as 644. |
-nopermissions |
Let the server choose the permissions of uploaded files. |
-speed=<KB/s> |
Cap the upload rate in kilobytes per second. |
-transfer=<mode> |
Use binary, ascii (convert line endings) or automatic mode. |
-filemask=<mask> |
Watch and upload only what this mask selects. |
-resumesupport=<on/off/KB> |
Upload to a temporary file first, always (on), never (off), or for files larger than the number of KB given. |
Affected by
Section titled “Affected by”reconnecttime (see option).
Examples
Section titled “Examples”keepuptodate -delete /home/alice/site /var/www/html