BACKUP CLEANUP
BACKUP CLEANUP
- Available since:
- Redis Open Source 8.10.0
- Time complexity:
- O(1)
- ACL categories:
-
@admin,@slow,@dangerous, - Compatibility:
- Redis Software and Redis Cloud compatibility
Removes sealed backup files and returns the backup state machine to idle.
Examples
127.0.0.1:6379> BACKUP CLEANUP
OK
Details
BACKUP CLEANUP removes the sealed (or failed) backup artifacts and releases the files that were pinned by hard links, moving the backup state machine from sealed back to idle. Call it after the data plane has finished copying the files reported by BACKUP LIST.
By default a sealed backup is kept until you clean it up explicitly. If the backup-sealed-ttl configuration setting is non-zero, Redis automatically cleans up a sealed backup after the configured number of seconds; a value of 0 disables automatic cleanup.
For the full workflow, see Redis persistence.
Redis Software and Redis Cloud compatibility
| Redis Software |
Redis Cloud |
Notes |
|---|---|---|
| ❌ Standard |
❌ Standard |
Return information
Simple string reply:
OK.
See also
BACKUP START | BACKUP SEAL | BACKUP STATUS | BACKUP LIST | BACKUP ABORT