> For the complete documentation index, see [llms.txt](https://codingmace.gitbook.io/masterward/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codingmace.gitbook.io/masterward/software/work-in-progress/incremental-backup.md).

# Incremental Backup

## Origin

For this project I had a lot of times I thought about it. Windows incremental backup, GitHub, my friends, but overall it was me who was going to use it so that is the real origin. I like to have a lot and I mean A LOT of data. I back up my phone every month and when I do that I zip up the full backup and put that in another location. This gets big over time as 5 GB every month is 60 GB a year not including all the other full backups I do of projects. I would backup everything on the cloud, like why not, I have space. Well at one point I just had so much space going to this I figured it was about time to change that.

### Initial Thoughts

So most people get confused when this is a title, like what, why, huh, what. Let me just answer that you lose nothing by doing it as the lost space in almost all cases is > .1%, saying that I typically get 20% - 40% gain.&#x20;

## Breaking Down options

So we are given 2 options, compress and decompress. I will start by talking about compression.

When you have files you can do 4 things which are, create, delete, rename, and modify. Let me map it out easily as the function happening and the result. We are going to assume they are in a folder with each version. (NOTE: The stats file is a record of what happens)\
1\. Create - Do nothing to file, write nothing to stats\
2\. Delete - Delete file, Write last version path of the file to stats\
3\. Rename - Delete file, write last version path of the file and that file to stats\
4\. Modify - Do nothing to file, Write nothing to stats

###


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://codingmace.gitbook.io/masterward/software/work-in-progress/incremental-backup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
