Initial commit

This commit is contained in:
Eric Torres
2019-02-07 23:19:21 -08:00
commit a3717ce355
7 changed files with 130 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
## This config file is read by the backup script
## Only absolute paths are supported
## Paths with spaces must be quoted to avoid word splitting
[main]
## Compression algorithm to use (default is auto,zstd)
## Consult 'borg help compression' for more information
compression = auto,zstd
# Default options to pass to rsync
DefaultOptions = --delete
# Exclude cache directories (directories with a CACHEDIR.TAG file)
ExcludeCaches = yes
## Names to give to the archives (consult borg manual for more)
[names]
HomeArchivename = home-{utcnow}
PkgArchivename = pacman-{utcnow}
SystemArchivename = system-{utcnow}
[paths]
HomePaths = /home /root
PkgPaths = /etc/pacman.conf
/etc/pacman.d
/var/lib/pacman
/var/log/pacman.log
SystemPaths = /boot/loader /etc /var/lib
## Settings for backup-prune
[prune]
KeepHourly=1
KeepDaily=1
KeepWeekly=1
KeepMonthly=1
KeepYearly=1

View File

@@ -0,0 +1,10 @@
# Paths to be excluded from home directory backup by default
# Blank lines, and lines beginning with # or ; will be ignored
# Use relative paths
# -----------------------------------
# Default files to be excluded
# -----------------------------------
.cache
.esd_auth
.Xauthority

View File

@@ -0,0 +1,28 @@
# Paths to be excluded from backup by default
# Blank lines, and lines beginning with # or ; will be ignored
# Use relative paths
# Regular expressions are valid and can be used
# -----------------------------------
# Default files from /etc to be excluded
# -----------------------------------
ca-certificates
fonts
*fstab*
*group*
hostname
hosts
mtab
os-release
*passwd*
*shadow*
resolv.conf*
ssl
systemd/system
systemd/user
xdg
xml
# -----------------------------------
# User-included paths
# -----------------------------------