I use --filter='dir-merge .backup-filter" to allow my users to designate portions of their home directories that should be excluded from my rsync-based backup system. I'm looking for a way to periodically generate a report that shows the amount of backup space being used by each user. I've tinkered with writing my own script that processes any filter files into --exclude parameters for "du" but recently, I've been wondering if there's an easier way that would use rsync itself, the --filter argument, and --dry-run. Anyone ever run into something like this? P
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Why not do the du on the backup where the excluded files aren't there? On 10/05/11 12:57, Paul Dugas wrote:> I use --filter='dir-merge .backup-filter" to allow my users to > designate portions of their home directories that should be excluded > from my rsync-based backup system. I'm looking for a way to > periodically generate a report that shows the amount of backup space > being used by each user. I've tinkered with writing my own script > that processes any filter files into --exclude parameters for "du" but > recently, I've been wondering if there's an easier way that would use > rsync itself, the --filter argument, and --dry-run. Anyone ever run > into something like this? > > P- -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ 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.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6MjwcACgkQVKC1jlbQAQdXmwCg4svGXZBq0uUFfbRdkJW7gvWe LDcAnj1ZbtjppnU2wh84LL+ps7Q5iT78 =7t6m -----END PGP SIGNATURE-----
I appreciate the suggestions so far but I know how to measure usage with 'du' et al. The hitch here is that I want to exclude files the --filter='dir-merge .rsync-filter' excludes. Hense the thought to use rsync itself. On Oct 6, 2011 11:02 AM, "K S Braunsdorf" <ksb at sac.fedex.com> wrote:>>that processes any filter files into --exclude parameters for "du" but >>recently, I've been wondering if there's an easier way that would use > > If your backups are all on a single partition you might try quot(8) > ("quot -- display disk space occupied by each user"). I wrote a > very simple perl script to munge quot ouptut to create a "diskhogs" > report about 20 years ago, and I still use it today. I suggest you > take the output of > quot -kvf $BACKUP_DEVICE > > and filter it to fit your needs. If you can't find a "quot" for your > OS I might have a C program that works as a replacement. > > --ksb at_host sac.fedex.com-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20111006/e58962d1/attachment.html>