Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Rsync cannot find exclude list

I'm getting this error when i'm using rsync's  `--exclude-from` option.

rsync: failed to open exclude file "./ignorelist.txt": No such file or directory (2)
rsync error: error in file IO (code 11) at exclude.c(1207) [client=3.1.3]

Here's my pipeline script:

- step:
- ls -la
- pipe: atlassian/rsync-deploy:0.4.3
DEBUG: 'true'
EXTRA_ARGS: '-avzh --exclude-from="./ignorelist.txt"'

Using `ls -la` i can clearly see the the ignorelist.txt file does exists.


On a side note, is it just me, or i really cannot paste multi-line code? The white space always got trimmed.

1 answer

1 accepted

0 votes
Answer accepted

Hello @rzky ,

  • as for the main question, let's investigate your root cause, because I can say exclude-from is supported by rsync-deploy pipe. When you see the pipeline running, look docker container params that it is running with. You will see the working dir the pipeline share it with pipe. Check that your file in that dir(not necessary in this root dir, rsync is working recursively)
  • look here at the example, how you could write your multi-line code Pipe multi line usage (Advanced examples)

Best regards, Galyna

Hi @Galyna Zholtkevych

Turns out it's a syntax problem. Removing the quotes from the `--exclude-from` param fixes the problem.

So, from this:

-avzh --exclude-from="./ignorelist.txt"

 To this:

-avzh --exclude-from=./ignorelist.txt
Like # people like this

@rzky Please mark the question as answered.

Just for reference: Similar issue/solution in Way to use "---include-from" in rsync deploy , quotes were as well the issue finding the file

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,320 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you