Skip to content

Commit e85a07a

Browse files
committed
move content
1 parent 51e59d5 commit e85a07a

File tree

3 files changed

+99
-73
lines changed

3 files changed

+99
-73
lines changed
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
---
2+
myst:
3+
html_meta:
4+
"description": "How to Back up and restore a Plone site that was installed using buildout"
5+
"property=og:description": "How to Back up and restore a Plone site that was installed using buildout"
6+
"property=og:title": "Back up and restore a Plone site"
7+
"keywords": "Plone 6, admin, install, configuration, upgrade, buildout"
8+
---
9+
10+
(back-up-and-restore-a-plone-buildout-label)=
11+
12+
# Back up and restore a Plone buildout
13+
14+
This chapter explains how to back up and restore a Plone site that was installed using buildout.
15+
16+
(backup-your-plone-site-label)=
17+
18+
## Back up your Plone site
19+
20+
```{danger}
21+
Always back up your Plone site before upgrading.
22+
```
23+
24+
This back up guide assumes the following.
25+
26+
- You back up your Plone site.
27+
- You back up your buildout and its caches.
28+
- You back up your persistent data storage using a strategy that maintains data integrity without taking down your Plone site, that is performed periodically with adequate frequency, and that stores sufficient versions of your data.
29+
- You've tested the restore process.
30+
31+
32+
### Where's my data?
33+
34+
Your Plone instance installation contains a directory {file}`./var`.
35+
This directory is located in the same directory as the file {file}`buildout.cfg`.
36+
It holds the frequently changing data files for the instance.
37+
{file}`./var` contains the instance's log, process ID, and socket files.
38+
39+
The following directories contain your instance's content.
40+
41+
42+
#### {file}`./var/filestorage`
43+
44+
The Zope Object Database ({term}`ZODB`) file storage is maintained in the directory {file}`./var/filestorage`.
45+
The default file name is {file}`Data.fs`, although you could have multiple files or renamed it.
46+
It's typically a large file which contains everything except {term}`blob`s.
47+
48+
The other files in this directory with the file extensions of `.index`, `.lock`, `.old`, or `.tmp` are ephemeral, and will be recreated by Zope if they're absent.
49+
50+
51+
#### {file}`./var/blobstorage`
52+
53+
The directory {file}`./var/blobstorage` contains a deeply nested directory hierarchy that contains the blobs of your database.
54+
These files may include PDFs, images, videos, office automation files, and other binary objects.
55+
56+
`filestorage` and `blobstorage` are maintained synchronously.
57+
`filestorage` has references to blobs in `blobstorage`.
58+
If the two storages are not synchronized, you'll get errors whenever their data is accessed.
59+
60+
61+
### `collective.recipe.backup`
62+
63+
[`collective.recipe.backup`](https://pypi.org/project/collective.recipe.backup/) is a well-maintained buildout recipe that maintains data integrity for a live Plone database.
64+
65+
See its `README.md`'s section [Introduction](https://github.com/collective/collective.recipe.backup?tab=readme-ov-file#introduction) for its buildout recipe configuration.
66+
67+
The recipe supports several options, all of which are documented its `README.md`'s section [Supported options](https://github.com/collective/collective.recipe.backup/blob/master/README.rst#supported-options).
68+
69+
Perhaps the most useful option is `location`, which sets the destination for backup files.
70+
Its default value is `var/backups`, inside the buildout directory.
71+
The backup destination, may be any attached location, including another partition, drive, or network storage.
72+
73+
74+
#### Operation
75+
76+
After running buildout to configure `collective.recipe.backup`, you'll find {file}`bin/backup` and {file}`bin/restore` scripts in your buildout directory.
77+
Since all options are set via buildout, there are few command-line options, and operation is generally through bare commands.
78+
79+
{file}`bin/restore` will accept a date-time argument, if you keep multiple backups.
80+
For restore operations, stop Plone before starting your restore, and restart after the restore is complete.
81+
82+
{file}`bin/backup` is commonly included in a cron table for regular operation.
83+
You can run backup operations without stopping Plone.
84+
Make sure you test your backup and restore process before you need it.
85+
86+
87+
### Incremental backups
88+
89+
`collective.recipe.backup` offers both incremental and full backups, and will maintain multiple versions of backups.
90+
Tune these to meet your needs.
91+
92+
When you enable incremental backups, the database packing operation will automatically cause the next backup to be a full backup.
93+
94+
If your backup continuity need is critical, then your incremental backup schedule may need to be frequent.
95+
Some Plone sites require incremental backups every few minutes.

docs/admin-guide/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ configure-zope
3434
add-ons
3535
export-import
3636
override-core
37+
backup-restore-plone-buildout
3738
/upgrade/index
3839
```
3940
% TODO: uncomment and add the following link to the Operate toctree when https://github.com/plone/volto/pull/6397 is merged.

docs/backend/upgrading/preparations.md

Lines changed: 3 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -56,79 +56,9 @@ If Plone is being upgraded at the same time as a Zope version, Plone will usuall
5656
Always back up your Plone site before upgrading.
5757
```
5858

59-
This back up guide assumes the following.
60-
61-
- You back up your Plone site.
62-
- You back up your buildout and its caches.
63-
- You back up your persistent data storage using a strategy that maintains data integrity without taking down your Plone site, that is performed periodically with adequate frequency, and that stores sufficient versions of your data.
64-
- You've tested the restore process.
65-
66-
67-
### Where's my data?
68-
69-
Your Plone instance installation contains a directory {file}`./var`.
70-
This directory is located in the same directory as the file {file}`buildout.cfg`.
71-
It holds the frequently changing data files for the instance.
72-
{file}`./var` contains the instance's log, process ID, and socket files.
73-
74-
The following directories contain your instance's content.
75-
76-
77-
#### {file}`./var/filestorage`
78-
79-
The Zope Object Database ({term}`ZODB`) file storage is maintained in the directory {file}`./var/filestorage`.
80-
The default file name is {file}`Data.fs`, although you could have multiple files or renamed it.
81-
It's typically a large file which contains everything except {term}`blob`s.
82-
83-
The other files in this directory with the file extensions of `.index`, `.lock`, `.old`, or `.tmp` are ephemeral, and will be recreated by Zope if they're absent.
84-
85-
86-
#### {file}`./var/blobstorage`
87-
88-
The directory {file}`./var/blobstorage` contains a deeply nested directory hierarchy that contains the blobs of your database.
89-
These files may include PDFs, images, videos, office automation files, and other binary objects.
90-
91-
`filestorage` and `blobstorage` are maintained synchronously.
92-
`filestorage` has references to blobs in `blobstorage`.
93-
If the two storages are not synchronized, you'll get errors whenever their data is accessed.
94-
95-
96-
### `collective.recipe.backup`
97-
98-
[`collective.recipe.backup`](https://pypi.org/project/collective.recipe.backup/) is a well-maintained buildout recipe that maintains data integrity for a live Plone database.
99-
100-
See its `README.md`'s section [Introduction](https://github.com/collective/collective.recipe.backup?tab=readme-ov-file#introduction) for its buildout recipe configuration.
101-
102-
The recipe supports several options, all of which are documented its `README.md`'s section [Supported options](https://github.com/collective/collective.recipe.backup/blob/master/README.rst#supported-options).
103-
104-
Perhaps the most useful option is `location`, which sets the destination for backup files.
105-
Its default value is `var/backups`, inside the buildout directory.
106-
The backup destination, may be any attached location, including another partition, drive, or network storage.
107-
108-
109-
#### Operation
110-
111-
After running buildout to configure `collective.recipe.backup`, you'll find {file}`bin/backup` and {file}`bin/restore` scripts in your buildout directory.
112-
Since all options are set via buildout, there are few command-line options, and operation is generally through bare commands.
113-
114-
{file}`bin/restore` will accept a date-time argument, if you keep multiple backups.
115-
For restore operations, stop Plone before starting your restore, and restart after the restore is complete.
116-
117-
{file}`bin/backup` is commonly included in a cron table for regular operation.
118-
You can run backup operations without stopping Plone.
119-
Make sure you test your backup and restore process before you need it.
120-
121-
122-
### Incremental backups
123-
124-
`collective.recipe.backup` offers both incremental and full backups, and will maintain multiple versions of backups.
125-
Tune these to meet your needs.
126-
127-
When you enable incremental backups, the database packing operation will automatically cause the next backup to be a full backup.
128-
129-
If your backup continuity need is critical, then your incremental backup schedule may need to be frequent.
130-
Some Plone sites require incremental backups every few minutes.
131-
59+
```{seealso}
60+
For a Plone site installed via buildout, follow {doc}`/admin-guide/backup-restore-plone-buildout` for details.
61+
```
13262

13363
(upgrade-setup-a-test-environment-to-rehearse-the-upgrade-label)=
13464

0 commit comments

Comments
 (0)