Skip to content

Delete fs directory after compression#2

Merged
JasonLovesDoggo merged 1 commit intomainfrom
JasonLovesDoggo/delete-fs-directory
Feb 13, 2025
Merged

Delete fs directory after compression#2
JasonLovesDoggo merged 1 commit intomainfrom
JasonLovesDoggo/delete-fs-directory

Conversation

@JasonLovesDoggo
Copy link
Copy Markdown
Member

Delete the fs directory after converting to a tarfile to reduce space costs.

  • Add a function deleteDirectory in handlers/filesystem.go to delete the fs directory after creating the tarfile.
  • Call deleteDirectory in the Backup function in handlers/filesystem.go after creating the tarfile.
  • Add a call to deleteDirectory in performBackup in sentinel/main.go after the tarfile is created.
  • Add a function deleteDirectory in sentinel/main.go to delete the fs directory.

Delete the `fs` directory after converting to a tarfile to reduce space costs.

* Add a function `deleteDirectory` in `handlers/filesystem.go` to delete the `fs` directory after creating the tarfile.
* Call `deleteDirectory` in the `Backup` function in `handlers/filesystem.go` after creating the tarfile.
* Add a call to `deleteDirectory` in `performBackup` in `sentinel/main.go` after the tarfile is created.
* Add a function `deleteDirectory` in `sentinel/main.go` to delete the `fs` directory.
@JasonLovesDoggo JasonLovesDoggo merged commit 9dad0fb into main Feb 13, 2025
@JasonLovesDoggo JasonLovesDoggo deleted the JasonLovesDoggo/delete-fs-directory branch February 13, 2025 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant