From 9dad001a74cc36a17583ea354f93cf6224693f21 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 3 Jun 2018 19:48:10 +0000 Subject: Removed linode scripts. --- linode/backup.sh | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 linode/backup.sh (limited to 'linode/backup.sh') 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 {} \; -- cgit v1.2.3