Alex Ferrara wrote: > My problem is that if I mark a directory to have a snapshot created > before rsync and use the -R (relative) option, the directory > structure on the destination system will be the relative path of > where I mounted the snapshot (/mnt/sync-snapshot in my case). If I > don't use the -R option, and I am trying to back up a snapshot of > the directory /var/spool/cyrus, how can I get rsync to create the > /var/spool directories for me before the sync? > > The following works, but creates /mnt/sync-snapshot on the destination server > r...@percy:/# rsync -auRv /mnt/sync-snapshot ds9::kingston
mkdir -p /mnt/alt-snapshot/var/spool/cyrus mount /mnt/sync-snapshot /mnt/alt-snapshot/var/spool/cyrus -t bind rsync -auRv /mnt/alt-snapshot/./var/spool/cyrus ds9::kingston umount /mnt/alt-snapshot/var/spool/cyrus -- Jamie -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html