Keeping track of subfolders that are no longer in the backed-up directory

Hello!

I have a large restic repo that I have been making incremental backups to. The situation is that I used to have the entire backed up directory tree on my laptop, but ever since I upgraded to a new one, my internal SSD’s been smaller. I had to offload most of the subfolders to an external drive.

I was just wondering if there was a clean way of handling this in restic. I don’t want to use restic on my external drive because it’s a bit inconvenient to need to ensure that it is connected before the backup script can run. But since most of the folders are ‘gone’ from my internal SSD, running normal restic there would also make it think they are deleted, even if I would still like to track those files.

I think the closest solution may be to just ‘keep-tag’ the last snapshot from before I removed the folders. If I do this though, I’d have to mentally keep track that the ‘true’ backup of my files is split between two snapshots. So I was wondering if anybody had any cleaner solutions. Thoughts?

1 Like

Check in your backup script if external drive is connected and only then run snapshot against it. It means you will have two snapshots in your repo - internal SSD one and external one with all your files in restic repo.

2 Likes