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

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 Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

574 views 15 18
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