Collective-recipe-backup

Latest version: v4.0

Safety actively analyzes 629436 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 9

4.0b1

==================

- Make custom backup locations relative to the ``locationprefix`` option or the ``var`` directory.
Until now, the ``locationprefix`` option was only used if you did not set custom locations.
Custom location would be relative to the buildout directory.
Now they are relative to the ``locationprefix`` option, with the ``var`` directory as default.
So if you used a relative path, your backups may end up in a different path.
Absolute paths are not affected: they ignore the locationprefix.
[maurits]

- When log level is DEBUG, show time stamps in the log. [maurits]

- Added ``compress_blob`` option. Default is false.
This is only used when the ``archive_blob`` option is true.
When switched on, it will compress the archive,
resulting in a ``.tar.gz`` instead of a ``tar`` file.
When restoring, we always look for both compressed and normal archives.
We used to always compress them, but in most cases it hardly decreases the size
and it takes a long time anyway. I have seen archiving take 15 seconds,
and compressing take an additional 45 seconds.
The result was an archive of 5.0 GB instead of 5.1 GB.
[maurits]

- Renamed ``gzip_blob`` option to ``archive_blob``.
Kept the old name as alias for backwards compatibility.
This makes room for letting this create an archive without zipping it.
[maurits]

- Automatically remove old blobs backups that have no corresponding filestorage backup.
We compare the timestamp of the oldest filestorage backup with the timestamps of the
blob backups. This can be the name, if you use ``blob_timestamps = true``,
or the modification date of the blob backup.
This means that the ``keep_blob_days`` option is ignored, unless you use ``only_blobs = true``.
[maurits]

- When backing up a blobstorage, use the timestamp of the latest filestorage backup.
If a blob backup with that name is already there, then there were no database changes,
so we do not make a backup.
This is only done when you use the new ``blob_timestamps = true`` option.
[maurits]

- When restoring to a specific date, find the first blob backup at or before
the specified date. Otherwise fail. The repozo script does the same.
We used to pick the first blob backup *after* the specified date,
because we assumed that the user would specify the exact date that is
in the filestorage backup.
Note that the timestamp of the filestorage and blobstorage backups may be
a few seconds apart, unless you use the ``blob_timestamps == true`` option.
In the new situation, the user should pick the date of the blob backup
or slightly later.
[maurits]

- Added ``blob_timestamps`` option. Default is false.
By default we create ``blobstorage.0``.
The next time, we rotate this to ``blobstorage.1`` and create a new ``blobstorage.0``.
With ``blob_timestamps = true``, we create stable directories that we do not rotate.
They get a timestamp, the same timestamp that the ZODB filestorage backup gets.
For example: ``blobstorage.1972-12-25-01-02-03``.
[maurits]

- When restoring, first run checks for all filestorages and blobstorages.
When one of the backups is missing, we quit with an error.
This avoids restoring a filestorage and then getting into trouble
due to a missing blobstorage backup. [maurits]

3.1

================

- Add a ``locationprefix`` option to configure a folder where all other
backup and snapshot folders will be created [erral]

- Only claim compatibility with Python 2.6 and 2.7. [maurits]

- Updated test buildout to use most recent versions. [maurits]

3.0.0

==================

- Refactored the init and install methods of this recipe. During the
init phase we were reading the buildout configuration, but during
this phase the configuration is still being build. So differences
could occur, especially in the order of execution of parts. This
was not good. Most code is now moved from the init to the install
(and update) method. This has less possible problems. Downside:
some configuration errors are caught later.
[maurits]

- Read ``zeo-var``, ``var``, ``file-storage`` from buildout sections.
Update default backup and Data.fs locations based on this.
[maurits]

2.22

=================

- Do not accept ``backup_blobs`` false and ``enable_zipbackup`` true.
The zipbackup script is useless without blobs.
[maurits]

- Set default ``backup_blobs`` to true on Python 2.6 (Plone 4) and
higher. Otherwise false. If no ``blob_storage`` can be found, we
quit with an error.
[maurits]

- Accept ``true``, ``yes``, ``on``, ``1``, in lower, upper or mixed
case as true value. Treat all other values in the buildout options
as false.
[maurits]

- Find plone.recipe.zope2instance recipes also when they are not
completely lower case. The zope2instance recipe itself works fine
when it has mixed case, so we should accept this too.
[maurits]

2.21

=================

- When restoring, create ``var/filestorage`` if needed.
Fixes 23.
[maurits]

2.20

=================

- Add ``enable_fullbackup`` option. Default: true, so no change
compared to previous version.
[maurits]

- Create backup/snapshot/zipbackup directories only when needed.
Running the backup script should not create the snapshot
directories.
[maurits]

- Add zipbackup and ziprestore scripts when ``enable_zipbackup = true``.
[maurits]

Page 2 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.