search for: rsync_gb01

Displaying 2 results from an estimated 2 matches for "rsync_gb01".

2011 Aug 01
1
--timeout=... lesson learned...
...arned and thought it maybe should be added to the man-pages. I thought my network connection was glitchy and hence set rsync up for --timeout=120 but I found out that I was actually causing the glitch with this script: #! /bin/sh - while true; do rsync -avz --progress --timeout=120 --delete /media/rsync_gb01/movies/ myserver:movies; sleep 120; done The problem: When rsync is checking large files it takes time to verify the content at both ends, so when using the option --timeout=TIME both source and destination must be capable of performing the check within the time window provided. For a 2.3 Gb file...
2011 Jul 13
0
How to call rsync client so that is detects that server has gone away?
...in/env python #wraps up rsync to synchronize two directories # ! -- should contain check of disk space using rsync -n option for drytest ! from subprocess import call import sys import time """this motivated rsync tries to synchronise forever""" source = "/media/rsync_gb01/movies/" #note the trailing slash! target = "bjorn at srv01:/home/bjorn/movies" rsync = "rsync" arguments = "-avz --timeout=60 --delete" cmd = "%s %s %s %s" % (rsync, arguments, source, target) def sync(): while True: ret = call(cmd, shell=True) if...