110 lines
4.8 KiB
ReStructuredText
Raw Normal View History

===
2014-07-22 22:46:31 +01:00
FAQ
===
1) **What is freezer**?
Is a tool to automate data backup and restore
process using OpenStack Swift and/or other media storage
2014-07-22 22:46:31 +01:00
2) **Does freezer support incremental backup?**
Yes. Incremental backup are done using GNU tar incremental features
2014-07-22 22:46:31 +01:00
3) **Does freezer check the file contents to establish if a file was modified?**
Freezer check for changes at mtime and ctime in
2014-07-22 22:46:31 +01:00
every file inode to evaluate if a file changed or not.
4) **Why GNU tar rather then rsync?**
Both approaches are good. Rsync check
2014-07-22 22:46:31 +01:00
the file content, while tar check the file inode. In our
environment, we need to backup directories with size > 400GB and
hundreds of thousands of files. Rsync approach is effective but slow.
2014-07-22 22:46:31 +01:00
Tar is fast as it needs to check only the file inodes, rather then
the full file content. Rsync backup type will be added pretty soon
2014-07-22 22:46:31 +01:00
5) *Does freezer support encrypted backup?*
Yes. Freezer encrypt data using OpenSSL (AES-256-CFB).
2014-07-22 22:46:31 +01:00
6) **Does freezer execute point-in-time backup?**
Yes. For point in time backup LVM snapshot feature used.
2014-07-22 22:46:31 +01:00
7) **Can I use freezer on OSX or other OS where GNU Tar is not installed
by default?**
Yes. For OSX and \*BSD, just install gtar and freezer
2014-07-22 22:46:31 +01:00
automatically will use gtar to execute backup. OS other then Linux,
OSX and \*BSD are currently not supported.
8) **What Application backup does freezer support currently?**
MongoDB, MySQL to have a higher level of data consistency, while
any appplication is supported for crash consistent data integrity.
2014-07-22 22:46:31 +01:00
9) **How does the MongoDB backup happens?**
Freezer required journal enabled in Mongo and lvm volume to execute backup.
It checks if the Mongo instance is the master and create lvm snapshot to have
2014-07-22 22:46:31 +01:00
consistent data.
10) **Does freezer manage sparse files efficiently?**
Yes. Zeroed/null data is not backed up. So less space and bandwidth will be used.
2014-07-22 22:46:31 +01:00
11) **Does freezer remove automatically backup after some time?**
Yes. From command line the option --remove-older-then (days) can be used to
2014-07-22 22:46:31 +01:00
remove objects older then (days).
12) **Does freezer support MySQL Backup?**
Yes.
13) **What storage media are currently supported?**
Current support media storage are:
a. Swift
b. Store files on a remote host file system using ssh
c. Directory in the local host (i.e. NFS/CIFS mounted volumes)
14) **Does freezer has any Web UI or API?**
Yes. Freezer has REST API and a Web UI integrated with Horizon
2014-07-22 22:46:31 +01:00
15) **Does Freezer detect removed files between incremental executions?**
Yes.
2014-07-22 22:46:31 +01:00
16) **Will Freezer be included as official project in OpenStack?**
We hope so, as soon as we can.
2014-07-22 22:46:31 +01:00
17) **Does freezer support Windows?**
Yes. The freezer agent and scheduler can be executed on Windows
2014-07-22 22:46:31 +01:00
18) **What is being used on Windows to execute file system snapshots?**
Curretnly VSS are used to support point in time snapshots
2014-07-22 22:46:31 +01:00
19) **What applications are supported in Windows for consisten backups?**
SQL Server (--mode sqlserver)
2014-07-22 22:46:31 +01:00
20) **Are there examples of OpenStack projects that use Freezer that I can look at?**
Not currently
21) **My service has it's own task scheduler. What is the recommended way to schedule Freezer runs?**
If you want to use the freezer-api and freezer-web-ui in horizon, you need to use the freezer-scheduler.
If you do not need the api and web ui, you can just execute the freezer-agent from crontab or any other scheduler.
22) **What are the benefits of using the API and Web UI?**
- You can start backup and restore jobs on any node from the Web UI
- Backup jobs can be synchronized across multiple nodes
- The UI provides metrics and other info
23) **How can I run user-defined scripts before and after a backup run?**
A simple solution is to implement your own script locally and execute
freezer-agent from it.
We recommend instead creating "exec"-type jobs in the UI and set up job
dependencies.
24) **What are the options for backing up MySQL/Percona?**
a. Make use of filesystem snapshots (LVM) using the "--mode mysql" option. It's supported natively by Freezer and suitable for large databases.
This instructs freezer to execute the following steps:
- flush tables and lock the DB
- take an LVM snapshot
- release the DB (so it's usable again very quiclky)
- backup the consistent DB image from the snapshot
- release the snapshot
b. Manual process - It does not require LVM and provides incremental backup.
- manually flush tables and lock the DB: "flush tables with read lock"
- backup the DB folder, usually /var/lib/mysql (--mode fs --path-to-backup /var/lib/mysql --max-level 14)
- manually unlock the DB
Using mysqldump is not recommended for speed and reliability reasons.