दस्तावेज़
tklbam-backup: वर्तमान सिस्टम बैकअप
SYNOPSIS
tklbam-backup [-options] [ ओवरराइड ...]
ARGUMENTS
<override> := <filesystem-override> | <database-override>
ओवरराइड आमतौर पर /etc/tklbam/overrides. में कॉन्फ़िगर किए जाते हैं
फ़ाइलसिस्टम ओवरराइड
<filesystem-override> := -?/path/to/include/or/exclude
इसमें अतिरिक्त फ़ाइलों और निर्देशिकाओं को शामिल या बाहर रखा गया है, अगर वे स्थापना के बाद बदल गए हैं तो बैकअप किया जा रहा है।
/var/lib/tklbam/profile/dirindex.conf में ओवरराइड डिफ़ॉल्ट
नोट ओवरराइड्स जिसमें उनके पथ में एक स्थान शामिल है NOT को /etc/tklbam/overrides में शामिल होने पर भाग लेने की आवश्यकता होती है (बस उन्हें अपनी लाइन पर डाल दें)। यदि उन्हें कमांडलाइन से बाहर निकलें / उन्हें छोड़कर, तो उन्हें बच या उद्धृत किया जा सकता है। उदाहरण के लिए /path\\\\\ space/ या "/path with space/"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
गोटा:
- यदि आप पैकेज प्रबंधन द्वारा संभाली गई निर्देशिका जोड़ते हैं तो यह आपके द्वारा बहाल किए गए सिस्टम पर पैकेज प्रबंधन को तोड़ सकता है।
- केवल परिवर्तन (जैसे, नई फाइलें, संपादित फाइलें, हटाई गई फाइलें) आधार स्थापना से बैकअप में शामिल हैं।
उदाहरण:
# exclude log files in /var/www -/var/www/*/logs # ignores changes to webmin configuration -/etc/webmin # include the contents of an external hard disk... /mnt/images
डेटाबेस ओवरराइड
<database-override> := -?mysql:database[/table]
<database-override> := -?pgsql:database[/table]
डिफ़ॉल्ट ALL MySQL/MariaDB डेटाबेस और टेबल्स द्वारा समर्थित हैं।
इसी तरह, ALL PostgreSQL डेटाबेस को शामिल किया गया है - EXCEPTION के साथ postgres डेटाबेस - सभी PostgreSQL इंस्टॉल में डिफ़ॉल्ट रूप से शामिल एक खाली डेटाबेस।
डिफ़ॉल्ट का बहिष्कार postgres PostgreSQL डेटाबेस
The exclusion of the exclusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the slusion of the s postgres डेटाबेस कर सकते हैं NOT अगर स्पष्ट रूप से एक ओवरराइड के रूप में जोड़ा गया है तो भी ओवररिडेन हो सकता है।
कुछ प्रलेखन से पता चलता है कि डिफ़ॉल्ट का उपयोग नहीं करने के लिए यह "सर्वश्रेष्ठ अभ्यास" है postgres उपयोगकर्ता डेटा के लिए डेटाबेस हालांकि, कोई दस्तावेजी सख्त कारण नहीं है कि इसका उपयोग क्यों नहीं किया जाना चाहिए। इसलिए इस डेटाबेस को शामिल करने में असमर्थता को एक बग माना जाता है और भविष्य में TKLBAM अद्यतन में संबोधित किया जाएगा। यदि आप पहले से ही उपयोग कर रहे हैं, तो आप पहले से ही इस डेटाबेस को शामिल करने में सक्षम हैं। postgres डेटाबेस को बदल दिया जा सकता है, या आप अपने डेटा को एक नए डेटाबेस में ले जा सकते हैं।
डाटाबेस ओवरराइड विस्तार
सकारात्मक ओवरराइड (जैसे mysql:mydatabase / pgsql:mydatabase) जोड़ना डिफ़ॉल्ट व्यवहार को बदल देता है ताकि ओवरराइड में निर्दिष्ट केवल डेटाबेस या तालिका शामिल हो सके। यदि आप एकाधिक डेटाबेस को शामिल करने के लिए ओवरराइड्स का उपयोग करना चाहते हैं लेकिन सब कुछ नहीं, तो उन्हें अलग से नोट किया जाना चाहिए।
नकारात्मक डेटाबेस / टेबल ओवरराइड्स (एक डैश उपसर्ग के साथ) एक डेटाबेस या तालिका को बाहर रखा (उदाहरण के लिए, -mysql:mydatabase / -pgsql:mydatabase)।
एक तालिका को छोड़कर केवल इसके डेटा को बाहर कर देता है। एक बाहर की तालिका की स्कीमा अभी भी बैक अप है, क्योंकि यह अंतरिक्ष की एक छोटी राशि लेता है और अन्य तालिकाओं या विचारों पर निर्भर हो सकता है।
सकारात्मक और नकारात्मक ओवरराइड्स को ठीक अनाज नियंत्रण देने के लिए मिश्रित किया जा सकता है।
उदाहरण:
# exclude Drupal10 sessions table -mysql:drupal10/sessions # only include drupal10 database mysql:drupal10 # only include Mahara PostgreSQL database pgsql:mahara
OPTIONS
ध्यान दें: वैकल्पिक लक्ष्य को अतिरिक्त निर्भरता की आवश्यकता हो सकती है उदाहरण के लिए SSH का उपयोग करने के लिए आपको स्थापित करना होगा
'python-paramiko' (Python-paramiko)apt-get update && apt-get install python-paramiko).
वर्तमान में प्रत्येक लक्ष्य की आवश्यकताओं को दस्तावेज नहीं किया जाता है; हालांकि यदि आप ध्यान में रखते हैं कि TKLBAM
Duplicity का उपयोग वापस के अंत में करता है, गूगल को मार्गदर्शन प्रदान करना चाहिए।
- --dump=DIR: पथ के लिए एक कच्चे बैकअप निकालने डंप। युक्ति: tklbam-रिस्टोर पथ / से / रैव / एक्सट्रैक्ट /
- --raw-upload=PATH: --address को कच्चे पथ सामग्री अपलोड करने के लिए Duplicity का उपयोग करें
-
--address=TARGET_URL: manual backup target URL. Default: automatically configured via Hub
समर्थित भंडारण बैकएंड और उनके URL प्रारूप:
फ़ाइल: /some_dir
rsync://user[:password]@other.host[:port]//absolute_path
rsync://user[:password]@other.host[:port]/relative_path
rsync://user[:password]@other.host[:port]:/module/some_dir
s3://other.host/bucket_name[/prefix]
S3+http://bucket_name[/prefix
FTP: /user[:पासवर्ड]@other.host[:port]/some_dir
Ftps://user[:password]@other.host[:port]/some_dir
Hsi://user[:password]@other.host[:port]/some_dir
Iap://user[:password]@other.host[:port]/some_dir
scp://user[:password]@other.host[:port]/some_dir
Ssh://user[:password]@other.host[:port]/some_dir
ताहो: / /alias/directory
webdav://user[:password]@other.host/some_dir
webdavs://user[:password]@other.host/some_dir
Gdocs://user[:password]@other.host/some_dir - --resumeA sackage of aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, aborted, abor
- --disable-resumeजब एक aborted बैकअप rerunning निष्क्रिय --resume
- --simulate, -s: अनुकरण संचालन वास्तव में बैकअप नहीं है। हाथ से /TKLBAM का निरीक्षण करने के लिए उपयोगी है।
- --quiet, -q: कम से कम क्रिया
- --logfile=PATHA file to log output to. डिफ़ॉल्ट: /var/log/tklbam-backup
- --debug: Duplicity से पहले $ SHELL चलाएं
विन्यास विकल्प
- --volsize MBएमबी में बैकअप वॉल्यूम का आकार डिफ़ॉल्ट: 50
- --skip-files: बैकअप फ़ाइल सिस्टम नहीं
- --skip-database: बैकअप डेटाबेस नहीं
- --skip-packages: नया पैकेज बैकअप न करें
- --s3-parallel-uploads एन: समानांतर मात्रा में अंकित अपलोड की संख्या (डिफ़ॉल्ट: 1)
- --force-profile=PROFILE_ID: फोर्स बैकअप प्रोफाइल (जैसे, "कोर")
-
--full-backup FREQUENCYडिफ़ॉल्ट: 1M <frequency> := <int>[DWM]]
उदाहरण के लिए,
अब
3D - तीन दिन
2W - दो सप्ताह
1M - एक महीना
विन्यास विकल्प के लिए संकल्प आदेश
- कॉमैंड लाइन (सबसे ज्यादा पूर्ववर्ती)
-
विन्यास फ़ाइल (/etc/tklbam/conf):)
# comment <option-name> <value>
- अंतर्निहित डिफ़ॉल्ट (सबसे कम प्राथमिकता)
USAGE EXAMPLES
# पूर्ण प्रणाली स्तर बैकअप
tklbam-backup
# इसके बाद के परिणाम के रूप में लेकिन दो चरणों में: पहले एक निर्देशिका में डंप, फिर इसे अपलोड करें
tklbam-backup --dump=/tmp/mybackup
tklbam-backup --raw-upload=/tmp/mybackup
# बैकअप डुप्लिकिटी अभिलेखागार स्थानीय फ़ाइल सिस्टम पर एक कस्टम पते के लिए
tklbam-backup --address=file:///mnt/backups/mybackup
tklbam-escrow इस-keyfile-need-to-restore-mybackup.escrow
# एक बैकअप को अनुकरण करें जो mysql ग्राहकों को DB और 'emails' तालिका को वेबअपैप DB में बाहर कर देता है।
# टिप: आम तौर पर आप /etc/tklbam/overrides में बाहर की ओर कॉन्फ़िगर करना चाहते हैं
tklbam-backup --simulate --/srv -mysql: ग्राहक -mysql: webapp/email
# पहले से बाहर की गई वस्तुओं वाले अद्वितीय बैकअप ids के साथ अलग बैकअप बनाएं
# टिप: हब बैकअप आईडी निर्धारित करने के लिए tklbam-बैकअप के बाद tklbam-status का उपयोग करें
export TKLBAM_REGISTRY=/var/lib/tklbam.customers-and-webapp-emails
tklbam-backup --skip-files --skip-packages - mysql: ग्राहक mysql: वेबअप / ईमेल
export TKLBAM_REGISTRY=/var/lib/tklbam.raw-srv
tklbam-backup --raw-upload=/srv
FILES
- विन्यास फाइलें: /etc/tklbam/overrides, /etc/tklbam/conf, /etc/tklbam/hooks.d
- प्रोफ़ाइल का स्थानीय कैश: /var/lib/tklbam/profile