Hot folders and folder sync.
Both live under Automation. A hot folder watches one folder and sends each file once it has finished arriving. A folder sync keeps two folders the same on a schedule, one way or both ways.
Free mode runs one hot folder or folder sync in total. A license allows as many as the plan includes. In Free mode, hot folders and folder syncs pause and start again when a license is loaded. Nothing already stored is deleted because of that pause.
Places
A place is where automation sends files to or copies them from: a folder on this server, a folder a connected Farwing server shares with you, an SSH or SFTP server, an FTP or FTPS server, or a cloud bucket on Amazon S3 or a service that speaks S3. Places are listed under Automation in three groups: on this server, connected servers, and other servers and buckets.
Add an SSH, SFTP, FTP or bucket place yourself. Farwing checks the connection, then you choose the folder. SSH and SFTP sign in with a password or a private key. FTP and FTPS sign in with a password. Test checks that the server can be reached, including when that server is this one, and says what is missing if it cannot. An SFTP or FTP server that allows only a few sessions can be given a number of connections at once; every hot folder and folder sync using that place shares it.
Changed files: delta or full transfer
When a file that is already at a place changes, a delta transfer sends only the parts that changed, and a full transfer sends the whole file again. Which one a place uses depends on its kind, and the place, hot folder and folder sync screens show it under Changed files:
- A connected Farwing server: delta transfer, sending and copying back.
- SSH, with Farwing installed on that server: delta transfer when sending.
- A cloud bucket: delta transfer for files Farwing put there. A file something else changed is sent whole.
- SFTP, FTP and FTPS: full transfer. If Farwing is installed on an SFTP server, add it as an SSH place instead.
Delta transfer is used for files of 8 MiB and up; smaller files are always sent whole. The new file replaces the old one only once all of it has arrived.
Folders a connected server shares with you appear on their own, one place per folder, with its level as a badge. Nobody adds or edits these; they follow the connection. When a place cannot be used for something, the picker shows it greyed with the reason, for example “View only: can’t send here”.
Delete a place and Farwing first shows what is affected: the hot folders, folder syncs and rules that use it. You choose whether they are deleted too or kept paused until you choose another place.
Connected servers
To work with another Farwing server, an administrator connects the two under Admin, Connected servers. One administrator makes a connection code and chooses which folders to share, each with a level. The other enters the code and the first server’s address, checks the security code with them, and sees the folders shared before finishing. Either side can share folders back at any time. A code lasts 24 hours by default and works once.
| Level | The other server can |
|---|---|
| Drop off | Add files. It cannot see what is there. |
| View | See and copy files. |
| Edit | See, add and replace files. |
| Full | Everything Edit allows, and delete. |
Pause a connection to stop it for a while, or delete it. Deleting shows the places, hot folders and folder syncs that use it, and you choose whether they go too. The other server is told.
Hot folders
Add a hot folder with a name, the folder to watch, and the place files should go. Choosing the storage location itself watches all of it. Sub-folders are included. Farwing looks about every 10 seconds in a folder on the server's own disks, and about every 30 seconds in a bucket.
If the folder already has files, Farwing shows how many and how large, and asks once what to do with them: only send files that arrive from now on (the default), or send these too and then keep watching. The answer is shown on the hot folder’s page. A file that was already there and changes later is sent like any new file.
A file is sent only after it has stopped changing for the number of seconds you set, so a copy that is still being written is left alone.
Once the place confirms the file is stored, you can:
- Keep the file where it is. This is the default, and nothing can be lost.
- Move it into a sent folder.
- Delete it from the watched folder. You confirm that before it is saved.
Moving or deleting happens only after the place confirms the file is stored. Deleting the hot folder stops the watch. Files already in the folder are not touched.
When more than one hot folder watches the same file, the file is moved or deleted only after every one of them has sent it. If one moves and another deletes, the file is moved. A file moved into the sent folder is not sent again by the other hot folders.
When a file cannot be sent
A file that fails is tried again after 30 seconds, then 1, 2, 5 and 15 minutes, then every hour. After the hot folder's retry hours (24 unless you change them) it is no longer tried. It is listed under Files that need attention on the hot folder's page, with the reason and a Retry button. A file that changes starts again on its own.
A hot folder that sends to a folder on this server is held to that folder's storage quotas: the space and the storage location. A file that would go over one is not sent, and the reason says which quota is full. Free some room or raise the quota, then press Retry.
A file that changes while it is being sent is not moved or deleted. It is sent again once it stops changing. A file sent again replaces the hot folder's own earlier copy at the place, rather than being kept beside it under a new name. If the server restarts while a file is sending, the file is sent again.
To SFTP, SSH and FTP places, a file is written under a hidden name and gets its real name only when it is whole, so nobody at the other end picks up half a file.
Skip or pause a file
On the Transfers page, in the list of transfers in progress, and under Sending now, right-click a hot folder's or a sync's file, or open its … menu. Skip until the file changes stops it and leaves it alone until it changes. Pause stops it for 15 minutes, 1, 4 or 24 hours, or until you resume it. The stopped transfer is shown as cancelled, and the file is not moved or deleted.
Skipped and paused files are listed under Paused and skipped files on the hot folder's or sync's page, each with a Resume button. History on the same page shows each file sent and who skipped, paused or resumed it.
Folder sync
A folder sync compares a folder on this server with a folder at a place and copies what is new or changed. Sub-folders are included. Choose which way it copies:
- One way, here → there. Copies to the place. Nothing here changes.
- One way, there → here. Copies from the place to this server. Nothing there changes.
- Both ways. Copies changes and removals in each direction.
All three work with a folder on this server and with SSH, SFTP, FTP, FTPS and bucket places. The login or keys for the place need to be allowed to read files there to copy from there, and to write and delete files there to sync both ways. A connected server’s folder allows what its level allows:
- Drop off and Edit: here → there.
- View and Edit: there → here.
- Full: all three, and removals there.
A quick check compares size and the time a file was last changed. A place that does not report a time is compared by size. A full check also compares the file contents. In a one-way sync, if a file on the receiving side was changed there, you can keep that copy or replace it.
Both ways
Each run compares both folders with how they were after the last good
run. A file that is new or changed on one side is copied to the other.
A file removed on one side is moved into a .farwing-removed
folder on the other side, in a folder named for the day, and kept for
30 days. A file changed on one side and removed on the other is kept.
When both sides changed the same file, the sync does what you chose:
- Keep both (the default). The other side’s copy is kept next to it as
name (conflict, server, date).ext, on both sides. - This side wins.
- The other side wins.
- The newest change wins.
A pair of folders can have only one sync both ways. A second one is refused with the name of the first.
Removals and the safety stop
In a one-way sync, removing files on the receiving side is off until three things are true: you have previewed the sync with these settings, the receiving side allows removing, and you have confirmed that files removed on one side will be removed on the other. For a sync there → here, the receiving side is the folder on this server, so you need delete access to it. A preview copies nothing and shows what would be removed.
Every run that removes files has a safety stop. It cannot be switched off. The run stops before removing more than the percent or the number of files you set. If a side looks empty, Farwing copies what it can still read and removes nothing.
Schedule and speed
Choose how often it runs: every hour, every day, every week, or only when you ask. Run now starts a run without waiting. Preview run shows what would change. After a safety stop, review the report before you allow one more run. Deleting the sync stops future runs. Files already copied stay where they are.
Speed limits
A hot folder or folder sync can have its own speed limit, and can send the fastest way (several files at once) or one file at a time, in order. In order, a file that fails holds back the ones after it.
An administrator sets a limit for all automation under Admin, Transfers: a speed, how many files at once, and optional hours. While people are transferring, automation sends one file at a time so it does not crowd them out. When something is slower than expected, its page says what is limiting it.
Needs attention
When a hot folder, folder sync or connection stops working, it shows a count on its menu item and in the list at the top of the page. Each item says what happened, what it affects and how to fix it. It clears when the problem is fixed.
When a file should trigger something else
A hot folder and a folder sync move files. To run a command, call a webhook or send a message when files arrive, use event rules. A rule can run a tool you added to the image; see Adding tools.