Ignoring /boot
Voelker, Bernhard
bernhard.voelker at siemens-enterprise.com
Mon Sep 12 04:13:50 MDT 2011
Ben Short wrote:
> I have the following script that I'm writing to backup my gentoo linux system.
> ...
> RSYNC_OPTS="--archive --one-file-system --perms --executability --progress --stats --delete-after --hard-links --keep-dirlinks --verbose --inplace"
> RSYNC_USER="bs"
> RSYNC_SERVER="192.168.6.6"
> RSYNC_MODULE="ben-desktop"
> RSYNC_PATH="/"
> RSYNC_EXCLUDES="--exclude=/usr/portage/distfiles --exclude=/tmp --exclude=/var --exclude=/home --exclude=/root --exclude=/usr --exclude=/bin --exclude=/opt --excl$
>
> MOUNT_FOR_RSYNC="/boot"
>
> mount ${MOUNT_FOR_RSYNC}
>
> #ls -la /boot
>
> rsync --dry-run ${RSYNC_OPTS} --rsync-path="sudo rsync" ${RSYNC_EXCLUDES} -e ssh ${RSYNC_PATH} ${RSYNC_USER}@${RSYNC_SERVER}::${RSYNC_MODULE}
>
> umount ${MOUNT_FOR_RSYNC}
> ...
> I would expect boot to have files in it? What is going wrong?
-x, --one-file-system don't cross filesystem boundaries
Berny
More information about the rsync
mailing list