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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

atlassian/ftp-deploy:0.3.2 don't sync subfolders

Hi,

I'm using atlassian/ftp-deploy to automatically deploy my code to my web server.

If I made a change to a file in the main folder, changes are mirrored, but if I change a file in the subfolder, changes aren't mirrored.

After a run of the pipeline, the subfolders are set in mod 755 and I can't even change the files by web (have to change permissions with FileZilla)

When I remove the subfolder, the next run of the pipeline recreates the folder and pushes the files

The logs says always the same thing, if file is pushed or not:

Mirroring directory `comicsJavascript'
Removing old file `comicsJavascript/comicsURL.js'
Transferring file `comicsJavascript/comicsURL.js'
Finished transfer `comicsJavascript/comicsURL.js' (1.4 KiB/s)
Finished mirror `comicsJavascript'
Mirroring directory `comicsPHP'

In this case, comicsJavascript/comicsURL.js was not updated...

What have I to do to make subfolders not change to 755 and update files inside of them?

1 answer

0 votes

Hi @nicolazunino ,

I suggest using rsync-deploy pipe in your case. 

Rsync is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination.

Also to run any commands on the remote you can use ssh-run pipe .

Suggest an answer

Log in or Sign up to answer
TAGS
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