/[BackupPC]/trunk/sql/backups.sql
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/sql/backups.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 75 - (hide annotations)
Fri Aug 26 20:44:24 2005 UTC (18 years, 9 months ago) by dpavlin
File size: 263 byte(s)
added some useful SQL examples. They are lightly commented within each file.

1 dpavlin 75 -- report number of files in each backup
2    
3     select
4     shares.name,
5     hosts.name,
6     backupnum,
7     count(*)
8     from files
9     join shares on shareid=shares.id
10     join hosts on hostid = hosts.id
11     group by shares.name, hosts.name, backupnum
12     order by hosts.name, shares.name, backupnum;

  ViewVC Help
Powered by ViewVC 1.1.26