Daily Backup

از ویکی پارس پویش
(تفاوت بین نسخه‌ها)
پرش به: ناوبری, جستجو
 
(یک ویرایش میانی توسط یک کاربر نشان داده نشده‌است)
سطر ۷: سطر ۷:
 
'''/etc/ccpbx_backup.conf'''
 
'''/etc/ccpbx_backup.conf'''
  
 +
#
 +
# PCC configuration files
 +
#
 +
# do we need to have dump of all available databases ?
 +
dump_db=1
 +
# do we need local backup ?
 +
local_1_backup=1
 +
local_2_backup=0
 +
# check for mount
 +
local_1_mount_check=1
 +
local_2_mount_check=1
 +
# Percent of maximum disk usage before clenaup
 +
du_1_percent=80
 +
du_2_percent=80
 +
# local temp directory
 +
local_1_inc_backup='/var/backups/pcc_inc1_backup/'
 +
local_2_inc_backup='/var/backups/pcc_inc2_backup/'
 +
dump_path='/var/backups/dump/'
 +
# path of local files to get backed up , this list can contain
 +
# both directories and files
 +
base_path='
 +
/etc/
 +
/usr/local/
 +
'
  
****'''PCC configuration files'''
+
  '''local_1_backup''': Set it to "1" if you want to enable saving backup.   
 
+
  '''local_1_inc_backup''': Set backup directory.   
 
+
  '''base_path''': Directories to save  
'''we need to have dump of all available databases ?'''
+
 
+
dump_db=1
+
 
+
'''do we need local backup ?'''
+
 
+
local_1_backup=1
+
 
+
local_2_backup=0
+
 
+
'''check for mount'''
+
 
+
local_1_mount_check=1
+
 
+
local_2_mount_check=1
+
 
+
'''Percent of maximum disk usage before clenaup'''
+
 
+
du_1_percent=80
+
 
+
du_2_percent=80
+
 
+
'''local temp directory'''
+
 
+
local_1_inc_backup='/var/backups/pcc_inc1_backup/'
+
 
+
local_2_inc_backup='/var/backups/pcc_inc2_backup/'
+
 
+
dump_path='/var/backups/dump/'
+
 
+
'''path of local files to get backed up , this list can contain'''
+
'''both directories and files'''
+
 
+
base_path='
+
 
+
/etc/
+
 
+
/usr/local/
+
'
+
 
+
    local_1_backup: Set it to "1" if you want to enable saving backup.   
+
    local_1_inc_backup: Set backup directory.   
+
    base_path: Directories to save  
+
  
 
'''Run Backup Script'''
 
'''Run Backup Script'''

نسخهٔ کنونی تا ‏۳ آوریل ۲۰۱۳، ساعت ۱۲:۱۷

                                                       Daily Backup

Configuration

/etc/ccpbx_backup.conf

#
# PCC configuration files
#
# do we need to have dump of all available databases ?
dump_db=1
# do we need local backup ?
local_1_backup=1
local_2_backup=0
# check for mount
local_1_mount_check=1
local_2_mount_check=1
# Percent of maximum disk usage before clenaup 
du_1_percent=80
du_2_percent=80
# local temp directory 
local_1_inc_backup='/var/backups/pcc_inc1_backup/'
local_2_inc_backup='/var/backups/pcc_inc2_backup/'
dump_path='/var/backups/dump/'
# path of local files to get backed up , this list can contain 
# both directories and files 
base_path='
/etc/
/usr/local/
'
  local_1_backup: Set it to "1" if you want to enable saving backup.   
  local_1_inc_backup: Set backup directory.   
  base_path: Directories to save 

Run Backup Script

Add this line to /etc/crontab to get backup every 3 am.

 0 3 * * * root /usr/local/pcc/bin/ccpbx_backup
ابزارهای شخصی

گویش‌ها
فضاهای نام
عملکردها
گشتن
جعبه‌ابزار