Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #187211 > unrolled thread

dirs mirror

Started byPol Hallen <deben@fuckaround.org>
First post2017-09-25 22:00 +0200
Last post2017-09-26 10:50 +0200
Articles 5 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  dirs mirror Pol Hallen <deben@fuckaround.org> - 2017-09-25 22:00 +0200
    Re: dirs mirror David Christensen <dpchrist@holgerdanske.com> - 2017-09-26 05:00 +0200
      Re: dirs mirror David Christensen <dpchrist@holgerdanske.com> - 2017-09-26 05:20 +0200
      Re: dirs mirror Cindy-Sue Causey <butterflybytes@gmail.com> - 2017-09-26 18:50 +0200
    Re: dirs mirror Darac Marjal <mailinglist@darac.org.uk> - 2017-09-26 10:50 +0200

#187211 — dirs mirror

FromPol Hallen <deben@fuckaround.org>
Date2017-09-25 22:00 +0200
Subjectdirs mirror
Message-ID<utHHQ-2sG-21@gated-at.bofh.it>
Hi folks :-)

I'd like create a mirror between 2 dirs: one local dir

/home/user/testA

and

/home/user/testB
this "testB" is a samba mounted share dir (//ip/remote_share 
/home/user/testB)

any idea?

thanks for help!

Pol

[toc] | [next] | [standalone]


#187219

FromDavid Christensen <dpchrist@holgerdanske.com>
Date2017-09-26 05:00 +0200
Message-ID<utOgh-718-5@gated-at.bofh.it>
In reply to#187211
On 09/25/17 12:57, Pol Hallen wrote:
> Hi folks :-)
> 
> I'd like create a mirror between 2 dirs: one local dir
> 
> /home/user/testA
> 
> and
> 
> /home/user/testB
> this "testB" is a samba mounted share dir (//ip/remote_share 
> /home/user/testB)
> 
> any idea?
> 
> thanks for help!
> 
> Pol
> 

It sounds like you want the Linux equivalent of Microsoft's "Offline files":

https://duckduckgo.com/?q=linux+offline+files&t=ffsb&ia=qa


David

[toc] | [prev] | [next] | [standalone]


#187221

FromDavid Christensen <dpchrist@holgerdanske.com>
Date2017-09-26 05:20 +0200
Message-ID<utOzD-7om-7@gated-at.bofh.it>
In reply to#187219
On 09/25/17 19:57, David Christensen wrote:
> It sounds like you want the Linux equivalent of Microsoft's "Offline 
> files":

Here is information about Microsoft's "Offline Files":

https://en.wikipedia.org/wiki/Windows_Vista_I/O_technologies#Offline_Files


David

[toc] | [prev] | [next] | [standalone]


#187266

FromCindy-Sue Causey <butterflybytes@gmail.com>
Date2017-09-26 18:50 +0200
Message-ID<uu1dw-7dY-21@gated-at.bofh.it>
In reply to#187219
On 9/25/17, David Christensen <dpchrist@holgerdanske.com> wrote:
> On 09/25/17 12:57, Pol Hallen wrote:
>>
>> I'd like create a mirror between 2 dirs: one local dir
>>
>> /home/user/testA
>>
>> and
>>
>> /home/user/testB
>> this "testB" is a samba mounted share dir (//ip/remote_share
>> /home/user/testB)
>>
>> any idea?
>>
>
> It sounds like you want the Linux equivalent of Microsoft's "Offline
> files":
>
> https://duckduckgo.com/?q=linux+offline+files&t=ffsb&ia=qa


Using David's "offline" keyword, I tried a quick "apt-cache search
offline files". Received back a few things, but "syrep" stood out near
the top (description left whole because of so many perks):

"Description-en: A generic file repository synchronization tool
 syrep is a generic file repository synchronization tool. It may be used to
 synchronize large file hierarchies bidirectionally by exchanging patch files.
 Syrep is truely peer-to-peer, no central servers are involved.
 Synchronizations between more than two repositories are supported. The patch
 files may be transferred via offline media, e.g. removable hard disks or
 compact discs.
 .
 Files are tracked by their message digests, currently MD5. The following file
 operations are tracked in the snapshot files: creation, deletion,
 modification, creation of new hard or symbolic links, renaming. (The latter is
 nothing more than a new hard link and removal of the old file). syrep doesn't
 distinguish between soft and hard links. In fact even copies of files are
 treated as the same. Currently, syrep doesn't synchronize file attributes like
 access modes or modification times.
 .
 Syrep was written to facilitate the synchronization of two large digital music
 repositories without direct network connection. Patch files of several
 gigabytes are common in this situation.
 .
 Syrep is able to cope with 64 bit file sizes. (LFS)
 .
 Syrep is optimized for speed. It may make use of a message digest cache to
 accelerate the calculation of digests of a whole directory hierarchy"

Sounds interesting even if it doesn't help.. :)

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with duct tape *

[toc] | [prev] | [next] | [standalone]


#187227

FromDarac Marjal <mailinglist@darac.org.uk>
Date2017-09-26 10:50 +0200
Message-ID<utTJ0-2nL-29@gated-at.bofh.it>
In reply to#187211

[Multipart message — attachments visible in raw view] — view raw

On Mon, Sep 25, 2017 at 09:57:54PM +0200, Pol Hallen wrote:
>Hi folks :-)
>
>I'd like create a mirror between 2 dirs: one local dir
>
>/home/user/testA
>
>and
>
>/home/user/testB
>this "testB" is a samba mounted share dir (//ip/remote_share 
>/home/user/testB)
>
>any idea?

It depends on how close you want those mirrors to be. If they are 
absolutely identical:

 ln -s ../testB /home/user/testA

will create a symbolic link between the two directories. You can 'cd' 
into either testA or testB and see identical files, changes happen 
immediately etc. A symbolic link essentially allows you to give a 
directory a second name.

If this is for backup purposes and you want to periodically bring testB 
up-to-date with testA, then rsync is your best choice:

 rsync -avP --delete /home/user/testA /home/user/testB

This is a one-way synchronisation. testB becomes identical to testA, and 
any changes in testB are lost. If you need two-way synchronisation 
(testA and testB have changed, but need to come to a common state), then 
look at the "unison" package.

>
>thanks for help!
>
>Pol
>

-- 
For more information, please reread.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web