Compare commits

...

4 Commits

Author SHA1 Message Date
Asif Bacchus 214d1ce2b2 Created sample nc_borg and nc_sql details files 2018-10-14 23:28:21 -06:00
Asif Bacchus 4a3d818805 Updated .gitignore so sample files are tracked 2018-10-14 23:28:06 -06:00
Asif Bacchus cb2be1490a Created sample 503.html 2018-10-14 23:16:32 -06:00
Asif Bacchus eba4dd8221 updated .gitignore 2018-10-14 23:08:32 -06:00
5 changed files with 43 additions and 4 deletions

6
.gitignore vendored
View File

@ -1,7 +1,5 @@
# ignore log files
*.log
# ignore reference files
nc_sql.details
nc_borg.details
.vscode/settings.json
# ignore all vscode settings files
.vscode/

View File

@ -0,0 +1,29 @@
<!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 around 10 minutes during which time
I'm quite busy copying your super-important files to my ultra-secret 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>

8
nc_borg.details Normal file
View File

@ -0,0 +1,8 @@
<path to borgbackup base directory> /var/borgbackup
<path to SSH private key for repo> /var/borgbackup/sshPrivate.key
<connection string to remote repo> user@server-number.rsync.net:repoName/
<password for SSH key/repo> pAsSwOrd
<path to file listing extra files> /root/NCscripts/xtraLocations.borg
<path to file with exclusions> /root/NCscripts/excludeLocations.borg
<purge timeframe options> --keep-within=1H --keep-last=5
<location of borg remote instance> borg1

4
nc_sql.details Normal file
View File

@ -0,0 +1,4 @@
<name of machine hosting mySQL> localhost
<name of authorized user> nextcloud
<password for above user> pAsSwOrd
<name of NextCloud database> nextcloudDB

View File