commit 2a50444061549a97b5c283bd7a237e28df315fd1 Author: Jack-Benny Persson Date: Tue Dec 17 13:10:18 2013 +0100 Started working on serverbackup.sh (Övning 6) diff --git a/README.md b/README.md new file mode 100644 index 0000000..81d8ad1 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# Serverbackup # +This is exercise 6 on lab 5 which is about writing a backup script for your server. +For this exercise I've chosen to make a backup script for Proxmox, ie take all the backup files +(vzdump-openvz-111-2013i\_11\_19-08\_20\_20.tar.lzo and so on) and copy them to a tape device and an external harddrive. + + diff --git a/flowchart_ver1.png b/flowchart_ver1.png new file mode 100644 index 0000000..a809fdc Binary files /dev/null and b/flowchart_ver1.png differ diff --git a/specs.md b/specs.md new file mode 100644 index 0000000..dfb5f94 --- /dev/null +++ b/specs.md @@ -0,0 +1,10 @@ +# Specs for serverbackup # + +1. Look at the files in backup directory +2. Extract the dates from the filenames +3. Check whatever a tape drive is on and contains a tape +4. Check whatever the external harddrive is connected + * If not, try to mount it + * If mount fails, abort script and write error log +5. Copy the latest backup to tape drive and external harddrive +6. Write everything to a logfile (script will run headless)