[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Keeping backups in Subversion

From: Tyler Roscoe <tyler_at_cryptio.net>
Date: Thu, 6 Aug 2009 09:02:30 -0700

On Thu, Aug 06, 2009 at 05:47:58PM +0200, Jan Seeger wrote:
> I don't know if this has come up before, but I am looking for a
> possibility to pack backups into a subversion repository. I'm thinking
> like this:

svn may not be the best tool for this job.

> rsync from remote to local host
> checkin into subversion repository
>
> The only problem here is how to delete files that have been deleted on
> the remote host. How would I go about detecting missing files and
> removing them from the working copy?

What about adding new files?

You could parse the output of svn status or of rsync (I think it reports
when a new file is being copied or an old one is being deleted). Then
svn add/svn rm accordingly.

tyler

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2380916

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-06 18:03:22 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.