I am unable to use spaces in `--rsync-path`. Tried these variants:
- EXTRA_ARGS as Array: `- "--rsync-path=sudo -u www-data rsync"`
- `"--rsync-path=sudo -u www-data rsync"`
- `--rsync-path=sudo -u www-data rsync`
- `--rsync-path="sudo -u www-data rsync"`
- `--rsync-path='sudo -u www-data rsync'`
Also you could check this answer if example in my first message will not help:
https://community.atlassian.com/t5/Bitbucket-questions/EXTRA-ARGS-filter-bug/qaq-p/2107584
Hi @Marvin Heilemann . Here is example with an EXTRA_ARGS as an array when you have multiple args or whitespace characters to cover cases with escaping.
script: - pipe: atlassian/rsync-deploy:0.12.0 variables: USER: 'ec2-user' SERVER: '127.0.0.1' REMOTE_PATH: '/var/www/build/' LOCAL_PATH: 'build' DEBUG: 'true' EXTRA_ARGS: - "--filter=P assets/css" # double quotes here are necessary - "--exclude=*.txt"
Are you sure you follow this example?
Provide us with the error details if you will still have this issue. Also you could see the generated rsync command in the logs.
Regards, Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This solution worked for me.
E.g.
EXTRA_ARGS:
- "-og"
- "--chown=apache:apache"
- "--chmod=D775,F664"
- "--rsync-path=sudo rsync"
Thanks @Igor Stoyanov!
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.