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:
branches:
develop:
- step:
script:
- ls -la
- pipe: atlassian/rsync-deploy:0.4.3
variables:
USER: $REMOTE_USER
SERVER: $REMOTE_HOST
REMOTE_PATH: $REMOTE_DIR
LOCAL_PATH: './'
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.
Hello @rzky ,
Best regards, Galyna
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.