Skip to content

Commit dd5fbb8

Browse files
authored
Merge pull request #64 from utilitywarehouse/backups-fix
dont recreate existing schedules
2 parents 68eb0a5 + e3a4fee commit dd5fbb8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

base/scripts.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ data:
4343
4444
$SQL_CMD << EOF
4545
BEGIN;
46-
-- clear any existing schedules
47-
DROP SCHEDULES SELECT id FROM [SHOW SCHEDULES] WHERE label = 'cluster_backup';
4846
-- create a new schedule
49-
CREATE SCHEDULE cluster_backup
47+
CREATE SCHEDULE IF NOT EXISTS cluster_backup
5048
FOR BACKUP INTO '$BACKUP_DESTINATION_URL'
5149
RECURRING '$BACKUP_SCHEDULE'
5250
FULL BACKUP ALWAYS

0 commit comments

Comments
 (0)