Forget with rclone

Hi,

Would just like some validation before I go ahead with an operation to cull unneeded snapshots.

My current setup is

  • restic backup sent to a rest-server instance running on a local server
  • rclone copy –immutable on the server to sync the data to cloud storage

The repo is getting large and so I’d like to prune some unnecessary snapshots. I found the docs for how to do that using restic but am wondering how to also remove the data from the cloud.

My best guess is to do something like

  1. use restic forget to remove the unnecessary snapshots from my local repo
  2. run a one-time rclone sync to synchronize the local repo to the cloud

In theory this should reset the cloud to exactly match the local repo after the snapshots have been removed.

Any concerns with this approach? Is there a safer alternative?

Thanks in advance!

Yes it will work.

Do not forget to run prune as forget only marks data as unused.

IMO it would be much better solution to run two independent backups from the start. In your case the chances are that if for whatever reason your local backup gets corrupted you will blindly copy it to your cloud.

2 Likes