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

RE: Automate backup of working copy

From: Mark Irving <mark_at_irving74.plus.com>
Date: Wed, 14 Sep 2016 06:29:27 -0700 (PDT)

David Balažic comments

> Sometimes developers leave uncommitted files in their WC when they leave at the end of the day.
> Regardless what branch(es) they use.
> If the PC dies during the night, work is lost.
> Regular backups help, but as most of the WC is in the repository, backing up the entire WC "wastes" backup space.

I use command-line "svn diff > backup-file-path.patch" (with the backup file path name on a separate drive). That saves the edits in my working copy, including any new files provided I've remembered to svn add them. The command is light-weight enough to run several times a day if feeling nervous.

It's not perfect, but it saves 90% of the effort needed to re-create work after a working copy loss. Set up a new working copy and use TortoiseSVN to apply the patch from the backup drive. This doesn't cover property or significant tree-structure edits very well, but it copes all right with text edits and additions.

 - Mark Irving


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2016-09-14 15:29:28 CEST

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