Started working on serverbackup.sh (Övning 6)

This commit is contained in:
Jack-Benny Persson 2013-12-17 13:10:18 +01:00
commit 2a50444061
3 changed files with 16 additions and 0 deletions

6
README.md Normal file
View File

@ -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.

BIN
flowchart_ver1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

10
specs.md Normal file
View File

@ -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)