projects
/
BackupPC.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
pm -> pod
[BackupPC.git]
/
sql
/
backups.sql
1
-- 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;