<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Thanks for the response.  I tried a few simple tests myself and it does indeed appear to work.  Seems like a few years ago I was able to reproduce the behavior described at http://defindit.com/readme_files/rsync_backup.html which says that if you use a trailing slash then --delete won't delete top-level directories.  Maybe it's been fixed with newer rsync's, or maybe I was confused all along?  Either way, it appears to work.<br><br>-BJ Quinn<br><br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Kevin Korb" <kmk@sanitarium.net><br><b>To: </b>rsync@lists.samba.org<br><b>Sent: </b>Thursday, August 11, 2011 2:14:53 PM<br><b>Subject: </b>Re: rsync, trailing slash, and --delete<br><br>-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>delete will still work.<br><br>On 08/11/11 15:06, BJ Quinn wrote:<br>> I'm trying to rsync a folder like so -<br>> <br>> rsync -aP --delete /home/share_20110801 /lastbackup/share<br>> <br>> Under the /lastbackup folder there is a "share" folder.  I'd like to<br>> rsync all the contents of the "share _20110801" folder directly under<br>> the the "share" folder under /lastbackup.  I know I can add the trailing<br>> slash to the source directory to accomplish this, but then as I<br>> understand it --delete won't work in that top-level directories deleted<br>> in the source won't be deleted in the destination.  Is there any way to<br>> rsync from a folder to a differently named folder without breaking --delete?<br>> <br>> Thanks!<br>> <br>> -BJ Quinn<br>> <br><br>- -- <br>~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>        Kevin Korb                        Phone:    (407) 252-6853<br>        Systems Administrator                Internet:<br>        FutureQuest, Inc.                Kevin@FutureQuest.net  (work)<br>        Orlando, Florida                kmk@sanitarium.net (personal)<br>        Web page:                        http://www.sanitarium.net/<br>        PGP public key available on web site.<br>~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v2.0.17 (GNU/Linux)<br><br>iEYEARECAAYFAk5EKiwACgkQVKC1jlbQAQfYugCeKmQDv/DCVCq/ScGsfQZYqq/L<br>SqAAmwRq4TvotRI0bP8Dwm6KSfNLtt3Y<br>=Yv5o<br>-----END PGP SIGNATURE-----<br>-- <br>Please use reply-all for most replies to avoid omitting the mailing list.<br>To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync<br>Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html<br></div><br></div></body></html>