130 |
FROM backups |
FROM backups |
131 |
INNER JOIN shares ON backups.shareID=shares.ID |
INNER JOIN shares ON backups.shareID=shares.ID |
132 |
INNER JOIN hosts ON backups.hostID = hosts.ID |
INNER JOIN hosts ON backups.hostID = hosts.ID |
133 |
where hosts.name = ? and shares.name = ? and backups.num = ? |
WHERE hosts.name = ? and shares.name = ? and backups.num = ? |
134 |
}); |
}); |
135 |
$sth->execute($host, $share, $num); |
$sth->execute($host, $share, $num); |
136 |
my ($id) = $sth->fetchrow_array; |
my ($id) = $sth->fetchrow_array; |
387 |
and shares.id = backups.shareid |
and shares.id = backups.shareid |
388 |
join hosts on shares.hostid = hosts.id |
join hosts on shares.hostid = hosts.id |
389 |
full outer join backup_parts on backups.id = backup_parts.backup_id |
full outer join backup_parts on backups.id = backup_parts.backup_id |
390 |
where not inc_deleted |
where not inc_deleted and backups.size > 0 |
391 |
group by backups.id, hosts.name, shares.name, backups.num, backups.date, inc_size, parts, backup_parts.backup_id |
group by backups.id, hosts.name, shares.name, backups.num, backups.date, inc_size, parts, backup_parts.backup_id |
392 |
order by backups.date |
order by backups.date |
393 |
|
|