Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to restore a backup. With respect to rsync I have a doubt

If the server A on which I have to restore backup from a USB disk I do as follows

rsync -avz /usb/disk -e ssh root@IP:/

will it over write all the files on server A with the ones on my USB (which is what I want also) or I need to do some thing else.

share|improve this question
up vote 1 down vote accepted

Depends, if you for example backed up /var/lib/mysql, and its now in /usb/disk/mysql, it'll be backed up to /mysql. If you however backed up /var, and it's /usb/disk/var, it'll overwrite /var.
copy it to a temporary directory first and be very careful in the process of rollback.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.