guilder0y | 1 Apr 10:27 2008
Picon
Picon

using unison as a mirroring utility

Hi,

I'm trying to use unison as a local mirroring/backup utility (on
WinXP) and have (among other things) the following preferences in the
profile

root = X:\
root = Y:\
backup = Name *
backuplocation = local
maxbackups = 99
backupprefix = $VERSION.
backupsuffix =
batch = true
force = X:\

Now if I delete a folder on X: it will be deleted on Y:, but I don't
want this to happen. Is there a way to tell unison just to contribute
and make no deletions?

Thanks in advance,
Guild

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/unison-users/

(Continue reading)

Paul Matthias Diderichsen | 1 Apr 10:36 2008
Picon

Re: using unison as a mirroring utility


On Tue, April 1, 2008 10:27, guilder0y wrote:
> Is there a way to tell unison just to
> contribute
> and make no deletions?

Maybe you might want to check out rsync. It doesn't (AFAIK) keep
several backups, though - just a single mirror.

Kind regards,

--

-- 
Paul Matthias Diderichsen
mobile: +49 (0) 178 2376 566
blog: http://diderichsen.dk/~pmd/blog/

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/unison-users/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/unison-users/join
    (Yahoo! ID required)

(Continue reading)

Scott Bohler | 1 Apr 16:06 2008

RE: using unison as a mirroring utility

I do mine a little different, maintaining a local ".snapshot" directory for backup versions:
 
%unisonpath% %sourceroot% %destroot% ^
-force %sourceroot% ^
-fastcheck ^
-pretendwin ^
-times ^
-batch ^
-backup "Name *" ^
-backuplocation "local" ^
-backupprefix .snapshot/$VERSION--" ^
-maxbackups %snaplimit% ^
-log -logfile %logpath% ^
-killserver ^
-path %pathparm%
 
Upon deleting a folder I get:
 
SomeFolder
  |
   ---.snapshot
         |
          --- 0--DeletedFolderName
                   |
                   ---ContentsOfDeletedFolder...
 
SomeFolder, then, is a true representation of the source folder.  A history of previous/deleted files and folders ends up in the local .snapshot directory.
 
Not exactly what you asked for, but perhaps helpful?

 

Scott T. Bohler

Director, Information Systems

 

Springsted Incorporated

380 Jackson Street, Suite 300

Saint Paul, Minnesota  55101-2887

651-223-3088

651-268-5088 Fax

sbohler <at> springsted.com

Visit us on the web at www.springsted.com

__________________

 

This communication is confidential and intended for the addressee only.  If you are not the intended recipient, please notify the sender immediately and then delete this communication from all data storage devices and destroy all hard copies.  Dissemination, distribution, copying and/or other use of the information contained in this communication is strictly prohibited.

 

From: unison-users <at> yahoogroups.com [mailto:unison-users <at> yahoogroups.com] On Behalf Of guilder0y
Sent: Tuesday, April 01, 2008 3:27 AM
To: unison-users <at> yahoogroups.com
Subject: [unison-users] using unison as a mirroring utility

Hi,

I'm trying to use unison as a local mirroring/backup utility (on
WinXP) and have (among other things) the following preferences in the
profile

root = X:\
root = Y:\
backup = Name *
backuplocation = local
maxbackups = 99
backupprefix = $VERSION.
backupsuffix =
batch = true
force = X:\

Now if I delete a folder on X: it will be deleted on Y:, but I don't
want this to happen. Is there a way to tell unison just to contribute
and make no deletions?

Thanks in advance,
Guild

__._,_.___
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Nathan Gaylinn | 3 Apr 03:14 2008
Picon

Feature Wishlist?

I realize that Unison is not being actively developed, but the home page mentioned something about a TODO list. I'd love to see this list, if it exists in any formalized sense. Also, I have one or two features I'd like to add to that list, in the hopes that someday some brave soul will take them on. Honestly, I really wish I could just add the features myself, but working full time as a software engineer has this way of making me less inclined to code in my spare time.  :(

  -- Nate

__._,_.___
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Benjamin Pierce | 3 Apr 03:30 2008

Re: Feature Wishlist?

There's a TODO file in the source distribution.

Best,

    - Benjamin

On Apr 2, 2008, at 9:14 PM, Nathan Gaylinn wrote:
> I realize that Unison is not being actively developed, but the home  
> page mentioned something about a TODO list. I'd love to see this  
> list, if it exists in any formalized sense. Also, I have one or two  
> features I'd like to add to that list, in the hopes that someday  
> some brave soul will take them on. Honestly, I really wish I could  
> just add the features myself, but working full time as a software  
> engineer has this way of making me less inclined to code in my  
> spare time.  :(
>
>   -- Nate
>
> 

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/unison-users/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/unison-users/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:unison-users-digest <at> yahoogroups.com 
    mailto:unison-users-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    unison-users-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Nathan Gaylinn | 3 Apr 04:23 2008
Picon

Feature Suggestions: Working with many large files.

Okay, now that I've given a quick breeze through the TODO (Thanks Benjamin for pointing it out!), I feel somewhat confident that my suggestions are at least vaguely novel, so here we go!  :)

I first started using Unison for the sake of keeping my remote home directory synced with my home computer so I could do programming work from home without having to pipe everything over SSH. This is exactly the kind of thing Unison was designed for, and it works in this realm extremely well!

Later, however, I got the bright idea of using Unison to keep the music files on my primary computer and my media center PC synced. It seemed like a great idea, but I was sorely disappointed by how poorly Unison handled the task. First of all, Unison had to compute and compare checksums for thousands of files (15GB worth!), which was a complete waste of time since I will never "edit" my mp3s (yes, changing tags is a concern, but adding tags to untagged files would change the file size, which is easily detected, and I can live with a few missed tag changes if it means syncing doesn't take hours). Also, one of the reasons I wanted to synchronize was so I could tidy my directory layout on one computer and then propagate the changes to the other. This is a pain because rename d files are seen as creations and deletions and Unison's default policy (which you have to change file by file) seems to be to make sure both roots have copies of the old and new filenames.

So, basically, this boils down to two feature requests:

1) Let the user customize the diff engine. Something like this was mentioned in the TODO, but not in quite the same context. The user should be able to specify any arbitrary program for computing diffs between files, but he should also be able to specify lighter-weight diff mechanisms that don't require transferring whole files or even computing checksums. For instance, I would love it if I could just tell Unision to treat two files with the same name and file size as identical. This improvement alone would probably be enough to make handling lots of large binary files feasible. I was sure Unison must already support this, but a few hours of hunting turned up no leads.  :(

2) Rename detection. This is pretty tricky, but it can be reduced to a couple of very well studied problems. There are lots of interesting cues you could use, including directory tree similarities, filename overlap, file size, etc. Obviously this isn't a very common case, but Unison is normally so good at guessing the correct change to make, it would be so nice if it could recognize this sort of thing, too. If I'm mistaken and Unison already tries to do this, the current algorithm really wasn't working well for me and my mp3s.

So, yeah, two features I'd really love to see! I'd also love to hear any thoughts/comments you guys might have about them, or techniques for using Unison to synchronize media libraries or the like. I've given up on this for now, but I really do love Unison and I'd be thrilled if I could use it for this sort of thing.

Many thanks,
  -- Nate
__._,_.___
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
brotherlyangel | 3 Apr 20:39 2008
Picon

Permissions issues syncing between windows and linux

I started using unison to sync between a windows server and a linux 
server for purposes of implementing a DFS solution. Permissions are 
not replicating properly at all though. Everything that gets copied 
through from the windows server to the linux server ends up with 
permissions of drwxr-xr-x. This naturally is not going to work out 
too well. Command line that I'm using for this is currently: 
C:\Unison\unison.exe -batch -auto -fastcheck true -owner -group -
logfile CompanySync.txt -log E:\Company socket://FILESRV:59996//home/
windows/shares/ccompany

I've also tried with -perms 0 or -perms -1 but it doesn't seem to 
make a bit of difference. Any help would be greatly appreciated, 
thank you very much.

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/unison-users/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/unison-users/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:unison-users-digest <at> yahoogroups.com 
    mailto:unison-users-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    unison-users-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Scott Bohler | 4 Apr 01:08 2008

RE: Permissions issues syncing between windows and linux

NTFS permissions do not line up with Linux permissions.  NTFS permission bits can be mapped to Linux permission bits under SAMBA such that copying/moving files between a SAMBA server and a Windows server will maintain permissions for Windows clients.  A Unison socket on a Linux machine, however, is not the same thing and the permissions simply aren't going to match up.
 
A possible solution for you might be to set up a SAMBA server with properly mapped NTFS-to-Linux permissions and then run your Unison socket on a separate machine that accesses the SAMBA filesystem.
 
Helpful?
 

Scott T. Bohler

Director, Information Systems

 

Springsted Incorporated

380 Jackson Street, Suite 300

Saint Paul, Minnesota  55101-2887

651-223-3088

651-268-5088 Fax

sbohler <at> springsted.com

Visit us on the web at www.springsted.com

__________________

 

This communication is confidential and intended for the addressee only.  If you are not the intended recipient, please notify the sender immediately and then delete this communication from all data storage devices and destroy all hard copies.  Dissemination, distribution, copying and/or other use of the information contained in this communication is strictly prohibited.

 

From: unison-users <at> yahoogroups.com [mailto:unison-users <at> yahoogroups.com] On Behalf Of brotherlyangel
Sent: Thursday, April 03, 2008 1:39 PM
To: unison-users <at> yahoogroups.com
Subject: [unison-users] Permissions issues syncing between windows and linux

I started using unison to sync between a windows server and a linux
server for purposes of implementing a DFS solution. Permissions are
not replicating properly at all though. Everything that gets copied
through from the windows server to the linux server ends up with
permissions of drwxr-xr-x. This naturally is not going to work out
too well. Command line that I'm using for this is currently:
C:\Unison\unison.exe -batch -auto -fastcheck true -owner -group -
logfile CompanySync.txt -log E:\Company socket://FILESRV:59996//home/
windows/shares/ccompany

I've also tried with -perms 0 or -perms -1 but it doesn't seem to
make a bit of difference. Any help would be greatly appreciated,
thank you very much.

__._,_.___
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
mvalle58 | 4 Apr 09:05 2008
Picon

Strange profile ordering on Windows

On Window XP with Unison 2.28.17 I have the following profiles defined:

Infrequent.prf
STM4-dev-doc.prf
STM4-doc-from-C.prf
STM4-doc.prf
Work.prf
default.prf
zbck-laptop.prf

The profiles list shows selected the "Work" profile, but the roots
below are, correctly, the one from the "default" profile.

What happens?
Thanks for looking at this!

mario

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/unison-users/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/unison-users/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:unison-users-digest <at> yahoogroups.com 
    mailto:unison-users-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    unison-users-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

rasmus.skaarup | 4 Apr 13:39 2008
Picon

Uncaught exception in remote.ml


Hello,

We are a group og 5 people using unison to synchronize a common
repository among us. We have been using 2.13.16 for quite some time,
which has worked out ok for us. A few bugs, but nothing we couldn't
live with.

Unfortunately after upgrading to version 2.27.57 we are facing the error:

Uncaught exception File "./remote.ml", line 537, characters 2-8:
Assertion failed

The server is running FreeBSD 7.0 and our clients are a mixed breed of
XP's and Vista's - but all clients report the same error:

***
Contacting server...
Connected [//client2888/C:/Documents and Settings/rskaarup/My
Documents/DVC-Rasmus -> //<servername removed>//home/dvc/rasmus]
Looking for changes
  scanning DVC/dvc-inst/dvc-con-dir/bin/chg.exe
  scanning DVC/dvc-inst/dvcsync-ivar-093.exe
  scanning DVC/dvc-inst/licensetext.txt
  scanning DVC/dvc-inst/old/dvcsync-rasmus-092.exe
  Waiting for changes from server
Reconciling changes
new dir  ---->            DVC/dvc-inst
local        : new dir            modified on 2008-04-04 at  9:21:40  size
31630926  unknown permissions
<servername removed>... : absent
deleted  ---->            DVC/dvc-filer
local        : deleted
<servernamed removed>... : unchanged dir      modified on 2008-03-28 at
10:09:20  size 11271097  unknown permissions
Propagating updates
UNISON 2.27.57 started propagating changes at 09:22:10 on 04 Apr 2008
[BGN] Copying DVC/dvc-inst from C:/Documents and Settings/rskaarup/My
Documents/DVC-Rasmus to //<servername removed>//home/dvc/rasmus
  0%  33:23 ETA

  0%  03:23 ETA

  0%  01:47 ETA

  0%  01:12 ETA

 <Lots of ETA's removed>

 21%  00:38 ETA

Uncaught exception File "./remote.ml", line 537, characters 2-8:
Assertion failed
 21%  00:38 ETA
*****

We are using sockets to connect to the server as we have already
established an SSH tunnel with plink to the server.

When running with the -debug all option, we get another kind of
uncaught exception:

*******
[startup] Preferences:
ui = graphic
host =
server = false
prefsdocs = false
doc =
version = false
silent = false
dumbtty = true
testserver = false
rest = DVC-Rasmus
showprev = false
selftest = false
confirmmerge = false
retry = 0
repeat =
contactquietly = false
key =
label =
expert = false
reusewindows = false
height = 20
auto = false
maxthreads = 20
prefer =
force =
sortnewfirst = true
sortbysize = false
keeptempfilesaftermerge = false
diff = diff -u CURRENT2 CURRENT1
fastcheck = true
ignorelocks = false
dumparchives = false
showarchive = false
rootsName =
backupdir = rasmus-backup
maxbackups = 3
backups = false
backupsuffix =
backupprefix = .bak.$VERSION.
backup = Name *
backuplocation = central
rsync = true
allHostsAreRunningWindows = false
someHostIsRunningWindows = false
ignore = Name Thumbs.db
ignore = Name ~*
ignore = Name *.tmp
ignore = Name .*~
ignore = Name *~
ignore = Name temp.*
confirmbigdeletes = true
batch = true
root = socket://localhost:60487/rasmus/
root = C:\Documents and Settings\rskaarup\My Documents\DVC-Rasmus
killserver = false
addversionno = false
servercmd =
sshargs =
rshargs =
rshcmd = rsh
sshcmd = ssh
xferbycopying = true
sshversion =
pretendwin = false
times = false
group = false
owner = false
numericids = false
perms = 0
rsrc-aux = false
rsrc = default
someHostIsInsensitive = false
ignorecase = default
timers = false
terse = false
logfile = C:\Documents and Settings\rskaarup\unison.log
log = true
debugtimes = false
debug = all
addprefsto =
Contacting server...
[globals] Checking path '' for expansions
Connected [//client2888/C:/Documents and Settings/rskaarup/My
Documents/DVC-Rasmus -> //<servername removed>//home/dvc/rasmus]
[startup] Roots:
        socket://localhost:60487/rasmus/
        C:\Documents and Settings\rskaarup\My Documents\DVC-Rasmus
  i.e.
        socket://localhost:60487/rasmus/
        C:\Documents and Settings\rskaarup\My Documents\DVC-Rasmus
  i.e. (in canonical order)
       C:/Documents and Settings/rskaarup/My Documents/DVC-Rasmus
       //<servername removed>//home/dvc/rasmus

[props] Setting permission mask to 0 (0 and 200)
[stasher] initBackupsLocal
[stasher] d = /
[stasher] New pattern being added to ignore preferences: Regex
(.*/)?\.bak\.[0-9]+\..*
[stasher] Prefix and suffix regexps for backup filenames have been updated
Uncaught exception Invalid_argument("String.create")
******

.prf file is like this:

******
root = C:\Documents and Settings\rskaarup\My Documents\DVC-Rasmus
root = socket://localhost:60487/rasmus/

# Some regexps specifying names and paths to ignore
ignore = Name temp.*
ignore = Name *~
ignore = Name .*~
ignore = Name *.tmp
ignore = Name ~*
ignore = Name Thumbs.db
# Keep a backup copy of the entire replica
backup = Name *
# Helps out a lot on Windows
fastcheck = true

# Don't synchronize permission bits
perms = 0

# Place new files at the top of the list
sortnewfirst = true
batch = true
maxbackups = 3
backupdir = rasmus-backup
******

I should mention that the unison on FreeBSD has been compiled via
ports with the options "WITHOUT_X11=yes WITHOUT_GTK2=yes". And the
version on the Windows clients are the text-version.

Any help is much appreciated.

Best regards,
Rasmus Skaarup

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/unison-users/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/unison-users/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:unison-users-digest <at> yahoogroups.com 
    mailto:unison-users-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    unison-users-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


Gmane