Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

EXTRA_ARGS: --filter bug

bobby j August 15, 2022

There seems to be an issue with proper escaping of filters in the rsync EXTRA_ARGS variable.

  • Version: atlassian/rsync-deploy:0.7.1
  • log:
    INFO: Executing the pipe...

    INFO: Starting RSYNC deployment to server:$THEME_DIR...

    rsync -rp --delete-after --filter='P assets/css' --exclude-from=project/rsync-excludes ./ user@server:$THEME_DIR

    Unknown filter rule: `'P'

    rsync error: syntax or usage error (code 1) at exclude.c(927) [client=3.1.3]

    ✖ Deployment failed.
  • steps to reproduce:
    • Try to run --filter inside the EXTRA_ARGS variable

1 answer

1 accepted

0 votes
Answer accepted
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 19, 2022

@bobby jenrow hi. Thanks for your feedback.

Your error is due to whitespace in your filter command.
Try this in your pipe variables:

script:
- pipe: atlassian/rsync-deploy:0.7.1
variables:
...
'EXTRA_ARGS_COUNT'
: 1,
'EXTRA_ARGS_0': "--filter=P assets/css"

 

or if you have more then one extra arg in example 2 args:

script:
- pipe: atlassian/rsync-deploy:0.7.1
variables:
...
'EXTRA_ARGS_COUNT'
: 2,
'EXTRA_ARGS_0': "--filter=P assets/css",
'EXTRA_ARGS_1': "--exclude=*2.txt"

 Double quotes is necessary.
We will update the README to provide this example as workaround for whitespaces.

Regards, Igor.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
loom essentials certification, loom training, get certified in loom, atlassian certification, loom async video, video messaging skills, atlassian learning, loom for teams, online certification, loom badge, loom for business, atlassian education

Get Certified in Loom! 🧑‍🎓

Time to up your Loom game! The new Loom Essentials Certification is here! Show off your skills, learn pro tips, and get officially recognized. Perfect for taking your video messaging to the next level.

Learn more
AUG Leaders

Atlassian Community Events