Re: rdump

Miek Gieben <[email protected]> Tue, 27 Dec 2005 11:22:10 +0100
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
--===============0737183353==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd"
Content-Disposition: inline


--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

[On 27 Dec, @10:32, Sven.Hartrumpf@FernUni-Ha wrote in "[hdup-user] rdump .=
=2E."]
> How are "changed files" defined?
> How does rdump detect them?

if m_time of the file in question is newer than the m_time of the
incremental file, it file name is written to standard output

> What are good ideas for remote backups?

I'm still pondering about doing remote backups, but the core of a
script should be something like this (this is actually what hdup
does):
cat $filename | ssh -c blowfish user@remotehost store.sh

> A search for "rsync backup" on freshmeat.net returns 21 projects.
> You might browse some of them for ideas (or mergers :-) ):

I've looked at a few of them,

> The more promising search hits are:
> rdiff-backup
> Rsync Incremental Backup Script
> Rsync Vault Manager
> rsync-backup
> rsyncbackup
>=20
> Can anyone recommend one of these projects?

my little research showed that they are almost all a wrapper around
rsync, rsync is quite complicated :-) That's why I've decided to go
back to the core idea of backups and that is the filelist of changed
files. Anything else is up to the user and should (and now can) be
coded in simple shell scripts.

> BTW:
> I can't use hdup anymore because tar needs more than 1 GB
> RAM for long file lists :-(

*ai* :) rdump (I may rename it to rdup) also needs to hold the
filesnames in memory. As most filesnames share a common prefix a lot
of memory could be saved. Currently this does not happen. If you want
to learn C, this is your change :-) Right now, rdump is an extremely
simple and elegant program :-)

btw, dare I ask how big your resulting tar file is? :)

--
grtz,
  - Miek

 http://www.miek.nl                      http://www.nlnetlabs.nl
  PGP Key ID: 3880 D0F6
 fingerprint: 6A3C F450 6D4E 7C6B C23C  F982 258B 85CF 3880 D0F6

--ZPt4rx8FFjLCG7dd
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDsRXSJYuFzziA0PYRAg5vAJ9rBsHU2ZN4sMhCp8HmjyeMLH2/7QCeLVB6
x8OhbQNFC3RR3e+pkFxLaqk=
=Vpar
-----END PGP SIGNATURE-----

--ZPt4rx8FFjLCG7dd--

--===============0737183353==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
hdup-user mailing list
[email protected]
http://atoom.net/cgi-bin/mailman/listinfo/hdup-user

--===============0737183353==--