Open topic with navigation
Removing Identified Snapshots
The result of the
prune snapshots command is a file that lists the albumA snapshot storage manager uses albums to efficiently manage snapshots. An album refers to a set of snapshots taken during some period of time. Also, an album provides a place to store additional state required to use snapshots.s that can be removed. NuoDB does not delete or move these albums. It is up to you to do that.
Suppose that the example in the previous topic listed one album in the specified file:
cat /tmp/remove_these_albums/Users/jdoe/data/testdb/snapshots/1.album $
To remove the listed album, you can, for example, run a script such as the following:
while read line; do echo "removing $line" && rm -r $line; done </tmp/remove_these_albumsremoving /Users/jdoe/data/testdb/snapshots/1.album $
You might consider moving these albums to archival storage. However, remember that you cannot use only a snapshot to restore data. Restoring data to a snapshot requires a hot copy operation that provides archive and journal data as well as the snapshot of interest. If you want to preserve snapshots as part of database copies that you use as backups then you must invoke the
hotcopy command, specify the snapshots of interest, and then store the result of the
hotcopy operation as the backup.