Wednesday, 15 October 2008

Deleting extraneous files from destination: rsync

There were some reported non-functioning --delete flag when using rsync in syncronizing two filesystems/locations. This may occur due to failures or errors during rsync tries to sync zero size files. One simple work around for this is using --ignore-errors flag. Some examples for taking backup of user directory:

rsync -vaz -e ssh --delete --ignore-errors user@host:/home/user/ local_dir/
rsync -vaz --delete --ignore-errors /home/user/ /media/disk/backup_dir/

Thursday, 14 August 2008

TCL Bad Code Error

Using tcl extension would be quite reasonable to write a flexable code. How ever if you use parse command set and TCL_OK as a return, be sure that type of your function is int, otherwise tcl complains with a strange run time error, saying bad code. So, be sure about the correct return type.

Monday, 21 July 2008

Traffic Utilization on router high CPU usage.

Long time ago, I was trying to address traffic utilization issues on border routers. This is the summary of my communication with nsp mailing list [Traffic Utilization Summary].

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