diff options
author | Ian C <ianc@noddybox.co.uk> | 2018-06-03 19:48:10 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2018-06-03 19:48:10 +0000 |
commit | 9dad001a74cc36a17583ea354f93cf6224693f21 (patch) | |
tree | a2715f017c4eb54e0c3ac2ae700da6ff1506485d /linode/backup.sh | |
parent | 3249ce43ff343675a8bcfb150dd70128c9265f4d (diff) |
Removed linode scripts.
Diffstat (limited to 'linode/backup.sh')
-rwxr-xr-x | linode/backup.sh | 27 |
1 files changed, 0 insertions, 27 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 {} \; |