runt1me / stormcloud

the best backup system
2 stars 0 forks source link

Storage "Pool" for common OS files #18

Open runt1me opened 1 year ago

runt1me commented 1 year ago

For OS-related files (i.e. things in C:/Windows) don’t keep more than one backup of the file, but just keep a hash. Across the entire database we don’t need more than one copy of a file, as long as the hash matches. Then we can just keep track of whether or not a given client has a given hash at a given location.

Maybe we could symlink the files on the storage side. i.e. There is a central store of Windows OS files, and then /storage/4/device/31/C/WINDOWS/system32/core.sys is just a symlink to /storage/core/windows/core.sys. Or something like that.

Estimated story points: 10

EccentricKnight commented 3 weeks ago

@runt1me Why don't we just maintain copies of all the common Windows versions saved on the server, with each version under its own folder? Then if a user needs a certain version of Windows we just "restore" that Windows version to their machine.

Alternatively we could just say we're not backing up Windows system files and add application logic for excluding specific paths (ex: C:/Windows).

runt1me commented 3 weeks ago

@EccentricKnight that idea is fair, but as I think about this more I think it might not be necessary to keep track of these files at all. If a box really blows up we are probably going to reimage it.

Can you open an issue to add "exclude paths" to the settings? And then we can probably close this one out.