> I know that there are external ways to do this, but I thought it would be > fastest and best as an rsync feature. I've been using rsync for a while now in > some fairly advanced backup schemes and I'm extremely impressed by it. I was > thinking it would be quite helpful if there were an option to ignore > directories with a certain file in them, say .ignore-backup or .ignore-rsync. > This would make for an easy way to avoid copying excess data, whether it be > extracted source tarballs, or existing backups. > > I know that rsync supports filter files of a certain name, but I'd like an > option where if it sees the file and it's blank, it simply skips the > directory. > > So for example: > > /home/user/backup/.ignore-rsync exists and is blank, then /home/user/backup is > ignored, but the it continues onto other folders. If it has filter rules in > it, > it can continue with processing those rules. > > Let me know what you think. I believe it would be a very helpful and simple > feature to add.
An alternative approach would be to run a pre rsync script which builds your exclusion list. ------------------------------------- This message is protected by LBackup http://www.lbackup.org -- 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
