working @home @work by rsync
I have hard times. My work taking almost all my time. I'm free at eight o'clock, and should goto bed before midnight. I have a little time. What I need is a fast reliable mechanism to ensure I'm working on the same copy with my work computer and here at home.
Sync should be fast, when I came, I should issue a command and all my work should appear on my computer. Also I have svn system that I will open open access but my private stuff shouldnt go there. Thus I need a seperate process.
at home I rsync files there is huge exclude list,
the script I'm using to sync with live server is
cd ~/www
rsync -e ssh --delete-excluded --exclude=/sites/*/cache/ --exclude=/sites/*/files/ --exclude=*.zip --exclude=/ext/jqueryUI --exclude=/sites/matheiu/ -av erkintek@mornehir.com:nerkl/ nerkl_dreamhost/
and I send svn server using
svn ci -m ""
there is some logic needed to complete whole process smoothly.
Similar
New technique to win olimpics
At the 1968 Olympics, Dick Fosbury took the athletics world by surprise with an unusual high-jump technique.
Printing mysql_error
This is a code snipped to print mysql error.
If there is no error mysql_error returns null, thus if evaluates false and there is no output.
multiple ON DUPLICATE KEY UPDATE
Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.
multiple ON DUPLICATE KEY UPDATE
Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.
php unlink recursive
The shortest recursive delete possible.
<?php
/**
* Delete a file or recursively delete a directory
*
* @param string $str Path to file or directory
*/

Comments
Post new comment