Hi all, Ok, since 3.1 still isn't in stable, I'm curious if I can just find the equivalent of: rsync -avHP --delete --exclude-from '/home/user/excludes.txt' /mnt/example.com/ /var/vmail/example.com/ But that will ignore differences in permissions - ie, won't recopy everything, just because the permissions on the source are different from the permissions on the target... So, would this just be: rsync -rltgovDHP --delete --exclude-from '/home/user/excludes.txt' /mnt/example.com/ /var/vmail/example.com/ ? Thanks, -- Best regards, */Charles/* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20131222/e0e130e6/attachment.html>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 That would be -a except for the -p part. On 12/22/2013 02:58 PM, Charles Marcus wrote:> Hi all, > > Ok, since 3.1 still isn't in stable, I'm curious if I can just find > the equivalent of: > > rsync -avHP --delete --exclude-from '/home/user/excludes.txt' > /mnt/example.com/ /var/vmail/example.com/ > > But that will ignore differences in permissions - ie, won't recopy > everything, just because the permissions on the source are > different from the permissions on the target... > > So, would this just be: > > rsync -rltgovDHP --delete --exclude-from '/home/user/excludes.txt' > /mnt/example.com/ /var/vmail/example.com/ > > ? > > Thanks, > > -- > > Best regards, > > */Charles/* > >- -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. Kevin at FutureQuest.net (work) Orlando, Florida kmk at sanitarium.net (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlK3RRUACgkQVKC1jlbQAQeeTwCg8MkTCvBecgk82QQID+ulQuE+ eAQAn08lT4QJPkf9cMlS/2lZHAYL0OhJ =NV4T -----END PGP SIGNATURE-----
On 2013-12-22 2:58 PM, Charles Marcus <CMarcus at Media-Brokers.com> wrote:> rsync -rltgovDHP --delete --exclude-from '/home/user/excludes.txt' > /mnt/example.com/ /var/vmail/example.com/Also... being the paranoid schizophrenic that I am, adding the --delete option makes me nervous. There is no way that the above command could end up deleting anything from '/mnt/example.com' (the source)... correct? I'm adding it to avoid the problem I had with the second run creating duplicate emails. Thanks, -- Best regards, */Charles/* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20131222/75c04b59/attachment.html>
On Sun, Dec 22, 2013 at 11:58 AM, Charles Marcus <CMarcus at media-brokers.com>wrote:> But that will ignore differences in permissions - ie, won't recopy > everything, just because the permissions on the source are different from > the permissions on the target... >Rsync never recopies anything (which implies a file transfer) because of permission differences -- it just updates the permissions. If you mean that you want to avoid permission changes, you can just add --no-p on the command-line after the -a (but keep in mind you may need to fix up permissions for any new transfers). I also recommend -i (--itemize-changes) to see what is happening (and --dry-run lets you test it). ..wayne.. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20131223/c581f3a2/attachment.html>
Possibly Parallel Threads
- Thunderbird message cache out of sync after repetitive rsyncs...
- Server Migration Attempt - new messages DELETED after secondary rsyncs
- Duplicated (but only for unread) messages after second rsync pass...
- Patch to revive tmpfiles
- How to set different permissions on target