Tuesday 18 March 2008

Prototype Codes: memoproto

There are many nice books out there on Programming, such as ANSI C programming by Kernigan & Richie. Usually they lack complete working examples, and rather they tend to give parts of codes that are related to topic they describe. For that reason, I've just started to collect many working full examples in various languages. It is located on Google's code repository. [link] (Will update this link soon.)

Thursday 6 March 2008

Simple syncronization via ssh with rsync.

One can syncronize two different locations by using rsync via ssh or without ssh.
Here are the steps:

1. get from the other location
rsync -avuzb dir/mydir/ .

2. put into other location
rsync -Cavuzb . dir/mydir/

If one of the location is reachable via ssh then one ca write

rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/

Look at the man pages for more details. Actually -e flag is not needed.
(c) Copyright 2008-2024 Mehmet Suzen (suzen at acm dot org)

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License