Setting up sitecopy to auto-upload my changed files to my web server
I like working from a local copy of my files and then uploading them to my remote site when I'm ready. I just finished setting up sitecopy to do this. Here's what I did (Ubuntu 9.04) :
I installed sitecopy via Synaptic Package Manager. I created ~/.sitecopyrc with the contents shown in this blog posting, with my own local and remote paths filled in. Then,~$ chmod 600 .sitecopyrc
~$ mkdir 700 -m .sitecopy
~$ sitecopy --catchup myproject
~$ sitecopy --update myprojectNow, whenever I'm done editing any files, I do this to FTP the changes to my remote server. It asks me for my password, and then it uploads them.
~$ sitecopy --update myprojectAn alternative to sitecopy that I haven't tried is rsync. Supposedly it uploads only the changed parts of the files, and it does two-way syncing. I avoid anything with the potential to delete my local files, though. Note: sitecopy is better than having to upload the files manually but not ideal. I wish the files would automatically upload instantly upon save. But writing a bash script to do this is a task I will leave for another day.
Filed under //
development tools
Comments [1]