/[BackupPC]/trunk/sql/backups_on_dvds.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_on_dvds.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 365 - (hide annotations)
Thu Jan 25 09:24:02 2007 UTC (17 years, 4 months ago) by dpavlin
File size: 615 byte(s)
create view backups_on_dvds

1 dpavlin 364 -- report backups and corresponding dvd
2    
3 dpavlin 365 create view backups_on_dvds as
4 dpavlin 364 select
5     backups.id as id,
6     hosts.name || ':' || shares.name as share,
7     backups.num as num,
8     backups.type as type,
9     abstime(backups.date) as backup_date,
10     backups.size as size,
11     backups.inc_size as gzip_size,
12     archive.id as archive_id,
13     archive.dvd_nr
14     from backups
15     join shares on backups.shareid=shares.id
16     join hosts on shares.hostid = hosts.id
17     left outer join archive_backup on backups.id = archive_backup.backup_id
18     left outer join archive on archive_backup.archive_id = archive.id
19     where backups.parts > 0 and size > 0
20     order by backups.date
21     ;

  ViewVC Help
Powered by ViewVC 1.1.26