Direkt zum Hauptbereich

Posts

Es werden Posts vom Oktober, 2008 angezeigt.

Backup mit Rsync

rsync -rva --exclude="gemeinsame Dokumente/Videorecorder" --delete-excluded --delete-after "/home/" "stefan@192.168.0.30:Backup/" Parameter (auszug aus der manpage): -c, --checksum This changes the way rsync checks if the files have been changed and are in need of a transfer. Without this option, rsync uses a "quick check" that (by default) checks if each file's size and time of last modification match between the sender and receiver. This option changes this to compare a 128-bit MD4 checksum for each file that has a matching size. Generating the checksums means that both sides will expend a lot of disk I/O reading all the data in the files in the transfer (and this is prior to any reading that will be done to transfer changed files), so this can slow things down significantly. The sending side generates its checksums while it is doing the file-system scan that builds the list of the available files. The receiver generates its checksums when

Uhrzeit mit Zeitserver synchronisieren

Um diesen "Fehler" zu beheben muss folgendes installiert werden: ntp oder ntpdate - ich weiß nimmer welches der beiden packete notwendig ist

Prüfen ob ein Prozess noch läuft - Beispiel

Quelle: http://www.heise.de/netze/X-Window-Desktop-fernsteuern-per-Shell-Skript-und-VNC--/artikel/108532/3 function vnc_connect() { echo "Starte VNC-Server ..." ${X11VNC_PATH} ${VNCPAR} & x11vncpid=$! $XTERM -title "ct-Helferlein: Mit Strg-C beenden" \ -e tail -f ${X11VNC_DIR}/$LOGFILE & xdialogpid=$! # solang wie beide Programm laufen ... # sonst den Rest beenden while ps $x11vncpid > /dev/null \&& ps $xdialogpid > /dev/null do sleep 5 done if ps $x11vncpid > /dev/null ; then kill $x11vncpid else kill $xdialogpid fi }