Is there a good way to back up all code and content on an SVN server? because if this hard drive dies, then all work may be lost.
I think that if we regularly use several updates for SVN Update, most of the files are present on these machines, so the code is somewhat safer not to lose.
I also thought of writing a script to copy c:\repositoriesto w:\, which is an external 2 TB hard drive that basically does not work during the day. the copying process can be started at night by cron or the window scheduler ... but will the copying be full? it can be a dozen files that have been changed during the day, the total amount of which is 0.5 MB, and copying all repositories may require 50 MB or more. and what if I did an SVN registration during a cron job. Will these files be in a conflicting state?
or how to put the repository on c:\so that the SVN update is quick (if necessary, it w:will take time to wait for idle time in standby mode), then just create a project under w:\and check all the files on w:\all_code, and it will update SVN to the whole repository, and then run cron jobs for SVN updates w:\to synchronize with the repository every night, so that an additional copy of all files is on w:?
source
share