Skip to main content
All pages in this manual

From a fresh server to a live shop · Step 6 of 8

Backups

What this page is for: set an automatic backup schedule, keep a copy of your data somewhere that is not this server, and put a backup back when you need it.

You need

  • The panel open, on the Backups page (in the Panel menu group).
  • For storage that is not this server: an AllsWeb Storage bucket (this panel connected to your AllsWeb account), the details of an S3 bucket, another server you can reach over SSH, or a Google Drive account.
  • A safe place to keep one password. Not on this server.

The two rules

  1. Keep at least one copy of your backups somewhere that is not this server. A local backup dies with the server it sits on.
  2. Keep your own copy of the backup password. Every backup is encrypted with it. Without it, nobody can open them — not you, not us.

And one habit: let the panel prove the backup restores. "The backup ran" and "the backup can be opened" are two different claims, and only the second one is worth anything on the day you need it. See section 5.

The panel keeps reminding you about all three. A backup that only lives on this server carries a standing warning, and the panel keeps asking until you tell it you have stored the password off the server. Those warnings are not noise — they are the two ways people lose everything.

1. Choose where backups are kept

  1. Open Backups.
  2. In the Backup storage (targets) card, press Add backup storage.
  3. Pick one. The places that are not this server come first:
  • AllsWeb Storage — a bucket you buy on allsweb.com. You pick it from a list; there are no keys to copy. The panel must be connected to your AllsWeb account. Full steps are below.
  • S3 cloud storage — Amazon S3, Backblaze B2, Wasabi, Cloudflare R2. You need the endpoint, the bucket name, an access key and a secret key. Full steps are below.
  • Another server (SFTP) — any server you can reach over SSH with a private key. The host may be pasted whole (sftp://backup@host:2222): the panel keeps the host and fills an empty user and port from it.
  • Google Drive — you paste an rclone configuration once. Read the Google Drive part below before you pick this one.
  • This server (local folder) — quickest, and a good first layer. On its own it is not a backup.
  1. Give it a name you will recognise and save it.

You can add more than one. Adding a second, off-server target is the single best thing you can do on this page.

New storage joins the automatic backups by itself. If automatic backups are on, the storage you just added is one of the places they go from now on, and the wizard's last step says so — for example Nightly backups now go to: This server (local disk) + Backblaze offsite. If they are off, that step offers Turn on daily backups instead. The storage table's Automatic backups column shows, per storage, whether it is included.

Removing a storage takes it out of the automatic backups. If it was the last one they went to, they carry on with every storage that is left — and with none left at all, the top of the page says Automatic backups have nowhere to go until you add one, which then joins by itself.

A worked example: S3 storage at Backblaze B2

S3 sounds harder than it is. Every S3 provider hands you the same four values, and the panel asks for those four and a name you choose. Backblaze B2 is the usual pick here, because it is cheap and it has a free tier.

On the Backblaze website

Backblaze moves its menus around from time to time. Four things are what matter, whatever they are called on the day: the endpoint, the bucket, the key id and the application key.

  1. Create an account, then open Buckets under B2 Cloud Storage.
  2. Press Create a Bucket. Give it a name nobody else has used, for example myshop-6ammart-backups. Keep the files Private.
  3. The new bucket is listed with an Endpoint beside it. It looks like s3.us-west-004.backblazeb2.com. Copy it. Your region number will differ.
  4. Open Application Keys → Add a New Application Key. Name it sixpanel, limit it to the bucket you just made, and give it Read and Write access.
  5. Backblaze prints a keyID and an applicationKey. The applicationKey is shown one time only. Copy both now, into a password manager.

In the panel

Backups → Add backup storage → S3 cloud storage. Fill the form like this:

The field in the panelWhat goes in it
Name (so you recognize it later)anything, for example Backblaze offsite
Endpointthe endpoint from step 3, pasted as your provider shows it — s3.us-west-004.backblazeb2.com or https://s3.us-west-004.backblazeb2.com/. https:// and anything after the host are removed as you leave the field, and the field then shows what is saved. The connection always uses https
Bucketthe bucket name from step 2. A folder inside it is allowed too: myshop-6ammart-backups/live. If the address you pasted had the bucket behind the host (https://host/my-bucket, or https://host/my-bucket/live with a folder) and this field was empty, the panel fills it in with all of it
Access keythe keyID from step 5
Secret keythe applicationKey from step 5

Press save. If this is your first backup storage, the panel now shows your backup password — read the next section before you close that box. Then run the first backup. That first run builds the encrypted repository inside the bucket, so it takes longer than every run after it.

Amazon S3, Wasabi and Cloudflare R2 use the same five boxes. Only the endpoint and the names of their own buttons are different.

AllsWeb Storage: a bucket from allsweb.com

AllsWeb sells storage buckets for backups. The panel keeps no key for them: it remembers which bucket you picked, and nothing else.

What you need

  • This panel connected to your AllsWeb account: Settings → AllsWeb account.
  • A bucket. Get storage in the panel takes you to allsweb.com to buy one, and your buckets are listed on allsweb.com under Dashboard → Storage.

Pick the bucket

  1. Backups → Add backup storage → AllsWeb Storage.
  2. The panel lists the buckets on your AllsWeb account. Each one shows how much it holds against its quota, and its state: active, suspended, waiting for payment, being created. A bucket this panel already backs up to says already used here. Pick one.
  3. Press Test. The panel asks AllsWeb for read-only access and reads the bucket:
  • It works — the bucket answers and holds no backup yet: normal for a new bucket. The first backup creates what it needs.
  • restic's own words (an address that does not resolve, a refused key, a bucket that is not there): this server could not read the bucket. The Test never calls a bucket that did not answer an empty one.
  • It works — backups in this bucket: 3: it already holds backups made with this server's backup password.
  • …locked with a different backup password: the backups in it were made by another server. Pick another bucket, or give this server that password first (section 2).
  1. Keep the name it suggests or type your own, and save. Then run the first backup.

Use one bucket per server. The panel keeps its backups at the top of the bucket, locked with this server's backup password.

If the panel is not connected yet, the form says so and offers Open Settings, which opens the AllsWeb account tab. If your account has no bucket yet, it offers Get storage. The option is always there.

Short-lived credentials, fetched for every run

Every run that touches the bucket — a backup, a restore, the list of backups, the restore test, the clean-up of old backups — first asks AllsWeb for fresh credentials. They work for that one bucket only and expire after a few hours (six by default, never longer than AllsWeb allows). The panel uses them for that run and drops them. They are never written to the panel's settings, the activity log or a job log. Disconnect the account and the panel gets no new ones; delete the bucket and its access ends for good.

When a run is refused, it says why

What the panel saysWhat to do
This panel is not connected to an AllsWeb accountConnect it: Settings → AllsWeb account
…is not on the AllsWeb account this panel is connected toThe bucket was deleted, or the panel is linked to another account. Check Dashboard → Storage on allsweb.com
…is waiting for its first payment, …is still being created, …is being deletedThe bucket is not active yet, or any more. Check it on allsweb.com
Backups to … are paused: it is suspended because an invoice is overduePay the invoice on allsweb.com. The next backup then runs as normal
Backups to … are paused: it is over its storage quotaKeep fewer backups (see section 3), or move the bucket to a bigger plan
AllsWeb (allsweb.com) could not be reachedNothing was copied, and the run counts as failed. The next scheduled backup tries again, or press Run backup now

A suspended or over-quota bucket never blocks a restore. Billing pauses the backups, never your way back: restores and the list of backups keep working.

An unpaid invoice never stops maintenance

Some backups are started by the panel itself, before it changes something: the weekly maintenance window, the safety backup before a project moves to another server, and the backup Tia takes before she updates a shop. When the destination the panel picks for one of those is an AllsWeb Storage bucket that is refused for a billing reason above — suspended, over quota, not active, gone from your account, or the panel no longer connected — the panel takes that backup on your next destination instead, usually this server's own disk, carries on, and emails you exactly what happened:

AllsWeb Storage bucket "Shop backups" is suspended (unpaid) — this window's backup went to the local disk instead; pay the invoice to resume off-server backups

So that week's security updates still go in. Once the bucket is usable again, the next one goes back to it by itself. If allsweb.com cannot be reached, or the backup itself fails, the window stops as it always has. A backup to a bucket you chose — Run backup now, or the schedule — is never sent anywhere else: it fails and says why.

When a storage says no, it says why

Adding a storage does not contact it, so a typo in a key shows up later — on the Backups page's list of backups, as the reason a backup failed (the Activity page and the failure e-mail say it first, the exit code after it), or when you change the backup password and a storage will not answer. The panel reads what the storage answered and names the cause when it knows it:

What the panel saysWhat to do
The storage does not know this access keyCheck the access key, and that the endpoint is the provider the key was made on
The storage did not accept the secret keyCheck the secret key for a typo, and the endpoint
The bucket does not exist on that endpointCheck the bucket name and the endpoint
The storage refused accessThe key may not be allowed to read and write this bucket — check its permissions
The storage's address could not be found · refused the connection · did not answer in timeCheck the endpoint (or host) and the port, and that this server can reach it
The SFTP server did not accept the keyCheck the user name, and that the matching public key is in that user's authorized_keys
Google Drive no longer accepts the saved sign-inSign in to Google again for this storage
…locked with a different backup passwordThe backups in it were made with another server's backup password — give this server that one first, or use another storage
This storage is locked by a backup that is still running or was cut offWait for a running one; otherwise press Run backup now — it removes a left-over lock first

A storage that does not answer is never shown as an empty one: no backups yet means the storage answered and holds no repository. The Test in the AllsWeb Storage wizard reads it the same way.

Google Drive: what it really takes

The panel does not log in to Google for you. It reads a configuration file made by a separate free program called rclone, and the remote inside that file must be named exactly gdrive6am.

If you have never used rclone, choose S3 above instead. It is fewer steps and nothing has to be installed on your own computer.

If you want Drive anyway, on your own computer (not the server):

  1. Install rclone from rclone.org.
  2. Run rclone config, choose n for a new remote, and name it exactly gdrive6am. Any other name is refused by the panel.
  3. Choose drive as the type. Leave the client id and client secret empty. Accept the default answers, and let it open a browser so you can sign in to Google.
  4. Run rclone config file. It prints the path of rclone.conf. Open that file and copy the whole [gdrive6am] block.
  5. In the panel, pick Google Drive, leave the folder path as it is, and paste that block into the configuration box.

Each Google Drive storage keeps its own sign-in, so you can add a second one for another Google account — give it a different folder path — without disturbing the first. If you leave the folder another Drive storage already uses, nothing is saved yet: the panel names that storage and asks which you meant — Choose another folder for the new account, or Replace the sign-in of the storage that has the folder (for when its sign-in stopped working). Removing a Drive storage deletes its sign-in from this server.

2. Save the backup password

Every backup on this server is encrypted with one password. The panel generated it, the panel uses it automatically for every backup and restore, and you never type it. You need your own copy for exactly one situation: this server is gone, and you are restoring its backups onto a new one.

The Backup password card holds everything about it.

Show the backup password displays it. You can do this whenever you like — it is your key, on your server. Each time you look, the panel writes a line in the activity log saying the password was displayed, so a look is never silent.

Save it. Copy that password into a password manager, or write it on paper you keep somewhere else. If this server is lost and you do not have the password, the backups can never be opened by anyone. There is no way to reset it — the only thing you can do is change it, and that needs the current one to still work (see below).

"I have a copy — stop reminding me" turns off the reminder. Press it only when the password really is written down somewhere that is not this server. The panel records the date and stops nagging, on this page and on the Health page.

Changed your mind, or moved to a new password manager and want the reminder back until you are sure? Remind me again switches it back on. Nothing else changes.

Over SSH, as root:

Do not run this while you are sharing your screen or recording a call. It prints the password in plain text, right in your terminal. Clear the terminal afterwards, and close that window rather than leaving the password in its scrollback.

sudo sixpanel backup password

The command asks you to confirm before it prints anything.

Change the backup password

Change the password on the same card issues a new one and re-keys every backup storage in place. Every backup you already have stays readable with the new password, and nothing is uploaded again.

It runs as a job with four named steps, and you watch each one:

  1. Check every backup storage is reachable. All of them must answer before anything changes. If one is unreachable the job stops here and nothing has been touched. That includes a storage you added and never used: fix it, or remove it from the page, and try again. A storage that answers and simply holds no backup yet is fine — there is nothing in it to change. A storage you have backed up to, whose backups cannot be found at this moment (a disk that is not mounted, a folder that was moved), also stops the job: changing the password without it would leave those backups on the old one. Reconnect it; or, if they are really gone, run a new backup to it or remove it.
  2. Add the new password to every repository. If one storage refuses half way through, the panel removes the keys it already added and stops — so no storage is left wanting a different password from the others.
  3. Switch this server to the new password. From this moment the panel backs up and restores with the new one.
  4. Remove the old password from every repository. The old password stops working.

Afterwards the reminder turns itself back on, because the copy you saved is now the wrong one. Press Show the backup password, save the new value, and then press I have a copy again.

Use this if the old password was seen by someone it should not have been, or when you hand a server over to somebody else.

3. Pick a schedule

If nothing is set up yet, the top of the page says Automatic backups are OFF and offers Enable daily backups — one press and you are protected, with encrypted storage created on this server and old backups tidied for you.

For more control, use the Automatic backups card and press one of the plans:

  • Daily (recommended) — every night at 03:30. Keeps 7 daily, 4 weekly and 3 monthly backups.
  • Twice a day — 03:30 and 15:30, for busy projects.
  • Weekly — every Sunday at 04:00. Keeps the last 8 weekly backups.
  • Custom — your own time and your own retention numbers.

If you have no backup storage yet, saving a plan creates encrypted storage on this server by itself — and that is when the password card appears.

A plan you pick covers every storage you have, and Stored in under the plans names them, joined by +. Storage added later joins the plan by itself (section 1).

Old backups are removed for you, following the retention numbers of the plan. A backup that is missing a website's database (the run ends red and names it) is counted apart from the others, so a website that fails every night never pushes out the last backups that hold every database. Those stay by the same numbers, and the incomplete ones are removed by them too. A website or a staging site that is still being made when a backup runs (its create waits for the backup to finish) is not missing anything: every backup — started by hand, by the plan, from the command line, by Tia or before a change — leaves it out, says so in its log, and the next backup takes it. What a backup holds is decided when it starts: a staging site or a website you add while it runs is not in it, is not named on the backup either, and the log says so ("…not in this backup — it is still being made…"); the next backup takes it. A 6amMart project's staging site whose create stopped before its database was made (its card says to press Refresh), or whose Refresh stopped after it had emptied the copy's database, is left out the same way, with a warning in the log, instead of stopping the backup of every project; Refresh or Delete it. A production project whose database cannot be saved, or a staging site that is ready, still stops the backup.

The backup your last restore test proved is always kept. The plan keeps one backup a day, so several backups taken on the same day replace each other — but the newest backup that passed the restore test (section 5) is never the one removed, even on a busy day. The backup log says so when retention would have removed it: kept backup … : it is the newest backup a restore test proved.

The backups an account's delete checked are kept for 7 days. Deleting an account with its websites takes a backup and checks it holds every website, when you press Delete and again before the websites go; each of those backups is spared by retention for 7 days after its check, then it is removed by the plan's numbers like any other (Accounts → Delete an account). If a backup cannot read what retention would remove, it removes nothing that time and says so in its log (retention does not run this time); the next backup tries again, so neither of these kept backups is ever removed by guesswork. The backup itself stays green and counts as your newest one, and you get the panel's alert (backup retention did not run, at most once every 6 hours for each storage): until a backup can read it again, no older backup is removed and the storage grows. When retention runs again you get the all-clear.

Staging sites are left out of the scheduled backups. A staging site is disposable — Refresh from production rebuilds it — so the plan skips it unless you include it. The Automatic backups card lists every copy with an Include in scheduled backups switch, and a backup you run yourself (section 4) still takes them all (Staging & Testing → Backups).

4. Run one now

Use the Run a backup now card. Choose What to back up:

  • Everything (database + files)
  • Database only
  • Files only (uploads + settings)

Press Run backup now and watch the log.

Over SSH, the same thing:

sudo sixpanel backup run full

Backups after the first one are small: only what changed is stored.

5. Prove the backup can be restored

The Can your backup be restored? card answers the only question that matters on a bad day.

It takes your newest backup and proves every database in it — each project's, and each website's — not just one. For each one it restores that dump out of the backup, loads it into a throwaway database with a name of its own, counts the tables and the rows, and deletes the throwaway database again before starting the next. The shops go first.

If you run more than one shop on this server, the result names each of them separately, so "the backup is fine" is a statement you can act on rather than one you have to trust. A project the backup does not cover — one you created after the last backup ran, for instance — is listed by name as not in this backup rather than quietly counted as a pass.

Every table, row for row. For every MariaDB database — each shop's and each website's — the test reads from the dump how many tables it creates and how many rows each one holds, then checks that every one of those tables came back with exactly that many rows. A table missing, or one that came back with fewer rows than the dump holds, fails the test for that database, by name. It reads both ways MariaDB writes its rows — all on one line, or (MariaDB 11, as on Ubuntu 26.04) one row per line. When the dump cannot be counted — a reading that does not finish in the test's time on a very large dump, or a statement the reader does not know — the log says rows not compared and why, and the database is judged by its other checks: a backup is never failed because the count itself went wrong. A table that comes back with MORE rows than the dump was read to hold (an event in the database can add rows while the copy loads) is left out of the check and named in the log as not compared; every other table of that database is still checked, so a table missing or short beside it still fails the test.

A shop that is not installed yet — a project created, its installer not run — had a database with no tables when the backup was taken, and its dump holds exactly that. The test reads it as nothing to prove, not as a failure. A shop whose database had tables is still held to all of the checks above.

Websites are named as websites in the same line. A WordPress site must bring back its options and its users, with rows in both, or the test fails for it by name. Any other website's database is checked table by table and row by row as above; one with no tables yet — an app that has not created any — is nothing to prove, not a failure. A website made after the last backup is listed as not in this backup, like a project. And a website dump that picks a database of its own is not loaded at all — loading it could write into a live database — so it is listed as not tested, with the reason.

A website's PostgreSQL database is loaded the same way, into a throwaway database of this server's own PostgreSQL, by that database's own user (never the PostgreSQL superuser). The test first reads from the dump how many tables it holds and how many rows each has, then checks that every one of those tables came back with exactly that many rows. A table missing or a row count that differs fails the test for that database, by name. The throwaway database and its user are deleted afterwards, whether the load worked or not; one that could not be deleted is named in the result and removed by the next test. When PostgreSQL is not installed here, or does not answer, the database is listed as not tested with the reason.

A website's MongoDB database is loaded into a throwaway database of this server's MongoDB in the same way. The test reads from the dump how many collections it holds and how many documents each has (a view holds no documents of its own, so it is not counted), then checks that every collection came back with exactly that many. A collection missing, a different count, or a dump that does not load fails the test for that database, by name. The throwaway database is deleted afterwards, whether the load worked or not. When MongoDB is not installed, is not running, or its disk has no room for a copy of the dump, the database is listed as not tested with the reason. A SQL Server database is still only checked to be a whole file, and is listed as not loaded.

Files too. Beside the databases, the test restores a small sample of files from the backup's folders — a few from each website's and each shop's folder, at most 64 MB in all — and checks each one: it came back, with the size the backup recorded, and restic re-read it against the backup's own checksums. A file that has not changed on the server since (same size, same time) must be byte for byte the one on the server. A file that does not come back right fails the test, by name. The sample is unpacked into the panel's own staging folder and deleted afterwards.

Your live site and your live database are never touched by this. The test only ever creates and deletes a database it made itself, and it refuses to touch any other name.

Run it once now: press Test my backup now, confirm, and watch the log. On a big project it takes a few minutes and uses some disk space while it runs. If another job is running — a deploy, a backup — the test waits its turn instead of being refused, and starts by itself when that job ends (pressing it twice does not queue it twice). It reads your backup storage as it is when it starts, so a password change you made meanwhile is the one it uses.

Then leave it on: Test my backup every week, by itself runs the same test every Sunday morning. Leave this on. It costs you nothing and it is the only thing that tells you the truth before you need it.

What the result means

ResultWhat it meansWhat to do
PassedThe backup opened, every project and website database in it loaded with every table and every row the dump holds, and the sample of files came back as the backup holds them.Nothing.
FAILEDThe backup opened but the data is not complete — too few tables, a table that must have rows came back empty, a table missing or with other row counts than the dump holds, or a file of the sample that did not come back as the backup holds it.Treat your backups as unusable until this passes. See below.
Could not runThe test could not start — usually not enough free disk, or no backup with a database in it yet.Free space on Server → Disk, or run a full backup first, then test again.
Never testedNobody has ever checked.Press Test my backup now.

Server → Health reports the same result — it names the backup the test proved and how many databases came back — and warns as soon as the test is overdue for its own schedule — a weekly test that missed one Sunday is already worth telling you about. It also warns when the backup the test proved is no longer kept (removed by hand, or from another storage): then none of the backups kept now has been tested.

When the test fails

A failed test is a real emergency, and it is much better to meet it today than on the day the server dies. In order:

  1. Read the job log. It lists every table it found and the row counts, so the line that says MISSING or 0 rows names the problem.
  2. Run a fresh full backup: Run a backup now → Everything (database + files).
  3. Run Test my backup now again.
  4. If it fails a second time, do not wait. Take a database copy you can hold in your hand — Database → download a copy — and send support the file from sudo sixpanel support-bundle.

A common and harmless-looking cause: the schedule is set to Database only or Files only, so no snapshot holds a full database. Set it to Everything and run it again.

6. What is inside a backup

  • The database of every project on this server (a scheduled backup leaves out the staging sites you have not included — section 3). A database is copied whole: its tables, views and triggers, and — when somebody has added any — its stored procedures and functions and its scheduled events. The job's line for that database then ends with its stored routines and scheduled events. (Where MariaDB's own record of them cannot be read, the copy is still made without them and the job says what it lacks.)
  • Uploaded files (product images, logos, documents) and each project's settings file.
  • What a shop writes inside its own code folder: the translations typed on the admin panel's Language screens and every language added there, which modules are switched on, and the activation of the admin panel and of each addon — those activation files hold your CodeCanyon purchase codes. They are in the backup on purpose: a restored shop comes back activated as it was and does not ask for its codes again. Like the settings file beside them (which holds the database password and your payment gateways' keys), they are readable only with your backup password — every backup is encrypted with it before it leaves this server.
  • Every website — static, Node.js, PHP, WordPress and Create with AI: its database and its files (Websites → Backups).
  • The notes AI Coding keeps for each project and website — its brief, its decisions and its memory (AI Coding → Project notes), in every files and full backup. Restoring a project or a website leaves its notes as they are.
  • The panel's own settings (your projects, domains, backup storages and your two-factor secret), as a copy at /opt/sixpanel/data/panel/state-copy/panel.json inside the backup. The copy leaves out who is signed in and the secret that signs the panel's cookies, so a backup never holds a working login: after you put the settings back, you sign in again with your usual password and code, and so does everybody else. To put them back on a rebuilt server, stop the panel, copy that file over /opt/sixpanel/data/panel/panel.json, and start it.

Your 6amMart application code is not inside the backup. Code comes back from your git repository or from your CodeCanyon zip. A backup holds your data and your settings. A website's code is inside, because for most websites nothing else holds it.

The copies of a project's database that the panel keeps on this server are not inside either: the ones taken before an import, before an update's migrations, before a promote from a staging site and before AI Coding works on production. Each is a database the backup already holds, and each is only for putting that database back on this server. A project deleted with its data takes its copies with it.

A website comes back from its own Backups page, or from this page's Restore: the dialog lists the websites a backup holds beside the projects (the Contents column says how many), and only the one you pick changes. A website's database is kept as it is first too (Database → Exports lists the copy); if the backup's database then does not load, the copy is put back. When no copy could be kept — the log's first step says so — and the load fails, the job ends saying the database may now be empty or only partly filled: press Restore again, or restore another backup. The same words end the job when the copy itself cannot be put back either, and then the job names the copy (Database → Exports) so you can import it. Room for those copies is asked in the first step, before anything changes. Over SSH: sudo sixpanel backup restore <SNAPSHOT> --site NAME.

7. Restore a backup

This cannot be undone. A restore writes the backup over your live data. Anything created after that backup was taken is lost — and that includes database tables an update has added since: they are removed once the backup has loaded, so the next update can make them again. Take a fresh backup first if the current data still has any value.

In the panel:

  1. Backups → the Snapshots & restore card. It opens on the storage that holds your newest backup; with more than one storage, pick another from the menu to see its backups.
  2. Find the one you want and press Restore this snapshot.
  3. Choose which project or website to put back, and what to put back, then confirm. Only the one you pick is touched.

A project's database is kept as it is first. Before the restore replaces a project's database it writes a copy of it to this server — the newest two such copies stay — and its log names the file and the one line that loads it. The panel checks there is room for that copy first: the database's size and a quarter. With less, the restore stops in its first step, says how much must be free and where, and nothing has been taken out of the backup or changed. If the backup's database then does not load, the panel puts the copy back and the job ends with the database is as it was before the restore; if the copy cannot be put back either, the job says where it is. A database the panel cannot read at all is the one case where the restore goes on without a copy — that is often why a backup is being put back — and its log says so. The files a restore replaces are not kept.

A database another project or website also uses is never replaced. When another 6amMart project (its record, or its app's .env), a website or a staging site on this server names the same database as the one you restore, the restore is refused when you press it — nothing is taken out of the backup, stopped or replaced — and the answer names who else uses it. It is asked again in the restore's first step and right before the database is replaced. Give one of them a database of its own first, then restore again. The same holds for a WordPress restore point. A restore that only puts back files is not asked.

Room for what comes out of the backup. Before a project's or a website's restore takes anything out of the storage, the panel reads how big that part of the backup is, and how much more copying it back into place adds while the unpacked copy is still on the disk: a file the server does not have yet counts twice, a file already there as the backup has it adds nothing, and a file that grew adds what it grew by (a website's copy also needs room for its largest file while that file is written). It checks the disk has all of that and a quarter more free, and asks a folder on another disk for what lands there. With less, the restore stops, says how many MB it needs and how many are free, and nothing has changed. A full disk stops the database server for every shop on the server, which is why it asks.

Stored times and the database's time zone. A backup comes back exactly as it was on a database that runs on the same time zone as the one it was taken on. If you have changed this server's database zone since (Server → Database), or you restore on another server whose database runs on a different zone — a server newly set up with SixPanel runs its database on UTC, one set up before 6 Oct 2026 may follow your local time — every row is there, but its stored times are read through the other zone and are off by the difference. The restore's log says so when it can tell, and Database server says how to put such a backup back with its times unchanged.

Over SSH:

sudo sixpanel backup list
sudo sixpanel backup restore SNAPSHOT_ID

SNAPSHOT_ID is an id from the list. The word latest also works. Add --what db to put back only the database, or --what files for only the files. Without it, both are replaced.

Get back one file, or a website's files beside the live ones

A restore writes over the live site. When you only need one file back, or want to look at yesterday's files before deciding, you do not have to:

  • Download a file. On Backups → Snapshots & restore, press Download a file beside a backup and type the file's full path as the backup holds it (for example /var/www/_sites/blog/app/wp-config.php). On a website's own Backups page the same button takes the path as its Files page shows it (for example wp-config.php). Files up to 512 MB; nothing on the server changes. Only the server's owner can do this, and it is recorded in Activity.
  • Restore to a new folder (a website's Backups page → To a new folder). The website's files from that backup are copied into .restored/<name> among its files — a name you give; a folder that is already there is refused. Nothing live is replaced, visitors can never open that folder, and the next backups leave it out. Open Files to look at it, copy back what you need, and delete the folder when you are done. On a Node.js or static website the folder sits in the live release, so the next deploy leaves it behind with that release.

Both work from the server's terminal too, for when the panel's pages are out of reach (the same checks: the owner only, a path inside what the backup holds, a file up to 512 MB):

sudo sixpanel backup file latest wp-config.php --site blog --out ./wp-config.php
sudo sixpanel backup file SNAPSHOT_ID /var/www/_sites/blog/app/wp-config.php
sudo sixpanel backup restore latest --site blog --to-folder before-update

backup file writes the file where --out says (without it, under its own name in the current folder), never over a file that is already there; with --site the path is the one the website's Files page shows. --to-folder takes the website's files only, and a folder name that is already there is refused.

Which destination a command uses

With one backup destination there is nothing to choose. With more than one — the server's own disk and an S3 bucket, say — each command takes --target ID, and the IDs are in sudo sixpanel backup targets:

sudo sixpanel backup run full --target ID
sudo sixpanel backup list --target ID
sudo sixpanel backup restore latest --target ID

Without --target, the commands do not all mean the same destination:

  • backup run writes to the first backup destination — on most servers the server's own disk, which is there from the first day.
  • backup list and backup restore read the destination that holds this server's backups: the one your scheduled backups are written to, an off-server one first. It is the same destination Test my backup now checks.

So a backup you have just taken with backup run may not be the latest that backup restore latest reads. To put back a backup you have just taken, name the same destination in both commands.

Each command says which destination it used. Before a restore asks you to confirm, it names the snapshot it is about to put back, when that snapshot was taken, how old it is and which destination holds it — and when you named no destination and the server has more than one, it says so and shows how to read another. A snapshot that the destination does not hold is refused there, before anything is touched. Read that line before you type restore: a date three weeks back is not the backup you took a minute ago.

With more than one project on the server, say which one to restore into — the command names that project before it asks you to confirm:

sudo sixpanel --project SLUG backup restore SNAPSHOT_ID

sudo sixpanel project list shows each project's slug.

After a restore, restart the site:

sudo sixpanel service restart app

8. Get one file back, or download a backup

You do not have to restore a whole project or website to get back one file. Every backup in the list has a Files button beside Restore.

  1. Backups → Snapshots & restore, or a website's own Backups page.
  2. Press Files on the backup you want.
  3. On the Backups page, pick whose files to see: each project first, then each website that backup holds. A website's own page shows only that website.
  4. Open a folder to look inside it. Up one folder and All of it take you back. Each file shows its size and when it was last changed.

Nothing live changes while you look.

Download. Press Download on a file to get it as it was, or on a folder to get it as a .zip. Download all of it gives everything of that project or website in one .tar.gz, its database dump included. On the Backups page, Download the whole backup gives every project and website of the server in one .tar.gz. That file holds passwords and your customers' data, so keep it somewhere safe. A download comes straight from the backup storage through the panel, while you are signed in. No file is left on the server and no public link is made.

A website's account runs at most two downloads from a backup at once, from all of its sign-ins together, and the websites' accounts three between them. The server owner runs two per sign-in, and the server four in all, so the owner always has one. One more does not start: the browser shows that download as failed. Wait for one to finish, then press it again. Each download holds memory on the server for as long as it runs. A download never stops the automatic backup, however slowly it is read.

Put back. Press Put back on a file or a folder and choose:

  • Beside the live copy (the default). It goes into a folder called .sixpanel-restored, inside another folder named after the backup's time. For a website that folder is in the website's Files. For a 6amMart project it is storage/app/.sixpanel-restored. Nothing live changes, and visitors can never open that folder. Compare the two, then move what you need, or delete the folder when you are done. On a Node.js, Python, Java, static or AI-built website that folder is inside the live release, so the next deploy leaves it behind with that release: move what you need before you deploy again.
  • Where it was. It replaces what is there now. For a folder, files in the backup replace the live ones and files added since the backup stay. The button is red because this changes the live site.

Before anything is unpacked, the job checks there is room on the disk for what it takes out of the backup and for the copy it puts in place. If there is not, it stops and changes nothing.

The job log says where it went. A 6amMart project reads a file put back at once, because the panel reloads PHP. A Node.js, Python or Java app reads it when it starts again: restart it on its page.

Some things go back only one way:

  • A database dump is for downloading only. To put a database back, use Restore and choose the database: it keeps a copy of the live database first.
  • A project's .env goes only beside the live one. Restore → Files puts it back where it was and rebuilds what the shop keeps from it.
  • A WordPress site's wp-config.php goes only beside the live one, because the panel keeps its database settings. If you put back a folder that holds it (the whole app folder, or wp-content/mu-plugins) where it was, the panel then sets wp-config.php and the SixPanel plugin back to how it keeps them today: the database password stays today's, never the backup's.
  • A website's AI workspace goes back only where it was.
  • A Docker app goes back whole, with Restore.
  • A link in the backup has nothing in it to put back.

Who can do this. The server owner, for every project and website. A reseller or a user, only for their own websites, on each website's Backups page. They never see another account's files, a project's files or the whole backup. A reseller or a user sees only the backups taken since their website was made: a website made under the name of one that was deleted never shows that website's older backups (the server owner still sees them all). A temporary sign-in, the demo sign-in, Tia and the MCP tools cannot open the files inside a backup, because those files hold the app's passwords and its customers' data.

How to check it worked

  • The top of the Backups page shows the last backup and when the next one runs.
  • The Backup status card shows, for each storage, when its newest backup was taken, how many it keeps and how much the newest one restores.
  • The Backup storage table shows each storage as included under Automatic backups, and at least one of them is not this server.
  • The Backup password card says you confirmed a copy exists outside this server, with the date.
  • Can your backup be restored? says Passed, with a date and a table count, and the weekly test is on.
  • sudo sixpanel backup list prints at least one snapshot with a date.
  • sudo sixpanel backup targets prints each destination and its last run, and when the next automatic backup runs (NEXT-RUN). With --json each destination's row carries nextRun: the time of the next automatic backup when the schedule writes there, off when it does not, or unknown when the panel is not answering.

If it went wrong

  • "repository is already locked" — another run is working on that storage, or an earlier one was cut off (a restart, a power cut) and left its marker behind. The panel removes a marker nobody is using at the start of every backup, and the job's log says so — run the backup again. If it is still refused, see Troubleshooting.
  • The backup fails on S3 or SFTP — the keys, the bucket name or the SSH key are usually the cause. Remove the storage and add it again with fresh details. The job log names the step that failed.
  • A backup failed at "Say what is not in this backup" — the backup itself was taken and is your newest one. What it does not hold is the database of the website the job names: that database could not be copied, and the same line says why (a view left behind by a removed plugin is the usual reason). The top of the Backups page names those websites in amber until a backup runs with everything in it. Open that website's Database page and press Export now to see the same error on its own, put it right, and run the backup again. The backup the panel takes by itself before the weekly maintenance or before a project moves says the same in its log and is not stopped by it.
  • An SFTP backup fails with "host key verification failed" — the backup server was rebuilt or replaced since you added it, and the panel refuses a server whose identity changed. If that was you, remove the storage and add it again: removing it forgets the old identity. If it was not you, do not — find out what is answering at that address first.
  • The password change stopped at "Check every backup storage is reachable" — one of your destinations did not answer. Nothing was changed. Fix that destination (or remove it if you no longer use it) and run the change again.
  • A restore stopped with "there is no room to keep … as it is" — the copy of the database that a restore keeps first (section 7) did not fit. Nothing was changed. Free the space it names on Server → Disk, then restore again.
  • A restore stopped with "there is no room for what this restore takes out of the backup" or "… copies back there" — the part of the backup it would unpack, or its copy back into place, does not fit (section 7). Nothing was changed. Free the MB it names on Server → Disk, then restore again.
  • A restore failed at "Import database" — read the job's last line. The database is as it was before the restore means the copy kept first was put back and the project runs on the data it had. If it says the copy could not be put back either, it names the file and the one line that loads it: run that line in the server's Terminal once the cause in the log above it is put right.
  • A restore failed at "Copy files back" — a full disk is the usual reason. The log's last lines say what was put back from the backup and what was not. The .env that came back has been pointed at this server's database and Redis again, and the shop's caches rebuilt from it, so the shop keeps answering. If the database was put back, it stays the backup's, and the log names the copy kept first. Free the space, then restore the same backup again to finish.
  • A restore's log says "REFUSING …: in this backup it is a link" — where the backup lists a file or a folder of the project, the project had a link to somewhere else when that backup ran. The panel does not restore through a link: nothing is written for that one entry, and the rest of the restore goes on. Restore an older backup for it, or put the file back by hand.
  • A restore's log says "not restored: … is a pipe, a socket or a device" — a restored folder held something that is not a file (a program of the shop had left it among the uploads). It is passed by, every file beside it is restored, and nothing needs doing.
  • The server or the panel restarted in the middle of a restore — the job reads as stopped, and nothing after its last line was done. If that last line is under Import database, the database may be part old, part new: restore again, or load the copy named under Keep the database as it is in the same log with the line beside it.
  • The restore test failed — see When the test fails in section 5. Until it passes, treat your backups as unusable.
  • The restore test says it could not run — the usual reason is disk space. A compressed database dump needs roughly twelve times its own size to load. Free space on Server → Disk and test again.
  • A storage says "not included" under Automatic backups — it was added before new storage joined the plan by itself, or taken out of a custom plan. Press Include beside it: the plan keeps its time and how long it keeps backups, and adds that storage.
  • "Automatic backups have nowhere to go" — every storage the plan used was removed. Add backup storage; it joins the plan by itself.

Still stuck? Run sudo sixpanel support-bundle and send us the one file it writes. See When something is broken.

Something unclear?Ask Tia