Re: OT: rsync issues

Stefan 'Kaishakunin' Schumacher <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
Also sprach DataZap ([email protected])
> Hi,
> 
> I think that this is a little off topic, but I know that someone on this
> list probably has an answer for me. I googled, but I still can't seem to
> find an example of how to do this.
> 
> I just updated rsync on both of my servers and deleted all the files off
> the backup. I was then able to backup the main server without any
> problems, but when I went to run rsync again, it gives me an out of memory
> error. What I would like to do is write a shell script that would call
> rsync, but only have it backup a small part of the files at a time until
> all of the files are backed up. I have not been able to find an example of
> this. Does anyone have any ideas on how this could be done?

Rsync supports excellent include/exclude options with RegExes. You
just have to generate those lists to copy the data piecewise to the
destination. 

You could use find(1) and wc to generate lists that work.

-- 
PGP FPR: CF74 D5F2 4871 3E5C FFFE  0130 11F4 C41E B3FB AE33
http://www.net-tex.de                                 
http://www.cryptomancer.de
-- 
Jeder wird als Faust geboren, um alles zu erfassen, alles zu erproben, alles 
auszudrücken. Daß Faust Gelehrter wurde, dafür sorgten die Fehler seiner 
Vorgänger und seiner Zeitgenossen. 
Boris Pasternak, Doktor Schiwago
signature.asc (application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)

iD8DBQFGIJgNEfTEHrP7rjMRAvfJAKCNc8XygfES18Pfd4dPPP6S1JGyywCdG7aB
WAtcGSj88rek8rZsbBIYIZ0=
=IJq9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.