I have a bitbucket pipeline setup to rsync to a server that hosts a Wordpress Site. The files on the server initially have a skeleton Wordpress site with a wp-config.php & wp-config-sample.php but all the other wp files will be sent over.
When I run my pipeline how do I make sure that the wp-config & wp-config-sample remain on the server after the pipeline has run but all new and modified files are sent. (I have wp-config.php in a gitignore so it's never sent over)
Pipeline code is here:
```
image: node:10.15.3
pipelines:
branches:
develop: #name of the development branch
- step:
script:
- pipe: atlassian/rsync-deploy:0.3.1
variables:
USER: $STAGING_USER
SERVER: ''
REMOTE_PATH: $STAGING_PATH
LOCAL_PATH: './'
EXTRA_ARGS: '-p --exclude-from=exclude-pipelines.txt'
- ssh $STAGING_USER@ "find $STAGING_FOLDER. -type d -print0 | xargs -0 chmod 0755"
- ssh $STAGING_USER@ "find $STAGING_FOLDER. -type f -print0 | xargs -0 chmod 0644"
```
I've found some of these flags but where do I incorporate them into what I have here?
Flags:
rsync -h -v -r -P -t
Thanks!
@Toby Onono hi. Please, check this post.
Regards, Igor
Hi @Toby OnonoHave you tried incorporating it in EXTRA_ARGS?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.