The smo backup update command

Contributors akseldavis Download PDF of this page

You can run the backup update command to update the backup retention policy.

Syntax

        smo backup update
-profile profile_name
[-label label \[-data \| -archivelogs\] \| \[-id guid\]
\[-retain \{-hourly \| -daily \| -weekly \| -monthly \| -unlimited\}\]
\[-comment comment_text\]
[-quiet | -verbose]

Parameters

  • -profile profile_name

    Specifies the profile for which to update backups. The profile contains the identifier of the database and other database information.

  • -id guid

    Verifies the backup with the specified GUID. The GUID is generated by SnapManager when you create a backup. You can use the smo backup list command to display the GUID for each backup.

  • -label label

    Specifies the backup label and scope of the backup as data file or archive log.

  • -data

    Specifies the data files.

  • -archivelogs

    Specifies the archive log files.

  • -comment comment_text

    Enter text (up to 200 characters) about the backup update. You can include spaces.

  • -quiet

    Displays only error messages in the console. The default is to display error and warning messages.

  • -verbose

    Displays error, warning, and informational messages in the console.

  • -retain {-hourly | -daily | -weekly | -monthly | -unlimited}

    Specifies whether the backup should be retained on an hourly, daily, weekly, monthly, or unlimited basis. If -retain is not specified, the retention class defaults to -hourly. To retain backups forever, use the -unlimited option. The -unlimited option makes the backup ineligible for deletion.

Example

The following example updates the backup to be set the retention policy to unlimited:

smo backup update -profile SALES1 -label full_backup_sales_May
-retain -unlimited -comment save_forever_monthly_backup

Related information