Skip to content

Commit

Permalink
Temporary fix for parsing backup conf
Browse files Browse the repository at this point in the history
  • Loading branch information
dpeca committed Mar 23, 2020
1 parent 931fb5b commit a571254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/v-backup-user
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ if [ "$USER" != '*' ]; then
exclusion=$(echo "$USER" |tr ',' '\n' |grep "^$udir$")
if [ -z "$exclusion" ]; then
((i ++))
udir_list="$udir_list $udir"
udir_str=$(echo "$udir" |sed -e "s|'|\\\'|g")
udir_list="$udir_list $udir_str"
echo -e "$(date "+%F %T") adding $udir" |tee -a $BACKUP/$user.log

# Backup files and dirs
Expand Down
2 changes: 1 addition & 1 deletion bin/v-list-user-backups
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ json_list() {
i=1
objects=$(grep BACKUP $USER_DATA/backup.conf |wc -l)
echo "{"
while read str; do
while read -r str; do
eval $str
echo -n ' "'$BACKUP'": {
"TYPE": "'$TYPE'",
Expand Down

1 comment on commit a571254

@dpeca
Copy link
Collaborator Author

@dpeca dpeca commented on a571254 Jun 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.