summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2018-06-03 19:48:10 +0000
committerIan C <ianc@noddybox.co.uk>2018-06-03 19:48:10 +0000
commit9dad001a74cc36a17583ea354f93cf6224693f21 (patch)
treea2715f017c4eb54e0c3ac2ae700da6ff1506485d
parent3249ce43ff343675a8bcfb150dd70128c9265f4d (diff)
Removed linode scripts.
-rwxr-xr-xlinode/backup.sh27
-rwxr-xr-xlinode/cpbackup.sh11
-rwxr-xr-xlinode/getcerts.sh7
-rwxr-xr-xlinode/import.sh7
-rwxr-xr-xlinode/listinstalledpkgs.sh2
5 files changed, 0 insertions, 54 deletions
diff --git a/linode/backup.sh b/linode/backup.sh
deleted file mode 100755
index 00ff1b2..0000000
--- a/linode/backup.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-
-cd /
-
-DEST=data/backup
-SQL=tmp/dump-$$.sql
-PKGS=tmp/pkglist-$$
-
-SOURCE="home/ianc etc usr/local/etc usr/local/svn usr/local/svn-private $SQL $PKGS"
-
-BACKUP=$DEST/$(date +%Y%m%d).tar.gz
-
-echo Dumping database
-mysqldump -u root --password=$(cat /usr/local/etc/mysqlpassword) --all-databases > $SQL
-
-echo Dump installed packages
-/usr/local/bin/listinstalledpkgs.sh > $PKGS
-
-echo Backing up to $BACKUP
-
-tar cfz $BACKUP $SOURCE
-
-rm -f $SQL
-
-cd $DEST
-echo Clearing old files
-find . -mtime +10 -print -exec rm {} \;
diff --git a/linode/cpbackup.sh b/linode/cpbackup.sh
deleted file mode 100755
index 2cfbdef..0000000
--- a/linode/cpbackup.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-BACKUP=/data/backup/$(date +%Y%m%d).tar.gz
-
-echo Fetching $BACKUP
-
-scp -pq -P 2222 "usertk421@noddybox.co.uk:/$BACKUP" $HOME/backup
-
-echo Removing old backups
-cd $HOME/backup
-find . -mtime +10 -print -exec rm {} \;
diff --git a/linode/getcerts.sh b/linode/getcerts.sh
deleted file mode 100755
index a8dc7c2..0000000
--- a/linode/getcerts.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/local/bin/bash
-
-if acme-client -vNn noddybox.co.uk ; then
- service apache24 restart
- service postfix restart
- service dovecot restart
-fi
diff --git a/linode/import.sh b/linode/import.sh
deleted file mode 100755
index 3b9ed7f..0000000
--- a/linode/import.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/local/bin/bash
-
-for i in $* ; do
- name=$(basename $i .dump)
- svnadmin create $name
- svnadmin load $name < $i
-done
diff --git a/linode/listinstalledpkgs.sh b/linode/listinstalledpkgs.sh
deleted file mode 100755
index 8455d25..0000000
--- a/linode/listinstalledpkgs.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#! /bin/sh
-pkg query -e '%a = 0' %o