Comments on Maintaining Remote Web Sites With sitecopy (Debian Squeeze/Ubuntu 11.10)
Maintaining Remote Web Sites With sitecopy (Debian Squeeze/Ubuntu 11.10) sitecopy is a tool for copying locally stored web sites to a remote web server (using FTP or WebDAV). It helps you to keep the remote site synchronized with your local copy by uploading modified local files and deleting remote files that have been deleted on the local computer. This tutorial shows how you can manage your remote web site from your local Debian Squeeze/Ubuntu 11.10 desktop with sitecopy.
6 Comment(s)
Comments
Does it support SFTP?
No. sitecopy does NOT support SFTP.
For this reason, it's really quite unusable. Using FTP these days is idiotic, because it sends your credentials in cleartext over the internet. Moreover, sitecopy is unmaintained and abandoned now. It hasn't had any updates in years. Someone tried to add sftp to it a long time ago, but never got it working. I recommend using "lftp" to keep your website synchronized using SFTP.
Here's a small script I copied from somewhere and modified which should help you:
#!/bin/bash HOST="ftp.yoursite.com" PORT="2222" #set to your site's sftp port USER="username" PASS="password" #be sure to escape any special chars with a backslash LCD="~/website/" RCD="~/" lftp -c "open -u $USER,$PASS sftp://$HOST:$PORT; lcd $LCD; cd $RCD; mirror --reverse \ --delete \ --verbose \ --exclude-glob *.swp \ --exclude-glob .git/ \ --exclude-glob sessions/ \ --exclude-glob any-other-dirs-you-want-to-not-synchronize"
There seems to be an ssh/sftp patch here: http://www.nn.iij4u.or.jp/~tutimura/sitecopy/index.en.html
Hi! I made a simple replacement which supports SFTP: sitedeploy
(Sorry for my english)
In my ftp test, this line don't work:
remote ~/web/
error 450, no such file or directory
this work:
remote /web