Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What backup strategy do you use for your code?

Tags:

Everyone uses source-code control to manage versions (right?) and this provides some level of backup. There are times, however, when your local copy is out of sync with the repository. Moreover, some sandbox-type projects may not have yet ;-) made it into SCC.

EDIT: I have multiple projects in my projects directories. Not all are in current development but anyone of which might need to be "fixed" whenever a bug is found. Restoring a single, active project from SCC seems perfectly reasonable. Restoring all of the couple of dozen projects that I support from SCC seems less reasonable than restoring from a backup and syncing as necessary from SCC.

What backup strategies, other than source code control, do you use to keep your code safe?

A similar question can be found at https://stackoverflow.com/questions/38388/organization-wide-backup-strategy, but I'm more interested in hearing others' personal strategies if you happen to work in an organization that has no overal strategy. I'll provide my strategy in an answer.

like image 599
tvanfosson Avatar asked Dec 29 '08 18:12

tvanfosson


2 Answers

My strategy is always check in, and backup the entire repository.

I never leave anything out of source control and I make sure regular backups (incremental daily, full weekly and monthly rotation) are happening and are functional.

like image 198
Vinko Vrsalovic Avatar answered Oct 10 '22 02:10

Vinko Vrsalovic


At the end of the day I check my code into source control.

At around midnight Mozy kicks on and backs up my code off site.

At around 1AM the SC box gets backed up to tape.

At around 3AM Syncback SE wakes up and backs up my code to an external HD.

Throughout the day my work box syncs with my home box using Live Sync

like image 29
Echostorm Avatar answered Oct 10 '22 02:10

Echostorm