• 1 Post
  • 478 Comments
Joined 6 months ago
cake
Cake day: December 26th, 2023

help-circle

  • Yes you can do this. Two problems:

    It isn’t fast. Watch your MTU.

    Youll have to make sure return packets come through the VPS on their way back. You’ll have to set up those packets to masquerade on their way out, otherwise you’d see internal IPs on the internet (they get dropped immediately). You can either masquerade them on the inside so they appear to be coming from your VPS (internally), or if you want the destination computer to see the real Internet IP, you’d need to set up rules on the destinarion computer which routes packets through the VPS otherwise they’d return via the default gateway.


  • Files on a hard drive aren’t directly files. Folders, for example, are just metadata things which contain pointers to things like the previous directory and files within it (along with names) AND other metadata like owner, group, and permissions. Files have a similar metadata thing (they’re called inodes) which things like owner, permissions, and a block manifest (where the data is stored) and critically: a count of how many things point to it.

    This count is needed because of hard links. A hard link is two folders pointing to one of these file metadata blocks as different files. The count is used to ensure that a file that is still in use isn’t deleted. This also means a hardlinked file must share at least some permissions. Most systems are also set up to only cache one copy of the file in RAM if such a situation were to come up.

    So what I assume time shift does (can’t use it because it has an aneurism when it sees a RAID drive for some fucking reason) is store independent “copies” of files per each backup, where only changed files are stored and the rest are hard linked. There is still storage used for the new folders but its on the scale of hundreds of KiloBytes. The software can purge one of the backups safely without affecting another, including the first backup.

    A soft link is just a file that contains a file path. Like a shortcut.