Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
small cleanups
  • Loading branch information
soffi committed Mar 21, 2016
1 parent 6d7c3ac commit c74c9ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lebackup-all.sh
@@ -1,6 +1,7 @@
#!/bin/bash
source $(dirname "$0")/config-vars
# mount backup target
# mount and create backup target
mkdir -p $BACKUPDIR
mount $NFSSERVER $BACKUPDIR
#back up files
$(dirname "$0")/lebackup-files.sh
Expand All @@ -14,4 +15,6 @@ for VM in $VMS
do
$(dirname "$0")/lebackup-vm.sh $VM
done

# remove and unmout backupdir
umount $BACKUPDIR
rm -Rf $BACKUPDIR
2 changes: 1 addition & 1 deletion lebackup-vm.sh
@@ -1,5 +1,5 @@
#!/bin/bash
set -x
set -e
source $(dirname "$0")/config-vars
VM=$1
if [ -z $1 ];
Expand Down

0 comments on commit c74c9ff

Please sign in to comment.