I am using ERPNext with HR module installed on it. Daily backups are enabled and they’re being stored in s3. Now the restore also applies successfully. Is there any way to restore data to a specific backup. For example I might have inserted some records today and want to delete whatever I have done today and want to go to a specific state like 2 days back. Can I do that with restore?
Frappe restore exactly does that.
Bench CLI can be used to restore an existing site to a previous state. Using the bench restore
command, a site may be restored with the specific database and file restores.
In the restore command, you have to pass the specific backup file to restore to the specific state. You can find the backup date and time in the backup file name.
https://frappeframework.com/docs/user/en/bench/reference/restore
Example
bench --site thinksite.com restore /home/frappeuser/frappe-bench/sites/thinksite.com/private/backups/20240918_053003-thinksite_com-database.sql.gz
Increase Number of Backups if you want