Skip to content

Commit

Permalink
Add tests for backup script
Browse files Browse the repository at this point in the history
  • Loading branch information
bertvv committed Sep 27, 2015
1 parent b973cc4 commit bd9d6c4
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/backup/backup.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Backup configuration
USE_SSH=NO
SSH_LOGIN=
BACKUP_DIRS="./source/dir2/"
DESTINATION=destination
KEEP_OLD_BACKUPS=YES
DAYS_TO_KEEP=365
BACKUPS_TO_KEEP=10
EMAIL=

# vim: filetype=sh
1 change: 1 addition & 0 deletions tests/backup/exclude.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*~
8 changes: 8 additions & 0 deletions tests/backup/run-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /usr/bin/bash

bash ../../src/backup.sh

if [ "$1" = "clean" ]; then
rm -rf destination
mkdir destination
fi
Empty file.
Empty file.
Empty file added tests/backup/source/dir1/file3
Empty file.
Empty file added tests/backup/source/dir1/filef
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added tests/backup/source/dir2/file4
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added tests/backup/source/dir3/file5
Empty file.
Empty file added tests/backup/source/dir3/fileg
Empty file.

0 comments on commit bd9d6c4

Please sign in to comment.