There are config files and the Data.fs to back up with Plone. One can use the following repozo script, in the bin folder, to backup the Data.fs to a directory of choice:
From http://wiki.zope.org/ZODB/FileStorageBackup
repozo -BvzQ -r /foo/backup -f /foo/Data.fs
-B
tells repozo
to do a backup. -v
causes it to display messages about what it's doing. -z
causes the backup files to be compressed, using gzip. -Q
is an optimization using md5 checksums to skip large amounts of I/O; there is a vanishingly small chance that -Q
will cause repozo
to do a wrong thing, and you can omit -Q
if that bothers you, at the cost of more I/O and longer runtime. -r
and -f
specify the backup directory and FileStorage to back up, respectively.
Data.fs
can be in active use when you run repozo
. repozo
makes a read-only connection to the FileStorage, and backs up to the point of the most recent fully committed transaction at the time this connection is made.
repozo
will make either a full backup or an incremental backup. You can force a full backup with the -F
flag. Else repozo
does a full backup only if necessary. For example, a full backup is necessary if this is the first time a backup has been made, or if the FileStorage has been packed since the last time a backup was made.
In the backup directory, repozo
creates data files with names of the form YYYY-MM-DD-HH-MM-SS.$ext
, where $ext
is fsz
for a compressed full backup, deltafsz
for a compressed incremental backup, fs
for an uncompressed full backup, or deltafs
for an uncompressed incremental backup. It also creates, or appends to, a .dat
file, which is an index containing metadata about the data files. The YYYY-MM-DD-HH-MM-SS
part records the UTC (not local) time at which the backup was made.
repozo
is also used to recreate an .fs
file from the backup files:
repozo -Rv -r backup -D YYYY-MM-DD-HH-MM-SS -o Copy.fs
repozo -Rv -r backup -D YYYY-MM-DD-HH-MM-SS -o Copy.fs
-D
is optional, and specifies a UTC (not local) time; by default, current time is used. If specified, the hour, minute, and second parts are optional. repozo
recreates the originally backed-up FileStorage, to the state it had at the most recent backup at or before this time. The -o
option specifies an output file path, the name of the reconstructed FileStorage. In the example, the recreated FileStorage is Copy.fs
in the current directory.
repozo -BQ
is fast, usually taking time proportional to the growth in the FileStorage since the last time it was run. It's a good idea to make backups daily; incremental repozo
backups are made quickly enough that you may wish to run them more frequently.
Other Information
How to backup your content in the database file Data.fs
http://plone.org/documentation/kb/backup-and-recover-data-fs-in-linux/backup-plone/