Synchronize files with rsync
If you are new to Buddy, check out our quickstart guides that will tell you how to create build, test and deploy your type of application.
📚 Learn more about Rsync action features, integrations and alternatives.
Buddy turns deployments into a breeze, allowing you to remotely synchronize files on your servers on every push to branch. You can also sync manually on click, or recurrently on time intervals.
Pipeline example using Rsynch action
Configure rsync deployment
- Create a new project, select your Git provider and choose the repository with your project
- Add a new pipeline and configure the details: name, trigger mode, and branch from which you want to deploy
- Look up and click Rsync on the action list:
Rsynch action location
- Configure action details:
- select authentication mode and provide the details to your server
Configuring Rsync action
- select authentication mode and provide the details to your server
- When ready, click Add this action to finish configuration.
Click the Test button to verify connection details before saving the action.
Extra options
Click More options to reveal additional Rsync parameters:
Option | Flag | Description |
---|---|---|
Compress file data during the transfer | -z , --compress | Rsync compresses the file data, which reduces the size of transmitted data |
Archive mode | -a , --archive | Preserves all information about the file, such as timestamps and permissions |
Delete extraneous files | --delete | Tells rsync to delete extraneous files from the receiving side |
Recurse into directories | -r , --recursive | Tells rsync to copy directories recursively |
Transfer directories without recursing | -d , --dirs | Transfers directories without recursing |
What you need to know
- You can use environment variables to store authentication details to your servers.
- You can use Ignore paths to exclude files for deployment in More Options.
Last modified on April 26, 2022