

machine Ĭreate a folder to store the backup dataset in and make sure the appropriate user owns it.
#Paw for mac keep in sync with git file install
To do this, install lftp sudo apt install lftpĬreat a config file called ~/.netrc to store the FTP login credentials. Unfortunately, the website is an instance of WordPress so files change on the remote FTP host and need to be automatically brought in and committed to the Git repo.
#Paw for mac keep in sync with git file update
Automatically update a Git repo with changes from the remote FTP host It’s far from necessary but convenient never the less. Using Jenkins in this instance is actually quite a bit of fluff so you can even chop it out if you’d like. I don’t think it makes a lot of sense to run any of this on a workstation however it can be done.

All of the cron jobs and Jenkins projects run on Cato so anyone on my team can trigger deployments and work on the same projects and so on. Not so coincidentally, Cato runs Jenkins. Currently called Cato, affectionately name after a bad-ass butler. I do what I can to avoid manually interacting with production servers in an administrative capacity after they are setup and running so I have an extra laptop that sits quietly in the corner of my office acting as the intermediary. Execute a reverse mirror lftp script to push the local changes to the remote FTP host also deleting the files no longer relevant.Ignore the commits created by the cron task mirror script.

