Table of ContentsView in Frames

Changing the Snapshot copy schedule

You can change the Snapshot copy schedule for a specific volume by using the snap sched command.

Step

  1. To change the Snapshot copy schedule for a specific volume, enter the following command:snap sched vol_name weekly nightly hourly@n,n,....

    vol_name is the name of the specific volume for the Snapshot copy.

    weekly is the number of weekly Snapshot copies to keep.

    nightly is the number of nightly Snapshot copies to keep.

    hourly is the number of hourly Snapshot copies to keep.

    n,n,... specifies the hours at which to create the hourly Snapshot copies.

    Note: A zero in any of the three schedules (weekly, nightly, hourly) disables Snapshot copies for that interval.

Default snap sched command results

This is the default automatic Snapshot copy schedule: snap sched volx 0 2 6 @8,12,16,20 The following example lists the Snapshot copies created using the default schedule (where January 11 is a Sunday):
ls -lu .snapshot
total 64
drwxrwsrwx 1 root 4096 Jan 14 12:00 hourly.0
drwxrwsrwx 1 root 4096 Jan 14 08:00 hourly.1
drwxrwsrwx 1 root 4096 Jan 13 20:00 hourly.2
drwxrwsrwx 1 root 4096 Jan 13 16:00 hourly.3
drwxrwsrwx 1 root 4096 Jan 13 12:00 hourly.4
drwxrwsrwx 1 root 4096 Jan 13 08:00 hourly.5
drwxrwsrwx 1 root 4096 Jan 14 00:00 nightly.0
drwxrwsrwx 1 root 4096 Jan 13 00:00 nightly.1
Note: Daily Snapshot copies are created at midnight of each day except Sunday, and weekly Snapshot copies are created at midnight on Sunday. Only one Snapshot copy is created at a time. If a weekly Snapshot copy is being created, for instance, a daily or hourly Snapshot copy is not created even if one is scheduled.