sample helper files

This commit is contained in:
Asif Bacchus 2019-05-27 07:24:50 -06:00
parent e7bf384cba
commit 24f5af85c0
3 changed files with 97 additions and 0 deletions

26
503_backup.html Normal file
View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>503 - Unavailable: Backup in progress</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 0 auto;
padding: 0;
width: 85%;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}
</style>
</head>
<body>
<h1>Bad timing!</h1>
<p>Seems you're trying to access me during my daily backup window. Don't worry though, I should be up and running again very soon.</p>
<p>My average backup window duration is pretty short and I'm quite busy during that time copying your super-important files to my secure hiding place so they stay safe in case anything ever happens to me!</p>
<h3><em>I'm really sorry for the delay. Please try me again soon!</em></h3>
</body>
</html>

5
excludeLocations.borg Normal file
View File

@ -0,0 +1,5 @@
'/var/seafile/seafile-data/httptemp/'
'/var/seafile/seafile-data/thumbnails/'
'/var/seafile/seafile-data/tmpfiles/'
'/var/seafile/seafile-data/webdavtmp/'
EOF

66
xtraLocations.borg Normal file
View File

@ -0,0 +1,66 @@
# Files and directories listed here will be included in your borg backup along
# with your Seafile program and data files.
# List the path to files/directories one per line.
# Any blank lines will be ignored.
# Any lines starting with '#' will be ignored as a comment.
# For consistency, you should include the trailing slash for directories.
# important system configuration files for reference during a restore
/etc/fstab
/etc/network/interfaces
/etc/network/interfaces.d/
/etc/systemd/timesyncd.conf
/etc/systemd/system/seafile.service
/etc/systemd/system/seahub.service
# ssh configuration and hostkeys
/etc/ssh/
# apt configuration (auto updates and source lists)
/etc/apt/sources.list
/etc/apt/sources.list.d/
/etc/apt/listchanges.conf
/etc/apt/apt.conf.d/50unattended-upgrades
/etc/apt/apt.conf.d/20auto-upgrades
# user profile defaults and configurations
/etc/profile
/etc/bash.bashrc
/etc/skel/
/etc/nanorc
# root user files
/root/.bashrc
/root/.ssh/
/root/SeafBackup/
### configuration files for programs related to Seafile
# letsencrypt
/etc/letsencrypt/
# mysql/mariadb
/etc/mysql/my.cnf
/etc/mysql/conf.d/
# NGINX
/etc/nginx/
/usr/share/nginx/html/
### other installed program configurations
# fail2ban
/etc/fail2ban/fail2ban.local
/etc/fail2ban/jail.local
/etc/fail2ban/filter.d/seafile-auth.conf
/etc/fail2ban/jail.d/
# logwatch
/etc/logwatch/
# msmtp
/etc/msmtprc
/etc/msmtp_aliases