From bb86e274906e5cee187ffc7b1c23b68d63355f61 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Fri, 2 Jan 2026 00:41:13 -0500 Subject: [PATCH] FreeBSD --- freebsd/20_bastille.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/freebsd/20_bastille.md b/freebsd/20_bastille.md index 632703e..786acf6 100644 --- a/freebsd/20_bastille.md +++ b/freebsd/20_bastille.md @@ -107,8 +107,28 @@ http:// ### 10. Create a Buckup Snapshot -Once Gitea is configured and working, create a ZFS snapshot for easy backup: +Once Gitea is configured and working, create a ZFS snapshot for easy backup. ``` sh sudo zfs snapshot zroot/bastille/jails/gitea/root@fresh-install ``` + +### 11. Rollback Buckup Snapshot + +⚠️ WARNING: This destroys all changes made after the snapshot was created! + +``` sh +sudo bastille stop gitea +``` + +Rollback to the Snapshot + +``` sh +sudo zfs rollback zroot/bastille/jails/gitea/root@fresh-install +``` + +Start the Container + +``` sh +sudo bastille start gitea +```