velero:tldr:1fc4f
velero: Create a weekly backup, each living for 90 days (2160 hours).
$ velero schedule create ${schedule_name} --schedules="${@every 7d}" --ttl ${2160h0m0s}
try on your machine
This command is using the Velero CLI tool to create a new backup schedule.
velero
: This is the command-line interface tool for Velero, which is a backup and restore tool for Kubernetes clusters.schedule create
: This subcommand is used to create a new backup schedule.${schedule_name}
: This is a placeholder for the name you want to give to the backup schedule. You should replace it with the actual name you want to use.--schedules="${@every 7d}"
: This flag specifies the schedule pattern for the backups. In this case,@every 7d
means that backups should be created every 7 days. You can modify this value to set a different schedule pattern if needed.--ttl ${2160h0m0s}
: This flag sets the time-to-live (TTL) for the backups. The value2160h0m0s
represents a duration of 2160 hours (90 days). It means that backups older than 90 days will be automatically deleted. You can adjust this value according to your retention policy.
In summary, this command creates a new backup schedule with a specified name, a schedule pattern of creating backups every 7 days, and a retention policy of keeping backups for 90 days before automatically deleting them.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.