Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Internal folder contents compare and transfer method?

2 posts in General Last posting was on 2012-06-25 12:20:10.0Z
Dom9360 Posted on 2012-06-22 23:19:31.0Z
Sender: 696e.4fe4fcb8.1804289383@sybase.com
From: Dom9360
Newsgroups: ianywhere.public.afaria.general
Subject: Internal folder contents compare and transfer method?
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4fe4fd83.6984.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 22 Jun 2012 16:19:31 -0700
X-Trace: forums-1-dub 1340407171 172.20.134.41 (22 Jun 2012 16:19:31 -0700)
X-Original-Trace: 22 Jun 2012 16:19:31 -0700, 172.20.134.41
Lines: 8
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.afaria.general:501
Article PK: 841

I use the send file command to send new files and update
them if needed. (ie: Send file dir\*.*). Is there a method
to compare files on local server to files on client
directory to delete any older files that may have been
removed on the server directory? I want to avoid using a
script on the server and or the client. Basically, I want to
keep a folder on the client machine in "sync" with a folder
on the server.


Mahendra Bhandari Posted on 2012-06-25 12:20:10.0Z
Sender: 18a5.4fe85707.1804289383@sybase.com
From: Mahendra Bhandari
Newsgroups: ianywhere.public.afaria.general
Subject: Re: Internal folder contents compare and transfer method?
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4fe8577a.18b6.1681692777@sybase.com>
References: <4fe4fd83.6984.1681692777@sybase.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 25 Jun 2012 05:20:10 -0700
X-Trace: forums-1-dub 1340626810 172.20.134.41 (25 Jun 2012 05:20:10 -0700)
X-Original-Trace: 25 Jun 2012 05:20:10 -0700, 172.20.134.41
Lines: 93
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.afaria.general:502
Article PK: 838

Hi there,

First Resolution

1. On server use subst command to create virtual drive eg: s
drive to map to desired directory where source file exist.

2. Create document manager channel to sync entire s:\ drive.

3. Create a session manager to run subst s: /D to remove
mapped drive. And then execute subst s: <new folder>. Then
trigger refresh document manager channel as drive letter is
same should work.

Note: Automatic document refresh schedule works daily once.
so you might have to do manual update of document manager
channel after above steps when source directory change.

Have used subst based drive with Afaria however, above steps
have not been tested practically, Give it a try and let me
know if it works.

Hope this helps!

Second Resolution

1) Use the Document Manager Channel (isn't that available
for WIn32?)

2) Ask Support/PSO for their Session Mgr Dir Sync Tool or
whatever they call it. It's built to do just what you
want...

3) Build some logic in VB/JScript to handle this. Use
DirListing function from session mgr to gather directory
contents from destination.

One more,

The utility (called DocSync) supports some moderately
sophisticated server to client file/folder synchronization
options. The primary advantages of the tool over the other
options suggested are flexibility and performance. In the
end, we leverage Afaria only as a transport, handling all of
the sync logic outside the session. We find the process
Afaria uses to determine changes become problematic when:

1) The number of files that need to be synchronized becomes
large (meaning thousands), and/or
2) The size of the files being synchronized are very large
(hundreds of MBs+)

Part of the magic is that we create the Afaria worklist on
the fly. This keeps the channel small and efficient. It also
helps preserve the audit trail provided by Afaria's logs
(something other external script methods are not likely to
do).

We have customers that use Afaria and DocSync to efficiently
(in a differential way) syncs of tens of thousands of files.
This includes handling replicated file deletes. The tool
also supports syncing different files to different groups
(or individual devices) as needed.

Many of the other options suggest are fine for small sync
situations. However, if the data set is larger or more
complex, I’m confident that there isn’t a better
approach than DocSync.

Finally, we have another add-on solution (actually have a
ton of them) called DocLib. The key difference is DocLib has
a client UI (a bit explorer like) that allows users to
subscribe to content (files) or view files that are admin
forced. DocSync is completely background (support other uses
for file-based content).

- By Michael Lowry


Hope one of the above will help!!!

KR,
Mahendra

> I use the send file command to send new files and update
> them if needed. (ie: Send file dir\*.*). Is there a method
> to compare files on local server to files on client
> directory to delete any older files that may have been
> removed on the server directory? I want to avoid using a
> script on the server and or the client. Basically, I want
> to keep a folder on the client machine in "sync" with a
> folder on the server.