1 |
Hi Bryan, |
2 |
|
3 |
Tks for your advice. |
4 |
|
5 |
> Why not just use rsync? |
6 |
> |
7 |
> setup cron to just sync the two directories (/home/blah with |
8 |
> /mnt/disk/blah) over and over? |
9 |
|
10 |
Such an arrangement will only sync /home/user on |
11 |
/mnt/usb_enclosure/user at fixed time, periodically, not instaneously |
12 |
whenever there is a change on /home/user |
13 |
|
14 |
> Or just set your hom directory to /mnt/disk/user ? |
15 |
|
16 |
I intend using the USB device for dual purpose. |
17 |
|
18 |
1) as mirror of /home/user. So when there is a problem there is a |
19 |
second copy of data on the USB enclosure. |
20 |
|
21 |
2) using it as mobile storge device which can be plugged in on any |
22 |
Linux PC when I work on the latter. |
23 |
|
24 |
B.R. |
25 |
SL |
26 |
|
27 |
|
28 |
> > On 8/25/06, Stephen Liu <satimis@×××××.com> wrote: |
29 |
> >> Hi folks, |
30 |
> >> |
31 |
> >> I'm prepared using an USB enclosure for data stroage. |
32 |
> >> |
33 |
> >> I'm searching a tool/method whenever I save a file on /home/user |
34 |
> a |
35 |
> >> duplicate copy will be saved automatically on |
36 |
> >> /mnt/point/of/usb_enclosure/home/user simultaneously, similar to |
37 |
> >> replication/mirroring. Thus the USB enclosure can be used as a |
38 |
> mobile |
39 |
> >> storage device and can be plugged in on any Linux PC. |
40 |
> > |
41 |
> > My first thought for this kind of setup would be a little Perl |
42 |
> magic |
43 |
> > with inotify... not sure if something already exists like this. |
44 |
> > |
45 |
> > http://www.edoceo.com/creo/inotify/perl-inotify.php |
46 |
> > |
47 |
> > -Mike |
48 |
-- |
49 |
gentoo-user@g.o mailing list |