Hi there, do you know how to limit the number of h...
# general
c
Hi there, do you know how to limit the number of history files? currently we have 17900 history files inside folder
history
just for 2 weeks and folder size is
9.4G
=.=!
r
@creamy-monkey-35142 can you provide some more context here? What history file and folder do you mean?
c
Hi,
Copy code
root@pulumi:/srv/pulumi# pulumi login
Logged in to pulumi as root (file://.)
the folder
history
is at the same location with state file
Copy code
root@pulumi:/srv/pulumi/.pulumi# tree -L 1
.
├── backups
├── credentials.json
├── history
├── locks
├── plugins
├── stacks
├── templates
└── workspaces
and it store files ending with
checkpoint.json
checkpoint.json.attrs
.history.json
history.json.attrs
r
For self-managed backends, there is no automation around expiring history. They can safely be deleted in most cases unless you want to roll back.