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
- 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
- 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.
The options below can be found in the Rsync tab of the action:
|Compress file data during the transfer
|Rsync compresses the file data, which reduces the size of transmitted data
|Preserves all information about the file, such as timestamps and permissions
|Delete extraneous files
|Tells rsync to delete extraneous files from the receiving side
|Recurse into directories
|Tells rsync to copy directories recursively
|Transfer directories without recursing
|Transfers directories without recursing
Last modified on December 12, 2023