initial commit of file from CVS for smeserver-BackupPC on Sat Sep 7 20:10:07 AEST 2024
This commit is contained in:
40
root/etc/BackupPC/localArchive.conf
Normal file
40
root/etc/BackupPC/localArchive.conf
Normal file
@@ -0,0 +1,40 @@
|
||||
# Destination directory, where the archive will be created
|
||||
destination = /tmp/
|
||||
|
||||
# Split size in MBytes. If different from 0, the archive will be cut at this size
|
||||
split = 0
|
||||
|
||||
# Compression. Can be gzip, bzip2 or none
|
||||
compress = gzip
|
||||
|
||||
# Encryption of the archives, using OpenSSL
|
||||
# You can put here the name of the cipher you want to use
|
||||
# To obtain a list of available cipher, run the command
|
||||
# man enc
|
||||
# eg: cipher = aes-256-cbc
|
||||
# If encryption is turned on, .enc will be appended
|
||||
# At the end of the archive's name.
|
||||
# To be able tu use this archive talter, you'll have to
|
||||
# decrypt it using the same key
|
||||
# cat archive.tar.gz.enc | openssl enc aes-256-cbc -d -pass file:/etc/BackupPC/archive.key > archive.tar.gz
|
||||
cipher = off
|
||||
|
||||
# The key file to use to encrypt the archive
|
||||
# You should backup this key somewhere. If you lost it
|
||||
# your archives will be unusuable
|
||||
key = /etc/BackupPC/archive.key
|
||||
|
||||
# The backup number to archive, -1 means the last one
|
||||
backupNum = -1
|
||||
|
||||
# The share to archive
|
||||
share = '*'
|
||||
|
||||
# The amount of parity (using par2)
|
||||
parity = 0
|
||||
|
||||
# The hosts to archive, separate them with a space eg: localhost server1 server2
|
||||
hosts = localhost
|
||||
|
||||
# The user who will receive the log of the archive, you can set a email address out of the server if you want
|
||||
sendMailTo = admin
|
17
root/etc/BackupPC/localCopyPool.conf
Normal file
17
root/etc/BackupPC/localCopyPool.conf
Normal file
@@ -0,0 +1,17 @@
|
||||
# Destination directory, where the pool will be copied
|
||||
destination = /tmp/
|
||||
|
||||
# The source directory, the topdir of the data
|
||||
source = /var/lib/BackupPC
|
||||
|
||||
# Compression used for the "pc" archive. Can be gzip, bzip2 or none
|
||||
compress = gzip
|
||||
|
||||
# If you want to extract the "pc" archive on the destination, can be set to 'yes' or 'no'
|
||||
extract = yes
|
||||
|
||||
# Stop BackupPC daemon. You should let this to 'yes' unless you use something like LVM snapshots
|
||||
stop = yes
|
||||
|
||||
# The user who will receive the log of the archive, you can set a email address out of the server if you want
|
||||
sendMailTo = admin
|
32
root/etc/BackupPC/pc/localserver-template.pl
Normal file
32
root/etc/BackupPC/pc/localserver-template.pl
Normal file
@@ -0,0 +1,32 @@
|
||||
$Conf{RsyncShareName} = [
|
||||
'/'
|
||||
];
|
||||
$Conf{BackupFilesExclude} = {
|
||||
'/' => [
|
||||
'/var/lib/BackupPC',
|
||||
'/proc',
|
||||
'/tmp',
|
||||
'/sys',
|
||||
'/dev',
|
||||
'/boot',
|
||||
'/mnt',
|
||||
'/media',
|
||||
'/selinux',
|
||||
'/aquota.*',
|
||||
'/lost+found',
|
||||
'/initrd',
|
||||
'/var/tmp',
|
||||
'/var/lib/mysql'
|
||||
]
|
||||
};
|
||||
$Conf{DumpPreUserCmd} = '/usr/bin/sudo /usr/share/BackupPC/bin/BackupPC_SME_pre-backup';
|
||||
$Conf{XferMethod} = 'rsync';
|
||||
$Conf{RsyncClientCmd} = '/usr/bin/sudo $rsyncPath $argList+';
|
||||
$Conf{RsyncClientRestoreCmd} = '/usr/bin/sudo $rsyncPath $argList+';
|
||||
$Conf{ClientNameAlias} = '127.0.0.1';
|
||||
$Conf{BackupsDisable} = 1;
|
||||
$Conf{RsyncSshArgs} = [
|
||||
'-e',
|
||||
'/usr/bin/sudo -p'
|
||||
];
|
||||
|
26
root/etc/BackupPC/pc/smeserver-template.pl
Normal file
26
root/etc/BackupPC/pc/smeserver-template.pl
Normal file
@@ -0,0 +1,26 @@
|
||||
$Conf{RsyncShareName} = [
|
||||
'/'
|
||||
];
|
||||
$Conf{BackupFilesExclude} = {
|
||||
'/' => [
|
||||
'/var/lib/BackupPC/',
|
||||
'/proc',
|
||||
'/tmp',
|
||||
'/sys',
|
||||
'/dev',
|
||||
'/boot',
|
||||
'/mnt',
|
||||
'/media',
|
||||
'/selinux',
|
||||
'/aquota.*',
|
||||
'/lost+found',
|
||||
'/initrd',
|
||||
'/var/tmp',
|
||||
'/var/lib/mysql',
|
||||
'/var/spool/squid'
|
||||
]
|
||||
};
|
||||
$Conf{DumpPreUserCmd} = '$sshPath -l root $host /sbin/e-smith/signal-event pre-backup';
|
||||
$Conf{XferMethod} = 'rsync';
|
||||
$Conf{BackupsDisable} = 1;
|
||||
|
38
root/etc/BackupPC/pc/windows-template.pl
Normal file
38
root/etc/BackupPC/pc/windows-template.pl
Normal file
@@ -0,0 +1,38 @@
|
||||
$Conf{ClientCharset} = 'cp1252';
|
||||
$Conf{RsyncShareName} = [
|
||||
'cDrive'
|
||||
];
|
||||
$Conf{RsyncdPasswd} = 'secret';
|
||||
$Conf{RsyncdUserName} = 'backuppc';
|
||||
$Conf{XferMethod} = 'rsyncd';
|
||||
$Conf{BackupFilesExclude} = {
|
||||
'*' => [
|
||||
'*/hiberfil.sys',
|
||||
'*/pagefile.sys',
|
||||
'*/WUTemp',
|
||||
'*/RECYCLER',
|
||||
'*/UsrClass.dat',
|
||||
'*/UsrClass.dat.LOG',
|
||||
'*/NTUSER.DAT',
|
||||
'*/NTUSER.DAT.LOG',
|
||||
'*/Temporary?Internet?Files/*',
|
||||
'*/Documents?and?Settings/*/Recent',
|
||||
'*/Cache',
|
||||
'*/parent.lock',
|
||||
'*/Thumbs.db',
|
||||
'*/IconCache.db',
|
||||
'*/System?Volume?Information',
|
||||
'*/Temp/*',
|
||||
'*.tmp',
|
||||
'*.bak',
|
||||
'*/WINDOWS/system32/config/SYSTEM',
|
||||
'*/WINDOWS/system32/config/SOFTWARE',
|
||||
'*/WINDOWS/system32/config/SECURITY',
|
||||
'*/WINDOWS/system32/config/SECURITY.LOG',
|
||||
'*/WINDOWS/system32/config/SAM',
|
||||
'*/WINDOWS/system32/config/SAM.LOG',
|
||||
'*/WINDOWS/system32/config/DEFAULT',
|
||||
]
|
||||
};
|
||||
$Conf{BackupsDisable} = 1;
|
||||
|
41
root/etc/BackupPC/remoteArchive.conf
Normal file
41
root/etc/BackupPC/remoteArchive.conf
Normal file
@@ -0,0 +1,41 @@
|
||||
# The host you to send archives to
|
||||
remoteHost = remote.host.com
|
||||
|
||||
# The remote user to use for the ssh connection
|
||||
remoteUser = root
|
||||
|
||||
# Destination directory, where the archive will be created
|
||||
remoteDir = /tmp/
|
||||
|
||||
# Compression. Can be gzip, bzip2 or none
|
||||
compress = gzip
|
||||
|
||||
# Encryption of the archives, using OpenSSL
|
||||
# You can put here the name of the cipher you want to use
|
||||
# To obtain a list of available cipher, run the command
|
||||
# man enc
|
||||
# eg: cipher = aes-256-cbc
|
||||
# If encryption is turned on, .enc will be appended
|
||||
# At the end of the archive's name.
|
||||
# To be able tu use this archive talter, you'll have to
|
||||
# decrypt it using the same key
|
||||
# cat archive.tar.gz.enc | openssl enc aes-256-cbc -d -pass file:/etc/BackupPC/archive.key > archive.tar.gz
|
||||
cipher = off
|
||||
|
||||
# The key file to use to encrypt the archive
|
||||
# You should backup this key somewhere. If you lost it
|
||||
# your archives will be unusuable
|
||||
key = /etc/BackupPC/archive.key
|
||||
|
||||
# The backup number to archive, -1 means the last one
|
||||
backupNum = -1
|
||||
|
||||
# The share to archive
|
||||
share = '*'
|
||||
|
||||
# The hoststo archive, separate them with a space eg: localhost server1 server2
|
||||
hosts = localhost
|
||||
|
||||
# The user who will receive the log of the archive, you can set a email address out of the server if you want
|
||||
sendMailTo = admin
|
||||
|
23
root/etc/BackupPC/remoteCopyPool.conf
Normal file
23
root/etc/BackupPC/remoteCopyPool.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
# The host you to send the pool to
|
||||
remoteHost = remote.host.com
|
||||
|
||||
# The remote user to use for the ssh connection
|
||||
remoteUser = root
|
||||
|
||||
# Destination directory, where the archive will be created
|
||||
remoteDir = /tmp/
|
||||
|
||||
# The source directory, the topdir of the data
|
||||
source = /var/lib/BackupPC
|
||||
|
||||
# Compression used for the "pc" archive. Can be gzip, bzip2 or none
|
||||
compress = gzip
|
||||
|
||||
# If you want to extract the "pc" archive on the destination, can be set to 'yes' or 'no'
|
||||
extract = yes
|
||||
|
||||
# Stop BackupPC daemon. You should let this to 'yes' unless you use something like LVM snapshots
|
||||
stop = yes
|
||||
|
||||
# The user who will receive the log of the archive, you can set a email address out of the server if you want
|
||||
sendMailTo = admin
|
40
root/etc/BackupPC/usbArchive.conf
Normal file
40
root/etc/BackupPC/usbArchive.conf
Normal file
@@ -0,0 +1,40 @@
|
||||
# The device you want to use, where the archive will be created
|
||||
device = /dev/sdc1
|
||||
|
||||
# Split size in MBytes. If different from 0, the archive will be cut at this size
|
||||
split = 0
|
||||
|
||||
# Compression. Can be gzip, bzip2 or none
|
||||
compress = gzip
|
||||
|
||||
# Encryption of the archives, using OpenSSL
|
||||
# You can put here the name of the cipher you want to use
|
||||
# To obtain a list of available cipher, run the command
|
||||
# man enc
|
||||
# eg: cipher = aes-256-cbc
|
||||
# If encryption is turned on, .enc will be appended
|
||||
# At the end of the archive's name.
|
||||
# To be able tu use this archive talter, you'll have to
|
||||
# decrypt it using the same key
|
||||
# cat archive.tar.gz.enc | openssl enc aes-256-cbc -d -pass file:/etc/BackupPC/archive.key > archive.tar.gz
|
||||
cipher = off
|
||||
|
||||
# The key file to use to encrypt the archive
|
||||
# You should backup this key somewhere. If you lost it
|
||||
# your archives will be unusuable
|
||||
key = /etc/BackupPC/archive.key
|
||||
|
||||
# The backup number to archive, -1 means the last one
|
||||
backupNum = -1
|
||||
|
||||
# The share to archive
|
||||
share = '*'
|
||||
|
||||
# The amount of parity (using par2)
|
||||
parity = 0
|
||||
|
||||
# The hoststo archive, separate them with a space eg: localhost server1 server2
|
||||
hosts = localhost
|
||||
|
||||
# The user who will receive the log of the archive, you can set a email address out of the server if you want
|
||||
sendMailTo = admin
|
18
root/etc/BackupPC/usbCopyPool.conf
Normal file
18
root/etc/BackupPC/usbCopyPool.conf
Normal file
@@ -0,0 +1,18 @@
|
||||
# The device you want to use, where the archive will be created
|
||||
device = /dev/sdc1
|
||||
|
||||
# Compression to use for the "pc" archive. Can be gzip, bzip2 or none
|
||||
compress = gzip
|
||||
|
||||
# The source directory, the topdir of the data
|
||||
source = /var/lib/BackupPC
|
||||
|
||||
# If you want to extract the "pc" archive on the destination, can be set to 'yes' or 'no'
|
||||
extract = yes
|
||||
|
||||
# Stop BackupPC daemon. You should let this to 'yes' unless you use something like LVM snapshots
|
||||
stop = yes
|
||||
|
||||
# The user who will receive the log of the archive, you can set a email address out of the server if you want
|
||||
sendMailTo = admin
|
||||
|
Reference in New Issue
Block a user