file sync one way; what's the best option?
To me it is a matter of security, hopefully it is not too off-topic: I have a suse9.0-box1 which has all my images (photo's i am a photographer) stored now I want to sync them with a box2, I am working on (a suse9.0-box2) but I did some adjustments to most of the images so I don't want images of box2 overwritten by the ones of box1, only add the images that are allready on box1 but not yet on box2. My handbook suggests unison, but I can't figure out howto: update box2, with leaving altered files untouched, and leave all the files of box1 untouched someone suggested svn but I can't get that working. what I do now is load them to a winXP box use winSCP with has an option of sync-local or sync-remote, but that's a bit of a hassle. As de amount of images several gig's I want a reliable way of working. thanks in advance for any suggestion, piet
piet wrote:
To me it is a matter of security, hopefully it is not too off-topic:
I have a suse9.0-box1 which has all my images (photo's i am a photographer) stored now I want to sync them with a box2, I am working on (a suse9.0-box2) but I did some adjustments to most of the images so I don't want images of box2 overwritten by the ones of box1, only add the images that are allready on box1 but not yet on box2.
My handbook suggests unison, but I can't figure out howto: update box2, with leaving altered files untouched, and leave all the files of box1 untouched
Check out "rsync". You'll probably want the "--ignore-existing" option as well as the "-e ssh" option. The man page has many examples. Use "-n" to test it until you're happy. You might even make a copy of the dir on the target machine and try it on that the first time if you're really paranoid. (I am with some data. :-) HTH, Kevin
/ 2004-10-27 16:54:40 +0200 \ piet:
To me it is a matter of security, hopefully it is not too off-topic:
I have a suse9.0-box1 which has all my images (photo's i am a photographer) stored now I want to sync them with a box2, I am working on (a suse9.0-box2) but I did some adjustments to most of the images so I don't want images of box2 overwritten by the ones of box1, only add the images that are allready on box1 but not yet on box2.
My handbook suggests unison, but I can't figure out howto: update box2, with leaving altered files untouched, and leave all the files of box1 untouched
someone suggested svn but I can't get that working.
don't use the svn 0.27 that is in cluded with 9.0, use the ones from people/poeml/subversion/9.0-i386/ which is 1.1.x ...
what I do now is load them to a winXP box use winSCP with has an option of sync-local or sync-remote, but that's a bit of a hassle.
As de amount of images several gig's I want a reliable way of working.
thanks in advance for any suggestion,
svn may be a good solution. or, man rsync export RSYNC_RSH=ssh on box2:/some/where: rsync -n -vv -Pauv box1:/some/where . on box2:/some/where: rsync -Pauv box1:/some/where . (yes, there is rsync for non-linux os, too.) and yes, it is off topic. lge
On Wed, 27 Oct 2004 16:54:40 +0200, piet <prooroa@wanadoo.nl> wrote:
update box2, with leaving altered files untouched, and leave all the files of box1 untouched
someone suggested svn but I can't get that working.
what I do now is load them to a winXP box use winSCP with has an option of sync-local or sync-remote, but that's a bit of a hassle.
Hi Piet, IIRC, gFTP (gftp.seul.org) has a similar option. Otherwise, I would suggest using rsync with -u. gm -- Dipl.-Ing. Markus Ottenbacher Institut für Technische Thermodynamik und Thermische Verfahrenstechnik Universität Stuttgart Tel.: +49 711 685 60 17 -- Fax.: +49 711 685 61 40 ottenbacher@itt.uni-stuttgart.de
participants (4)
-
Kevin Brannen
-
Lars Ellenberg
-
Markus Ottenbacher
-
piet