ini rsnapshot.conf
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini rsnapshot.conf相关的知识,希望对你有一定的参考价值。
config_version 1.2
# Set snapshots root directory
snapshot_root /disk1/backup/
# backup policy
#################################
# EXTERNAL PROGRAM DEPENDENCIES #
#################################
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_logger /usr/bin/logger
#########################################
# BACKUP INTERVALS #
# Must be unique and in ascending order #
# i.e. hourly, daily, weekly, etc. #
#########################################
retain hourly 6
retain daily 7
retain weekly 4
############################################
# GLOBAL OPTIONS #
# All are optional, with sensible defaults #
############################################
verbose 2
loglevel 3
lockfile /var/run/rsnapshot.pid
###############################
### BACKUP POINTS / SCRIPTS ###
###############################
###### LOCALHOST
backup /home/ localhost/ # start from `snapshot_root` path, here: /disk1/backup/localhost/home/
backup /etc/ localhost/
backup /usr/local/ localhost/
backup_script /bin/date "+ backup of example.com started at %c" unused1
backup_script /bin/date "+ backup of example.com ended at %c" unused9
backup_script /root/scripts/mysql.backup.sh server1/mysql/
backup_script /usr/local/bin/backup_pgsql.sh localhost/postgres/
###### remote backup
# must have key-based logins enabled for the root user at example.com
#backup root@example.com:/home/ example.com/ +rsync_long_args=--bwlimit=16,exclude=core
# ex: backup remote server to /disk1/backup/example.com
backup root@example.com:/etc/ example.com/ exclude=mtab,exclude=core
#backup root@example.com:/var/db/dump/ example.com/
backup_script ssh root@example.com "mysqldump -A > /var/db/dump/mysql.sql" unused2
以上是关于ini rsnapshot.conf的主要内容,如果未能解决你的问题,请参考以下文章
centos下php.ini配置项
在Delphi下,怎样在DLL里读取ini文件的内容
vb读写ini文件
在Delphi下,如何在DLL里攫取ini文件的内容
delphi同步读取ini文件
pycharm新建ini文件或创建ini文件失败