I use rsync to clone my internal hdd to an external disk. My system is Arch Linux.
I have two partitions:
- /
- /data
I am using the following rsync command:
rsync -avzxt --progress --delete --exclude="/mnt/" --exclude="/media/" / /mnt/backup/bakmir02/
(actually I had some more excludes like tmp etc., but I removed most of them to be able to localize the mistake, so just for testing purposes -- I will readd them later)
It copies the root directory just as it is supposed to; but it ignores the content of my data partition. It creates the directory on the target drive, but it stays empty.
The reason does not seem to be an exclude as I have removed all of them except for the mnt and media directories which would not be very nice to clone ...
What could be the reason for this strange behaviour? I have used rsync on many systems for backups already and never had such a problem.
Edit Running
rsync -avzxt --progress --delete /data /mnt/backup/bakmir02/
is working. Still I do not understand the reason of this behaviour; especially I am thinking about if rsync is ignoring other files also.
find -xdev ...
and thus; will not cross mount point. (I've tried looking atman rsync
on my OpensSuse 13.1 but that is unclear)