Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am running a Linux Mint workstation at home and I am following the backup strategy from this page: http://www.jwz.org/doc/backups.html. The destination drive is a eSata drive identical to the internal drive and my rsync command looks like this:

sudo rsync -vaxAX --delete --ignore-errors / /media/backup/

where my external eSata drive is mounted on /media/backup/. I run into a slight problem with this rsync command: rsync will not go into and recurse down the /home directory. The home/ dir is created at the destination, but it stops there. If I change my source dir from / to /home/ than everything is fine. Am I doing something wrong or is this behavior by design?

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

-x tells rsync to not cross filesystem boundaries. /home is a separate filesystem on that machine.

share|improve this answer
    
That's a better explanation @Ignacio –  pavium Jun 20 '11 at 10:28
    
That is correct... /home is on its own partition... obvious in hindsight... –  Jonas Gorauskas Jun 20 '11 at 15:46
add comment

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.