https://pulumi.com logo
Title
c

creamy-monkey-35142

01/13/2023, 8:33 AM
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

rough-morning-53309

01/13/2023, 3:28 PM
@creamy-monkey-35142 can you provide some more context here? What history file and folder do you mean?
c

creamy-monkey-35142

01/14/2023, 12:13 AM
Hi,
root@pulumi:/srv/pulumi# pulumi login
Logged in to pulumi as root (file://.)
the folder
history
is at the same location with state file
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

rough-morning-53309

01/17/2023, 8:50 PM
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.