diff --git a/Labb5/serverbackup/README.md b/Labb5/serverbackup/README.md new file mode 100644 index 0000000..81d8ad1 --- /dev/null +++ b/Labb5/serverbackup/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/Labb5/serverbackup/flowchart_ver1.png b/Labb5/serverbackup/flowchart_ver1.png new file mode 100644 index 0000000..a809fdc Binary files /dev/null and b/Labb5/serverbackup/flowchart_ver1.png differ diff --git a/Labb5/serverbackup/specs.md b/Labb5/serverbackup/specs.md new file mode 100644 index 0000000..dfb5f94 --- /dev/null +++ b/Labb5/serverbackup/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)