Debian Codegraph @

docs/index.rst

raw ◀ ▶
1 Debian patch touch this file
1 Cedar Backup v3
2 ===============
3
4 Release v\ |version|
5
6 Cedar Backup is a software package designed to manage system backups for a pool
7 of local and remote machines.
8
9 Cedar Backup understands how to back up filesystem data as well as MySQL and
10 PostgreSQL databases and Subversion repositories. It can also be easily extended
11 to support other kinds of data sources. The backup process is focused around
12 weekly backups to a single CD or DVD disc, with the expectation that the disc
13 will be changed or overwritten at the beginning of each week. Alternately,
14 Cedar Backup can write your backups to the Amazon S3 cloud rather than relying
15 on physical media.
16
17 Besides offering command-line utilities to manage the backup process, Cedar
18 Backup provides a well-organized library of backup-related functionality,
19 written in the Python 3 programming language.
20
21 There are many different backup software systems in the open source world.
22 Cedar Backup aims to fill a niche: it aims to be a good fit for people who need
23 to back up a limited amount of important data on a regular basis. Cedar Backup
24 isn’t for you if you want to back up your huge MP3 collection every night, or
25 if you want to back up a few hundred machines. However, if you administer a
26 small set of machines and you want to run daily incremental backups for things
27 like system configuration, current email, small web sites, source code
28 repositories, or small databases, then Cedar Backup is probably worth your
29 time.
30
31
32 Documentation
33 -------------
34
35 See the Changelog_ for recent changes.
36
37 The :doc:`manual/index` documents the process of setting up and using Cedar
38 Backup. In the manual, you can find information about how Cedar Backup works,
39 how to install and configure it, how to schedule backups, how to restore data,
40 and how to get support.
41
42
43 Package Distributions
44 ---------------------
45
46 Cedar Backup is primarily distributed as a Python 3 package. You can install
47 it using pip::
48
49 $ pip install cedar-backup3
50
51 In addition to the Python package, Cedar Backup requires a variety of external
52 system dependencies. For more information, see the :doc:`manual/index`.
53
54 Debian packages for Cedar Backup v3, called ``cedar-backup3`` and
55 ``cedar-backup3-doc``, were first available starting with the Debian 'stretch'
56 release. Debian derivatives (such as Ubuntu) should also contain the packages.
57
58
59 Library Code
60 ------------
61
62 The Cedar Backup v3 has been designed as both an application and a
63 library of backup-related functionality. The ``CedarBackup3`` Python package
64 contains a variety of useful backup-related classes and functions. For
65 instance: the ``IsoImage`` class represents an ISO CD image; the ``CdWriter``
66 class represents a CD-R/CD-RW writer device; and the ``FilesystemList`` class
67 represents a list of files and directories on a filesystem.
68
69 .. toctree::
70 :maxdepth: 1
71
72
73 Contributing Improvements
74 -------------------------
75
76 Users are welcome to contribute improvements to Cedar Backup. In the past,
77 users have helped out by reporting unit test failures, making suggestions,
78 requesting enhancements, updating documentation, submitting patches, and
79 beta-testing entire releases or individual bug fixes. As a result, Cedar
80 Backup has evolved into a much more flexible platform than it would otherwise
81 have been.
82
83
84 Migrating from Version 2 to Version 3
85 -------------------------------------
86
87 The main difference between Cedar Backup v2 and Cedar Backup v3 is the targeted
88 Python interpreter. Cedar Backup v2 was designed for Python 2, while v3 is a
89 conversion of the original code to Python 3. Other than that, both versions
90 are functionally equivalent. The configuration format is unchanged, and you
91 can mix-and-match masters and clients of different versions in the same backup
92 pool. However, v2 is no longer maintained, so you should convert as soon as
93 possible.
94
95 A major design goal for v3 was to facilitate easy migration testing for users,
96 by making it possible to install v3 on the same server where v2 was
97 already in use. A side effect of this design choice is that all of the
98 executables, configuration files, and logs changed names in v3. Where v2 used
99 ``cback``, v3 uses ``cback3``: ``cback3.conf`` instead of ``cback.conf``,
100 ``cback3.log`` instead of ``cback.log``, etc.
101
102 So, while migrating from v2 to v3 is relatively straightforward, you will have
103 to make some changes manually. You will need to create a new configuration
104 file (or soft link to the old one), modify your cron jobs to use the new
105 executable name, etc. You can migrate one server at a time in your pool with
106 no ill effects, or even incrementally migrate a single server by using v2 and
107 v3 on different days of the week or for different parts of the backup.
108
109 .. _Changelog: https://github.com/pronovic/cedar-backup3/blob/main/Changelog