Link to home
Create AccountLog in
Avatar of toffee_natividad
toffee_natividad

asked on

Safely run rsync files from SVN to an external hard drive while in production

We are running Debian 4.0 etch. We are running SVN for our code repository, we run rsync to backup all of the svn files to an external work hours after work hours. Our Server filesystem is Reiser fs then the external Hard drive's File system is ext3

We want to run rSync (rSync all the files in SVN) while in production. Is it safe to do that? Will it corrupt the files in the source drive(Reiser fs on Debian)? or is there a potential that files will be corrupted?
ASKER CERTIFIED SOLUTION
Avatar of Maciej S
Maciej S
Flag of Poland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of toffee_natividad
toffee_natividad

ASKER

now I am torn between the two responses from you. I hope you guys can give me a better response, more convincing, thanks in advance.
Our comments do not exclude each other :)
rsync won't cause data corruption - ai_ja_nai agreed with this.
ai_ja_nai wrote, that if you are running rsync while there is some file uploading, it won't be synced. So, your backup won't contain its new version. I don't know ReisferFS, but I believe him. However, it's good :) This means, that if file is currently written, you won't copy it partially.

You may also consider creating snapshot first, and then rsync this snapshot with your external drive, but taking snapshot can take a while - depending on your disk size (currently used) even few minutes.
The answer is: it's fine to run rsync on a svn repository. But run it during night when nobody can modify the tree
that is actually the reason why we posted this question, mainly to make sure that if we run rSync while in production that it will not corrupt the files in the repository. We understand that some files might not be synced as long as nothing will be corrupted.
So once again: nothing will be corrupted by rsync :)
This is comparable to your users getting data from your repository - there can be a lot of users who are downloading data at the same time - all of them are reading your files. The same will be with rsync - it will just read your files (and it will write them in another location).
thank you very much guys. Your responses were helpful. Good job guys