Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.