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?
LinuxLinux DistributionsStorage Software

Avatar of undefined
Last Comment
toffee_natividad

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Maciej S

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
ai_ja_nai

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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.
Maciej S

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.
ai_ja_nai

The answer is: it's fine to run rsync on a svn repository. But run it during night when nobody can modify the tree
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
toffee_natividad

ASKER
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.
Maciej S

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).
toffee_natividad

ASKER
thank you very much guys. Your responses were helpful. Good job guys
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.