Ignoring /boot
Ben Short
ben at benshort.co.uk
Mon Sep 12 04:03:11 MDT 2011
Hi,
I have the following script that I'm writing to backup my gentoo linux
system.
----- start of script -----
#!/bin/sh
#
#
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}
----- end of script -----
When I run it I get the following output.
ben-desktop ben # ./backup
building file list ...
16 files to consider
./
boot/
dev/
lost+found/
media/
media/.keep_sys-fs_udisks-0
mnt/
mnt/.keep
mnt/exports/
mnt/exports/projects/
mnt/exports/scratch/
mnt/exports/users/
mnt/pbs/
mnt/usb/
proc/
sys/
Number of files: 16
Number of files transferred: 2
Total file size: 0 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 321
File list generation time: 0.002 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 518
Total bytes received: 56
sent 518 bytes received 56 bytes 1148.00 bytes/sec
total size is 0 speedup is 0.00 (DRY RUN)
I would expect boot to have files in it? What is going wrong?
Regards
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20110912/3e447b8b/attachment.html>
More information about the rsync
mailing list