Gentoo Archives: gentoo-server

From: Mariusz Pekala <skoot@××.pl>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] How to backup lots of files in filesystem.
Date: Tue, 09 Nov 2004 09:00:25
Message-Id: 41908736.7070505@qi.pl
In Reply to: [gentoo-server] How to backup lots of files in filesystem. by Wang Penghui
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Wang Penghui wrote:
5 > In my server box, there is a directory used to store users' data, but
6 > there are lots of subfolders under it, and there there also are lots of
7 > subfolders under the subfolders too. in each folders there are lots of
8 > files.
9 > And the files would be changed at any time. Some added while some
10 > deleted, some increased while some decreased. And the amount of the
11 > files is so big.
12 > Even more than 10G.
13 >
14 > Now the problem come out. I need to backup all the files in the
15 > folders. Because the files would be changed even in every minute. So i
16 > have to backup it as often as possible. I am blind with it now. Maybe
17 > rsync will fit my requirements, i am not sure about it now.
18
19 I am sure somebody will find a tool for you, but as a quick solution you
20 may consider running find -ls and store its output and then tar
21 everything that has been modified since last tar.
22 Having list of files you will be able to find out which files have been
23 deleted, and having these files in some previously made tarball you will
24 be able to restore them when needed.
25 Rsync would not save you the deleted files.
26
27 You just need some work to fit this simple thing to your own needs. :)
28
29 HTH.
30 -----BEGIN PGP SIGNATURE-----
31 Version: GnuPG v1.2.6 (GNU/Linux)
32 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
33
34 iD8DBQFBkIcwlA+/TuXKaj0RAmVlAJ9Q8jZgPu+dW/uVzsX1r+CIlmYtdQCdG5CJ
35 vk1XnPUsLCBpJ3LalNAHvao=
36 =VOMm
37 -----END PGP SIGNATURE-----