Backups
Copies of everything this plugin keeps, made in one click and kept on your site, to put things back the way they were.
A backup holds your products and generic links (with your own ratings, verdicts and notes, and Amazon's last answer for each), categories and tags, Smart Lists, comparison tables, box templates, settings, automation (alert rules, rules, email reports, webhooks, experiments, tracking IDs and auto-links), connections, your team and each person's own choices, and, if you like, the history of clicks, views, earnings and the logs. Every number is kept, so the Product blocks, lists, tables and shortcodes in your posts keep showing the same things.
It does not hold your posts, pages or media: those are WordPress's, and your host's backups (or a backup plugin) keep them, together with this plugin's data. A backup here is just this plugin, and quicker to take. It also leaves out the license (it belongs to this site), what the scans find again by themselves (where products are used, links in posts, link checks, suggestions) and the undo records of bulk link fixes.
- "Back up now" makes one. "Include history" is ticked to begin with; untick it for a smaller backup without the clicks, views, earnings and logs.
- Your backups lists each one: when it was made and by whom, what it holds (for example 312 products, 4 Smart Lists, settings and history) and its size. The line above the list says how much room backups take in your site's database.
- Download saves a backup as a file (a .sdabackup file, compressed) to keep somewhere else. It arrives in pieces and is checked before it is saved, so a file that did not arrive whole is never saved.
- Delete asks first, then removes that copy only; your data is not touched, and a copy sent to Dropbox stays there. A backup you make yourself is never deleted by itself; only scheduled backups and restore points make way for newer ones.
- Keys for Amazon and the other services stay encrypted in a backup, the way they are stored. They work again when the backup is restored on this site; on another site they need entering again, unless the backup was made with a passphrase (see "Keys and a passphrase").
- Only administrators can open Backups, because a backup holds everything, the team and webhook secrets included.
- From a server:
wp sda backup create(add --no-history to leave the history out),wp sda backup list,wp sda backup download<number> <file> andwp sda backup delete<number>.
Restoring a backup
- Choose Restore (the round arrow) on the backup's line. The whole backup is read and checked first; one that is damaged or was changed after it was made is refused with the reason, and nothing changes.
- The dialog shows what changes: for products, generic links, Smart Lists, comparison tables, box templates, automations, connections and the team, how many there are now and how many there will be after the restore. A backup made on another site says so, with that site's address.
- Tick "I understand: this replaces the plugin's data on this site", then choose Restore. Keep the page open while it runs; a large catalog takes longer.
- First a backup of how things are now is made ("Before a restore" in the list). Then the plugin's data is replaced with the backup's: what was added since goes, and what was changed or deleted since comes back, with the same numbers, so your posts keep showing the same things. It happens all at once: if anything goes wrong, nothing changes.
- To undo a restore, restore the "Before a restore" backup at the top of the list.
What a restore changes
- It replaces the catalog, designs, settings, automation, connections and team, and the history too when the backup has it. A backup without history leaves the history you have now as it is.
- Settings the backup did not have (because they were never changed when it was made) go back to their defaults. Everything is cleaned the way saving Settings cleans it.
- Each person's own choices (the menu, columns, language) go back to the people with the same login on this site.
- It never touches your posts, pages, media, WordPress users or roles, the license, or anything outside this plugin. Afterwards the scans start again, so link checks and "where products are used" match the restored data.
- A backup made by a newer version of the plugin cannot be restored until the plugin is updated; the dialog says so.
Restoring from a file
- "Upload a backup", in Restore from a file, takes a .sdabackup file from your computer (up to 200 MB). It is sent in pieces, checked, and added to the list as Uploaded; the restore dialog then opens, and nothing changes until you choose Restore.
- A file that is not a backup from this plugin, or that was damaged or changed, is refused with the reason and not added.
- From a server:
wp sda backup restore<number> --yes, orwp sda backup restore<file> --yes for a .sdabackup file. Without --yes it stops before changing anything and says why.
Moving to another site
- Move your posts, pages and media with WordPress's own tools (Tools > Export and Import) or your host's migration. This plugin's backup does not hold them.
- On the new site, install this plugin, open Settings > Backups and use Upload a backup with a backup downloaded from the old site.
- Restore it. The dialog says it was made on another site. Every product, list, table and template keeps its number, so the blocks and shortcodes in the moved posts show the same things.
- After the restore a note at the top of Backups lists anything to look at. Keys for Amazon and the other services need entering again under Connections, because they are locked to the site that saved them.
- Team members go to the users with the same login on the new site; one with no account there is left out and counted in the note, to add under Team & Roles. Each person's own choices follow their login the same way.
- An own picture of a product is a Media Library image, whose numbers differ on the new site: until it is chosen again, the box shows Amazon's picture in its place. Pictures kept in the Media Library by the plugin come back at the next refresh. The note counts them.
- The license stays with the old site: activate yours on the new one under License.
Scheduled backups
- In the Scheduled backups card, choose How often: Every day, Every week or Every month. Then the day (for a week, the day of the week; for a month, a day from 1 to 28) and the Time, in your site's time zone.
- Set Scheduled backups to keep (from 1 to 30; 7 to begin with) and whether to Include history, then choose Save schedule. The line beside the button says when the next backup is due.
- The first backup is made at the next time the schedule names, not at once: saved at 10:00, a daily schedule for 3:00 makes its first backup the next night. To have one now as well, use Back up now.
- Scheduled backups are listed as Scheduled. When a new one is made, the oldest scheduled ones beyond the number to keep are deleted, with their copies in Dropbox. Backups you make yourself, uploads and the backups made before a restore are never deleted by the schedule.
- The schedule runs with WordPress's own scheduler, which wakes when someone visits the site, so a backup can come a little after its time on a quiet site.
- If a scheduled backup could not be made, or could not be sent to Dropbox, the card says why. The next one is tried at its usual time.
- Choose Off under How often to stop them; the scheduled backups already made stay until you delete them. Scheduled backups are free.
- A restore never changes the schedule: it is this site's own, not part of a backup.
Copies in Dropbox
- Connect a Dropbox account on the Syncs page first, if you have not yet. Its Dropbox app needs the files.content.write permission: in the Dropbox App Console, tick it on the app's Permissions tab and press Submit, then reconnect the account on the Syncs page (a connection made before the permission was ticked can only read).
- In the Scheduled backups card, under Copy to Dropbox, choose the Dropbox account and the Folder in Dropbox (/SellDigits backups to begin with), then choose Save schedule.
- From then on each scheduled backup is sent there as soon as it is made. To send any other backup, choose Send to Dropbox (the cloud with an arrow) on its line.
- A backup's line says where its copy is ("In Dropbox: /SellDigits backups/…"), or why it was not sent, in red. Send to Dropbox tries again.
- A file of the same name in Dropbox is never overwritten: Dropbox gives the new one a numbered name.
- To restore a copy from Dropbox, download it from Dropbox to your computer and use Upload a backup.
- Choose None as the Dropbox account to keep backups on this site only; the copies already in Dropbox stay there.
Keys and a passphrase
- The keys for Amazon, Dropbox, eBay, the AI assist, webhook signing and chat channels are locked to the site that saved them. To carry them to another site, tick "Include connection keys, protected by a passphrase" in Back up now and type a passphrase twice (at least 10 characters). The backup then also holds each key sealed with that passphrase; its line says "keys protected by a passphrase".
- The passphrase is not kept anywhere, by the plugin or in the file. Write it down: without it, the sealed keys cannot be opened by anyone, you included.
- When you restore such a backup, the dialog asks for the passphrase. With it, the keys are put back and stored again, locked to this site, so the connections work at once. A wrong passphrase stops the restore before anything changes. Left empty, the restore goes ahead without the keys.
- From a server:
wp sda backup create --passphrase=… andwp sda backup restore<number> --yes --passphrase=… (a shell may keep the passphrase in its history).