I have a shared hosting account, and I just started using source control locally (TortoiseSVN) for my personal projects. I’d like to keep the repositories backed up elsewhere, so I’m wondering if as a practice it’s a good idea to upload all modified repositories to the shared server at the end of the day.
That said, if there is an easier or more secure way to back them up, I’d appreciate your input.
Daily backups are definitely a good idea! For Subversion, you should use
svnadminto create a dump file, and then make a backup of that:Using
svnadminensures that you get a consistent snapshot of your repository. Merely copying the repository directly can lead to an inconsistent backup — one that you cannot restore! See this SO question for much more advice on this problem.