acockworkorange,

Sure. So a snapshot in itself doesn’t consume more than a few KB. The filesystem has a Copy On Write (COW) behavior, meaning it doesn’t overwrite edits on files by default. It moves the pointer to the file to a new location and writes the new version there. If there is nothing still pointing to the old data, that space is now considered free and can be overwritten.

A snapshot basically keeps pointers to data in the past. So it’s not entirely free, in the sense that older versions of files will remain and therefore not free up disk space as long as that snapshot exists. But it’s free in the sense that no data is copied to create a snapshot. Your filesystem is always only writing the difference to the last snapshot.

If you configure snapshots at small intervals and configure them not to be erased, you’ll compile the history for all the changes in all your files since ever. And that will definitely cost you space.

Typical scenarios are a daily snapshot that you keep for a week and a weekly snapshot that you keep for a month. That will cost you very little space (again in typical desktop use cases). If you have a streaming folder, a COW filesystem might not be the best idea. Or at least create a subvolume that doesn’t get snapshots.

Snapshots don’t replace backups and if you need older data that a month, that’s what backups are for.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • fightinggames
  • All magazines