2be468138f
Backups for SQL Server, MySQL, MongoDB and filesystem on windows using shadow copies (vssadmin), tar compression and encryption using openssl and tar.. Change-Id: I1f68e012f28891c19e4d94352511ec968382c8e2 Implements: blueprint add-windows-support-for-backup-and-restore
45 lines
1.5 KiB
Python
Executable File
45 lines
1.5 KiB
Python
Executable File
#!/usr/bin/env python
|
|
'''
|
|
Copyright 2014 Hewlett-Packard
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
|
|
This product includes cryptographic software written by Eric Young
|
|
(eay@cryptsoft.com). This product includes software written by Tim
|
|
Hudson (tjh@cryptsoft.com).
|
|
========================================================================
|
|
|
|
Freezer offer the following features:
|
|
[*] Backup your filesystem using lvm snapshot to swift
|
|
[*] Data Encryption (AES-256-CFB)
|
|
[*] Backup your file system tree directly (without volume snapshot)
|
|
[*] Backup your journaled mongodb directory tree using lvm snap to swift
|
|
[*] Backup MySQL DB with lvm snapshot
|
|
[*] Restore automatically your data from swift to your filesystems
|
|
[*] Low storage consumption as the backup are uploaded as a stream
|
|
[*] Flexible Incremental backup policy
|
|
'''
|
|
|
|
from freezer.main import freezer_main, fail
|
|
|
|
|
|
if __name__ == '__main__':
|
|
try:
|
|
freezer_main()
|
|
except ValueError as err:
|
|
fail(1, err)
|
|
except ImportError as err:
|
|
fail(1, err)
|
|
except Exception as err:
|
|
fail(1, err)
|