I have a live branch that needs to be pulled (git pull) on the live server, but the live server cant acess bitbucket.
While I have ssh access on the remote server using login/pass (cant use ssh-key), what is the best way to syncronize the specified branch on the remote server (updating and deleting changed files)?
I solved this problem using rsync.
With rsync I can check witch files were modified and are different on the remote server.
I also created a file named build.exclude.sync witch contains every dir I want to skip, and at terminal I can use:
I used rsync with Apache Ant to automate the build proccess. At my build.xml file: