[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Making an image of my HDD

On 2008-08-01 22:09, Shachar Or wrote:
> On Friday 01 August 2008 10:15, Johannes Wiedersich wrote:
>> rsync -ax / user@workstation:/backup/dir/
> Does the -x option mean that it will not read mounts like /dev, /proc and 
> such?

Please, read man rsync:
        -x, --one-file-system
               This  tells rsync to avoid crossing a filesystem boundary
when recursing.  This does not limit the user’s ability to
               specify items to copy from multiple filesystems, just
rsync’s recursion through the hierarchy of each directory that
               the  user specified, and also the analogous recursion on
the receiving side during deletion.  Also keep in mind that
               rsync treats a “bind” mount to the same device as being
on the same filesystem.

               If this option is repeated, rsync omits all mount-point
directories from the copy.  Otherwise, it includes an  empty
               directory  at  each  mount-point  it  encounters (using
the attributes of the mounted directory because those of the
               underlying mount-point directory are inaccessible).

               If rsync has been told to collapse symlinks (via
--copy-links or --copy-unsafe-links), a symlink to a  directory  on
               another device is treated like a mount-point.  Symlinks
to non-directories are unaffected by this option.


Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: