Synchronizing more than one folder/file in Unison, per profile
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Unison (http://www.cis.upenn.edu/~bcpierce/unison/) is a really great
tool, but it may be interesting, for me, to synchronize more than one
folder (or file, depending on the choices) per profile.
For example, if I have a profile `Docs', I would like to synchronize
/home/myself/Docs
_and_
/home/Docs.txt
Is it possible? I tried modifying the related .prf in ~/.unison/, but
it did not work out.
Thanks!
- --
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- --
Every cloud has a silver lining.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
01-31-2010, 03:52 PM
Matthew Moore
Synchronizing more than one folder/file in Unison, per profile
On Sunday January 31 2010 3:58:10 am Merciadri Luca wrote:
> For example, if I have a profile `Docs', I would like to synchronize
> /home/myself/Docs
>
> _and_
>
> /home/Docs.txt
>
> Is it possible? I tried modifying the related .prf in ~/.unison/, but
> it did not work out.
You can add multiple "path =" settings. For example, your profile would look
something like
root = <computer 1>
root = <computer 2>
path = /home/myself/Docs
path = /home/Docs.txt
MM
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
01-31-2010, 05:39 PM
Merciadri Luca
Synchronizing more than one folder/file in Unison, per profile
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matthew Moore <anonymous.jondoe@gmail.com> writes:
> You can add multiple "path =" settings. For example, your profile would look
> something like
>
> root = <computer 1>
> root = <computer 2>
>
> path = /home/myself/Docs
> path = /home/Docs.txt
Okay. Nice. However, your example does not work (at least with my
Unison), as it asks for relative paths (and not absolute). I did not
know this. Thanks!
- --
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- --
Don't take life too seriously; you'll never get out of it alive.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
01-31-2010, 10:28 PM
Matthew Moore
Synchronizing more than one folder/file in Unison, per profile
On Sunday January 31 2010 11:39:31 am Merciadri Luca wrote:
> Matthew Moore <anonymous.jondoe@gmail.com> writes:
> > You can add multiple "path =" settings. For example, your profile would
> > look something like
> >
> > root = <computer 1>
> > root = <computer 2>
> >
> > path = /home/myself/Docs
> > path = /home/Docs.txt
>
> Okay. Nice. However, your example does not work (at least with my
> Unison), as it asks for relative paths (and not absolute). I did not
> know this. Thanks!
They are relative to the root directories. In your case, you would have it as
root = /
root = ssh://<other compter>//
... or something like that. If you only care about syncing targets that are
anchored in /home/, then you could change your roots to be something else.
MM
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
02-01-2010, 10:15 AM
Merciadri Luca
Synchronizing more than one folder/file in Unison, per profile
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matthew Moore <anonymous.jondoe@gmail.com> writes:
> On Sunday January 31 2010 11:39:31 am Merciadri Luca wrote:
>> Matthew Moore <anonymous.jondoe@gmail.com> writes:
>> > You can add multiple "path =" settings. For example, your profile would
>> > look something like
>> >
>> > root = <computer 1>
>> > root = <computer 2>
>> >
>> > path = /home/myself/Docs
>> > path = /home/Docs.txt
>>
>> Okay. Nice. However, your example does not work (at least with my
>> Unison), as it asks for relative paths (and not absolute). I did not
>> know this. Thanks!
>
> They are relative to the root directories. In your case, you would have it as
>
> root = /
> root = ssh://<other compter>//
>
> ... or something like that. If you only care about syncing targets that are
> anchored in /home/, then you could change your roots to be something else.
Don't try to teach a pig to sing. It doesn't work, and you'll annoy
the pig.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>