Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge multiple snapshots into one OR Append operation #3792

Open
samuelxhu opened this issue Jun 9, 2022 · 7 comments
Open

Merge multiple snapshots into one OR Append operation #3792

samuelxhu opened this issue Jun 9, 2022 · 7 comments
Labels

Comments

@samuelxhu
Copy link

I am faced with a task using restic as a archive solution. The use case is as follows: The main disk is on SSD, fast but with limited capacity, and a second HDD on USB as an archive disk. The idea is to (from time to time or on a schedule) store (archive) data on SSD to HDD, and delete those already-archived data on SSD to leave space for new data.

Thus, is there a way to merge multiple snapshots into one (Archive)? or is it possible for restic to support archive or append operation without breaking back compatibility?

thanks a lot in advance

@greatroar
Copy link
Contributor

This would be possible in theory given restic's file formats, but the question is, why do you think you need it? If disk space is the main concern, restic's deduplication should already take care of that: the same file written to the same repository twice will only get stored once, even if it's part of two distinct snapshots.

@MichaelEischer
Copy link
Member

That sounds similar to what #3405 is proposing.

@MichaelEischer MichaelEischer added category: backup state: need feedback waiting for feedback, e.g. from the submitter labels Jun 11, 2022
@samuelxhu
Copy link
Author

samuelxhu commented Jun 11, 2022 via email

@MichaelEischer
Copy link
Member

Then why don't you just create a snapshot that includes all relevant paths, that is in your case both disks?

@greatroar
Copy link
Contributor

I was assuming the restic repository was on the USB disk. Is that not correct?

@samuelxhu
Copy link
Author

samuelxhu commented Jun 12, 2022 via email

@greatroar
Copy link
Contributor

This could be solved by #3405. Alternatively, it can be solved by a view in restic mount that combines snapshots, or even a union mount on top of restic mount.

(It is stretching restic's intended purpose from backup to archiving, but I admit I would find this useful too...)

@MichaelEischer MichaelEischer added type: feature suggestion suggesting a new feature and removed state: need feedback waiting for feedback, e.g. from the submitter labels Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants