{"id":440,"date":"2026-11-28T22:48:42","date_gmt":"2026-11-28T22:48:42","guid":{"rendered":"https:\/\/goadmio.com\/blog\/go-snapshot-command\/"},"modified":"2026-11-28T22:48:42","modified_gmt":"2026-11-28T22:48:42","slug":"go-snapshot-command","status":"publish","type":"post","link":"https:\/\/goadmio.com\/blog\/go-snapshot-command\/","title":{"rendered":"\/go\/snapshot: snapshot from the Command Line"},"content":{"rendered":"<p>\/go\/snapshot keeps point-in-time copies of hosting accounts in restic repositories, one repository per domain. It: Snapshots are stored on a remote (through rclone) when one is configured, and in \/var\/snapshot\/&lt;domain&gt; otherwise. Every admin action in <a href=\"https:\/\/www.goadmio.com\/\">GoAdmio<\/a> has a matching <code>\/go\/<\/code> command, so anything you can click you can also script.<\/p>\n<h2>Quick start<\/h2>\n<p><code># Back up one account<br \/>\n\/go\/snapshot example.com<\/p>\n<p># List its snapshots<br \/>\n\/go\/snapshot example.com list<\/p>\n<p># Restore everything from a date<br \/>\n\/go\/snapshot example.com restore 2026-11-18<br \/>\n<\/code><\/pre>\n<h2>Options<\/h2>\n<table>\n<thead>\n<tr>\n<th>Option<\/th>\n<th>Applies to<\/th>\n<th>Notes<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>--www<\/code><\/td>\n<td><code>restore<\/code><\/td>\n<td>Restores only <code>\/home\/&lt;domain&gt;\/www<\/code> and recreates subdomains.<\/td>\n<\/tr>\n<tr>\n<td><code>--mail<\/code><\/td>\n<td><code>restore<\/code><\/td>\n<td>Restores only <code>\/home\/&lt;domain&gt;\/mail<\/code> and recreates the mailboxes.<\/td>\n<\/tr>\n<tr>\n<td><code>--database<\/code><\/td>\n<td><code>restore<\/code><\/td>\n<td>Restores only the account&#8217;s <code>log<\/code> folder (dumps and saved settings) and re-creates the MySQL\/MariaDB and PostgreSQL databases.<\/td>\n<\/tr>\n<tr>\n<td><code>--skip mysql<\/code><\/td>\n<td><code>restore<\/code><\/td>\n<td>Creates the MySQL\/MariaDB database records but doesn&#8217;t import the dumps. It has no effect on backups.<\/td>\n<\/tr>\n<tr>\n<td><code>--list<\/code><\/td>\n<td>Any domain<\/td>\n<td>Prints `short-id<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>--www<\/code>, <code>--mail<\/code>, and <code>--database<\/code> can be combined. With none of them, <code>restore<\/code> restores everything.<\/p>\n<h2>Examples<\/h2>\n<p><code># Back up everything that has snapshots enabled<br \/>\n\/go\/snapshot all<br \/>\n<\/code><\/pre>\n<p><code># Back up one account, then check<br \/>\n\/go\/snapshot example.com<br \/>\n\/go\/snapshot example.com list<br \/>\n<\/code><\/pre>\n<p><code># Machine-readable list: short-id|tag|unix-time<br \/>\n\/go\/snapshot example.com --list<br \/>\n<\/code><\/pre>\n<p><code># Restore only the website files, from a date<br \/>\n\/go\/snapshot example.com restore 2026-11-18 --www<br \/>\n<\/code><\/pre>\n<p><code># Restore only the databases, from a snapshot ID<br \/>\n\/go\/snapshot example.com restore 3f9a1c2b --database<br \/>\n<\/code><\/pre>\n<p><code># Restore mail but don't import MySQL dumps<br \/>\n\/go\/snapshot example.com restore 2026-11-18 --mail --skip mysql<br \/>\n<\/code><\/pre>\n<p><code># Restore one folder<br \/>\n\/go\/snapshot \/home\/example.com\/www\/uploads 2026-11-18<br \/>\n<\/code><\/pre>\n<p><code># Restore one database dump<br \/>\n\/go\/snapshot \/home\/example.com\/log\/mysql\/example_db.sql 2026-11-18<br \/>\n<\/code><\/pre>\n<p><code># Restore one mailbox folder<br \/>\n\/go\/snapshot info@example.com 2026-11-18<br \/>\n<\/code><\/pre>\n<p><code># Delete all snapshots of one account<br \/>\n\/go\/snapshot example.com delete<br \/>\n<\/code><\/pre>\n<h2>Output<\/h2>\n<table>\n<thead>\n<tr>\n<th>Outcome<\/th>\n<th>What you get<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Backup of all accounts<\/td>\n<td><code>[N\/C] Snapshot Backup &lt;domain&gt;...<\/code> for each account, then restic&#8217;s output.<\/td>\n<\/tr>\n<tr>\n<td>Backup of one account<\/td>\n<td><code>Creating Snapshot: &lt;repository&gt;...<\/code>, then restic&#8217;s output.<\/td>\n<\/tr>\n<tr>\n<td>Missing repository<\/td>\n<td><code>Repository Missing: &lt;repository&gt;, System will Initialize new Repository.<\/code><\/td>\n<\/tr>\n<tr>\n<td>Another run in progress<\/td>\n<td><code>Instance (&lt;name&gt;) already running.<\/code> and exit code <code>1<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>Domain not found<\/td>\n<td><code>Domain &lt;domain&gt; does not exist<\/code>, or <code>User &lt;user&gt; does not exist<\/code> on cPanel.<\/td>\n<\/tr>\n<tr>\n<td>Unknown account<\/td>\n<td><code>SNAPSHOT: Domain Directory \/home\/&lt;name&gt; not Exists<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>Unknown archive<\/td>\n<td><code>Archive &lt;archive&gt; does not exist<\/code>, followed by the repository&#8217;s snapshot list.<\/td>\n<\/tr>\n<tr>\n<td>Restore<\/td>\n<td><code>Restoring Snapshot TAG &lt;archive&gt;...<\/code> or <code>Restoring Snapshot ID &lt;archive&gt;...<\/code>, then a section for subdomains, mail, MySQL\/MariaDB, and PostgreSQL.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Exit codes<\/h3>\n<p>Backups finish normally. These modes always exit with code <code>1<\/code>, even on success: <code>list<\/code>, restoring a single dump, a path, or a mailbox, and <code>--list<\/code>.<\/p>\n<h3>Logging<\/h3>\n<p>Every run is appended to <code>\/var\/log\/go\/snapshot.log<\/code>.<\/p>\n<h3>Locking<\/h3>\n<p>Full runs (<code>all<\/code>, no argument, <code>check<\/code>, and cPanel usernames) take the lock file <code>\/usr\/local\/goadmio\/lock\/backup.lock<\/code>, which is shared with <a href=\"backup\"><code>backup<\/code><\/a>. A lock younger than one hour blocks a second run. An older lock is treated as stale and replaced. Runs for a single domain, path, or mailbox don&#8217;t take the lock.<\/p>\n<h3>Security<\/h3>\n<blockquote>\n<p>[!WARNING]<br \/>\nEvery repository is encrypted with the same fixed password, <code>GoPanel<\/code>. Anyone who can read the repository files, for example on the remote storage, can open every snapshot. Snapshots contain site files, database dumps, MariaDB password hashes, PostgreSQL passwords in plain text, and a saved password line (see <a href=\"#notes-for-maintainers\">Notes for maintainers<\/a>).<\/p>\n<\/blockquote>\n<p>The MariaDB root password is also passed on the command line during dumps, so it can be visible in the process list.<\/p>\n<p>See the full reference at <a href=\"https:\/\/www.goadmio.com\/commands\/snapshot\">\/go\/snapshot<\/a> and the <a href=\"https:\/\/www.goadmio.com\/commands\">GoAdmio command index<\/a>.<\/p>\n<p>GoAdmio is free and open source, with no license fees and no account limits. Read the <a href=\"https:\/\/www.goadmio.com\/docs\/\">GoAdmio docs<\/a>, or see why it is a <a href=\"https:\/\/www.goadmio.com\/cpanel-alternative.html\">free cPanel alternative<\/a> at <a href=\"https:\/\/www.goadmio.com\/\">goadmio.com<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/go\/snapshot keeps point-in-time copies of hosting accounts in restic repositories, one repository per domain. It: Snapshots are stored on a remote (t&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-440","post","type-post","status-publish","format-standard","hentry","category-command-line"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\/go\/snapshot: snapshot from the Command Line - GoAdmio<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/goadmio.com\/blog\/go-snapshot-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\/go\/snapshot: snapshot from the Command Line - GoAdmio\" \/>\n<meta property=\"og:description\" content=\"\/go\/snapshot keeps point-in-time copies of hosting accounts in restic repositories, one repository per domain. It: Snapshots are stored on a remote (t...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/goadmio.com\/blog\/go-snapshot-command\/\" \/>\n<meta property=\"og:site_name\" content=\"GoAdmio\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-28T22:48:42+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-snapshot-command\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-snapshot-command\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#\\\/schema\\\/person\\\/2792dfae1ff31de5831fd5c9ede251ce\"},\"headline\":\"\\\/go\\\/snapshot: snapshot from the Command Line\",\"datePublished\":\"2026-11-28T22:48:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-snapshot-command\\\/\"},\"wordCount\":385,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#organization\"},\"articleSection\":[\"Command Line\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-snapshot-command\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-snapshot-command\\\/\",\"url\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-snapshot-command\\\/\",\"name\":\"\\\/go\\\/snapshot: snapshot from the Command Line - GoAdmio\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#website\"},\"datePublished\":\"2026-11-28T22:48:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-snapshot-command\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-snapshot-command\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-snapshot-command\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\\\/go\\\/snapshot: snapshot from the Command Line\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/\",\"name\":\"GoAdmio\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#organization\",\"name\":\"GoAdmio\",\"url\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/goadmio-logo.png\",\"contentUrl\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/goadmio-logo.png\",\"width\":1200,\"height\":1200,\"caption\":\"GoAdmio\"},\"image\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#\\\/schema\\\/person\\\/2792dfae1ff31de5831fd5c9ede251ce\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d4bb3c53e2296776392ae05085feace43ad3be136196668f9d414210355127bd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d4bb3c53e2296776392ae05085feace43ad3be136196668f9d414210355127bd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d4bb3c53e2296776392ae05085feace43ad3be136196668f9d414210355127bd?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/goadmio.com\\\/blog\"],\"url\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\/go\/snapshot: snapshot from the Command Line - GoAdmio","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/goadmio.com\/blog\/go-snapshot-command\/","og_locale":"en_US","og_type":"article","og_title":"\/go\/snapshot: snapshot from the Command Line - GoAdmio","og_description":"\/go\/snapshot keeps point-in-time copies of hosting accounts in restic repositories, one repository per domain. It: Snapshots are stored on a remote (t...","og_url":"https:\/\/goadmio.com\/blog\/go-snapshot-command\/","og_site_name":"GoAdmio","article_published_time":"2026-11-28T22:48:42+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/goadmio.com\/blog\/go-snapshot-command\/#article","isPartOf":{"@id":"https:\/\/goadmio.com\/blog\/go-snapshot-command\/"},"author":{"name":"admin","@id":"https:\/\/goadmio.com\/blog\/#\/schema\/person\/2792dfae1ff31de5831fd5c9ede251ce"},"headline":"\/go\/snapshot: snapshot from the Command Line","datePublished":"2026-11-28T22:48:42+00:00","mainEntityOfPage":{"@id":"https:\/\/goadmio.com\/blog\/go-snapshot-command\/"},"wordCount":385,"commentCount":0,"publisher":{"@id":"https:\/\/goadmio.com\/blog\/#organization"},"articleSection":["Command Line"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/goadmio.com\/blog\/go-snapshot-command\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/goadmio.com\/blog\/go-snapshot-command\/","url":"https:\/\/goadmio.com\/blog\/go-snapshot-command\/","name":"\/go\/snapshot: snapshot from the Command Line - GoAdmio","isPartOf":{"@id":"https:\/\/goadmio.com\/blog\/#website"},"datePublished":"2026-11-28T22:48:42+00:00","breadcrumb":{"@id":"https:\/\/goadmio.com\/blog\/go-snapshot-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/goadmio.com\/blog\/go-snapshot-command\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/goadmio.com\/blog\/go-snapshot-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/goadmio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"\/go\/snapshot: snapshot from the Command Line"}]},{"@type":"WebSite","@id":"https:\/\/goadmio.com\/blog\/#website","url":"https:\/\/goadmio.com\/blog\/","name":"GoAdmio","description":"","publisher":{"@id":"https:\/\/goadmio.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/goadmio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/goadmio.com\/blog\/#organization","name":"GoAdmio","url":"https:\/\/goadmio.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/goadmio.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/goadmio.com\/blog\/wp-content\/uploads\/2026\/11\/goadmio-logo.png","contentUrl":"https:\/\/goadmio.com\/blog\/wp-content\/uploads\/2026\/11\/goadmio-logo.png","width":1200,"height":1200,"caption":"GoAdmio"},"image":{"@id":"https:\/\/goadmio.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/goadmio.com\/blog\/#\/schema\/person\/2792dfae1ff31de5831fd5c9ede251ce","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d4bb3c53e2296776392ae05085feace43ad3be136196668f9d414210355127bd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d4bb3c53e2296776392ae05085feace43ad3be136196668f9d414210355127bd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4bb3c53e2296776392ae05085feace43ad3be136196668f9d414210355127bd?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/goadmio.com\/blog"],"url":"https:\/\/goadmio.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/posts\/440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/comments?post=440"}],"version-history":[{"count":0,"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/posts\/440\/revisions"}],"wp:attachment":[{"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/categories?post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/tags?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}