Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.6 - 17 September 2018
* Add feature to allow subdirectories in BACKUP_DIRECTORIES option

2.5 - 17 September 2018
* Fixed Override BACKUP DIRECTORIES option that didn't work

2.4 - 14 August 2018
* Exclude directories from mydata command

Expand Down
10 changes: 9 additions & 1 deletion cya
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ HEADER
######################################################################

# Version number
VERSION="2.4"
VERSION="2.6"

# Title variable
TITLE="Cover Your Ass(ets)"
Expand Down Expand Up @@ -120,6 +120,13 @@ then
CONFIG_ARRAY[${CONFIG_DATA[0]}]="$CONFIG_DATA_VALUE"
done

# Override BACKUP DIRECTORIES
if [[ CONFIG_ARRAY[OVERRIDE_BACKUP_DIRECTORIES] ]]
then
IFS=' ' read -a DATA <<< "${CONFIG_ARRAY[OVERRIDE_BACKUP_DIRECTORIES]}"
BACKUP_DIRECTORIES=("${DATA[@]}")
fi

# Update BACKUP DIRECTORIES
if [[ CONFIG_ARRAY[BACKUP_DIRECTORIES] ]]
then
Expand Down Expand Up @@ -435,6 +442,7 @@ RSYNC_BACKUP_GO() {

# Run directory backup
echo -n "Backing up ${BACKUP_DIRECTORY} ... "
SUDO_RUN "mkdir -p $RESTORE_DIR/$BACKUP_NAME${BACKUP_DIRECTORY}"
SUDO_RUN "rsync -a --delete-excluded $EXCLUDE_DIRS$BASE_DIR${BACKUP_DIRECTORY} $RESTORE_DIR/$BACKUP_NAME${BACKUP_DIRECTORY}"
echo " complete"
BACKUP_STATE="on"
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4
2.6