Backup schedules

Rackspace allows scheduling of weekly and/or daily backups for virtual servers. You can access these backup schedules either off the API object as CloudServers.backup_schedules, or directly off a particular Server instance as Server.backup_schedule.

Classes

class cloudservers.BackupScheduleManager(api)

Manage server backup schedules.

create(server, enabled=True, weekly='DISABLED', daily='DISABLED')

Create or update the backup schedule for the given server.

Parameters:
  • server – The server (or its ID).
  • enabled – boolean; should this schedule be enabled?
  • weekly – Run a weekly backup on this day (one of the BACKUP_WEEKLY_* constants)
  • daily – Run a daily backup at this time (one of the BACKUP_DAILY_* constants)
delete(server)

Remove the scheduled backup for server.

Parameters:
  • server – The server (or its ID).
update(server, enabled=True, weekly='DISABLED', daily='DISABLED')

Create or update the backup schedule for the given server.

Parameters:
  • server – The server (or its ID).
  • enabled – boolean; should this schedule be enabled?
  • weekly – Run a weekly backup on this day (one of the BACKUP_WEEKLY_* constants)
  • daily – Run a daily backup at this time (one of the BACKUP_DAILY_* constants)
get(server)

Get the current backup schedule for a server.

Parameters:
  • server – The server (or its ID).
Return type:

BackupSchedule

class cloudservers.BackupSchedule(manager, info)

Represents the daily or weekly backup schedule for some server.

enabled

Is this backup enabled? (boolean)

weekly

The day of week upon which to perform a weekly backup.

daily

The daily time period during which to perform a daily backup.

update(enabled=True, weekly='DISABLED', daily='DISABLED')

Update this backup schedule.

See BackupScheduleManager.create() for details.

delete()

Delete (i.e. disable and remove) this scheduled backup.

Constants

Constants for selecting weekly backup days:

cloudservers.BACKUP_WEEKLY_DISABLED
cloudservers.BACKUP_WEEKLY_SUNDAY
cloudservers.BACKUP_WEEKLY_MONDAY
cloudservers.BACKUP_WEEKLY_TUESDAY
cloudservers.BACKUP_WEEKLY_WEDNESDA
cloudservers.BACKUP_WEEKLY_THURSDAY
cloudservers.BACKUP_WEEKLY_FRIDAY
cloudservers.BACKUP_WEEKLY_SATURDAY

Constants for selecting hourly backup windows:

cloudservers.BACKUP_DAILY_DISABLED
cloudservers.BACKUP_DAILY_H_0000_0200
cloudservers.BACKUP_DAILY_H_0200_0400
cloudservers.BACKUP_DAILY_H_0400_0600
cloudservers.BACKUP_DAILY_H_0600_0800
cloudservers.BACKUP_DAILY_H_0800_1000
cloudservers.BACKUP_DAILY_H_1000_1200
cloudservers.BACKUP_DAILY_H_1200_1400
cloudservers.BACKUP_DAILY_H_1400_1600
cloudservers.BACKUP_DAILY_H_1600_1800
cloudservers.BACKUP_DAILY_H_1800_2000
cloudservers.BACKUP_DAILY_H_2000_2200
cloudservers.BACKUP_DAILY_H_2200_0000

Table Of Contents

Previous topic

API Reference

Next topic

Exceptions

This Page