View Source mix ash_postgres.squash_snapshots (ash_postgres v2.5.0)
Cleans snapshots folder, leaving only one snapshot per resource.
Examples
mix ash_postgres.squash_snapshots
mix ash_postgres.squash_snapshots --check --quiet
mix ash_postgres.squash_snapshots --into zero
mix ash_postgres.squash_snapshots --dry-runCommand line options
--into-last,firstorzero. The default islast. Determines which name to use for a remaining snapshot.lastkeeps the name of the last snapshot,firstrenames it to the previously first,zerosets name with fourteen zeros.--snapshot-path- a custom path to stored snapshots. The default is "priv/resource_snapshots".--quiet- no messages will not be printed.--dry-run- no files are touched, instead prints folders that have snapshots to squash.--check- no files are touched, instead returns an exit(1) code if there are snapshots to squash.
Summary
Functions
Callback implementation for Mix.Task.run/1.
Functions
Callback implementation for Mix.Task.run/1.