Synchronize files with rsync
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.
Example pipeline 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.
Configure pipeline in Buddy
- Create a new project in Buddy and select your Git provider.
Creating a new project
- Add a new pipeline and configure the details: name, trigger mode, and a branch from which you want to deploy.
Adding a new pipeline
Configure rsync deployment
- Look up and click Rsync on the action list:
Remote actions in Buddy
- The action has five configuration tabs:
- Rsync – here you select the source path, adjust recursion and compression parameters, and define files to ignore
- Target – here you provide the data of the server with which you want to synchronize
- Variables - here you can save server credentials as environment variables for increased security
- Conditions – here you configure the trigger conditions for which the action will run
- Options – here you define the action's name and behavior on failure and timeout
Rsync action configuration
- When ready, click Add this action to finish configuration.
Congratulations! You have just automated your rsync deployment. 🥳
Rsync options
The options below can be found in the Rsync tab of the action:
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 |
Last modified on December 12, 2023