Couchdrop offers you the ability to trigger workflows based on a time condition or by firing a webhook. These automated workflows can import files from a location and import them to another location on a scheduled basis, as well apply actions. These locations could be SFTP, SMB, SharePoint or other cloud storage. A common use case is for people to sync multiple external SFTP servers with their SharePoint or Google Drive.
An example of importing all files from an SFTP mounted endpoint (/ingestion) to SharePoint while encrypting the file with a .pgp prefix.
Schedules
Here you must configure the time when the schedule occurs. There is the option of 15 minute increments, hourly, daily, weekly or monthly and all times are UTC. You can also use a webhook provided once the workflow is saved.
Source Path
This is the location where files will scheduled to be pulled from. This aligns with your configured storage mount point under your Couchdrop storage dashboard. You must first have storage configured for both the source and destination locations., you may also enter subfolders.
An example could be a folder called export in an SFTP server mounted to '/sftp', so the source path would be /sftp/export.
Conditions
Conditions must match for an action to take place.
Condition | Description | Examples |
Filename Matches | Filter events strictly on a specific filename | *.txt, file*.txt, for any file use '*' |
File Change Time Older As | Only pull files that are older than [time in seconds] |
If backing up files and you only want to back up anything older than a week then use 604800 (1 week in seconds) |
Actions
Actions are the event themselves on the file.
Action | Description | Example |
Send Webhook | On an upload/download event send a webhook notification to a URI | https://hooks.slack.com/services/T000/B000/XXXXXXX |
Rename File | Rename a file or add a timestamp | {TIMESTAMP}-file1.txt |
Move File | Move the file(s) from the source to the destination, as well as have the ability to rename at the same time. Note: This will remove the file from the source. | /sharepoint/import/{EXISTING_NAME} |
Copy/Duplicate File | Copy the file(s) from the source, as well as have the ability to rename at the same time. | /dropbox/import/{TIMESTAMP}-{EXISTING_NAME} |
Delete File | Deletes the file on the source | On completion of an event you can delete the file(s) on the source platform |
Encrypt PGP | Encrypts the files using the public PGP key provided | |
Decrypt PGP | Decrypts the files using the private PGP key and passphrase provided |
Variables
Variable | Description |
{EXISTING_NAME} | Retains the original filename |
{TIMESTAMP} | Adds the current UNIX timestamp to the filename |
Click below to go to Couchdrop and Get Started