Lines Matching full:remote
1 """Compare local and remote dictionaries and transfer differing files -- like rdist."""
22 w - write different files to remote file system
23 c - create new files, either remote or local
24 d - delete disappearing files, either remote or local
31 remote = FSProxy.FSProxyClient(address, verbose)
32 compare(local, remote, mode)
33 remote._close()
50 def compare(local, remote, mode): argument
53 sums_id = remote._send('sumlist')
54 subdirs_id = remote._send('listsubdirs')
55 remote._flush()
60 print "getting remote sums ..."
61 sums = remote._recv(sums_id)
67 print repr(name), "only remote"
69 recvfile(local, remote, name)
74 rmtime = remote.mtime(name)
77 print "remote newer",
79 recvfile(local, remote, name)
83 sendfile(local, remote, name)
92 sendfile(local, remote, name)
98 subdirs = remote._recv(subdirs_id)
105 print "Remote subdirectory", repr(name), "not found locally"
125 remote.cd(name)
126 compare(local, remote, mode)
127 remote.back()
130 def sendfile(local, remote, name): argument
132 remote.create(name)
144 remote._send_noreply('write', name, data)
145 remote._flush()
155 def recvfile(local, remote, name): argument
158 rv = recvfile_real(local, remote, name)
166 def recvfile_real(local, remote, name): argument
181 id = remote._send('read', name, offset, length)
182 remote._flush()
185 newid = remote._send('read', name, newoffset, length)
186 data = remote._recv(id)
202 remote._recv(id) # ignored