2 Commits
1.4 ... 1.4.2

Author SHA1 Message Date
133a6b1a48 Fix minor bug
When using the '-s/--checksum' option, rsync output numbers were
not in human readable format. This commit fix this minor issue.
2017-06-24 23:29:39 +02:00
584532e2c7 Fix minor bug
Now the program is able to get as input arguments or output
directory files/directories containing spaces.
2017-06-23 13:47:44 +02:00

View File

@ -19,7 +19,7 @@
#Help function #Help function
function help_function { function help_function {
echo "simple_backup, version 1.4" echo "simple_backup, version 1.4.1"
echo "" echo ""
echo "Usage: $0 [OPTIONS]" echo "Usage: $0 [OPTIONS]"
echo "" echo ""
@ -300,7 +300,7 @@ function parse_options {
;; ;;
-s | --checksum) -s | --checksum)
OPTIONS="-arcv -H -X -R" OPTIONS="-arcvh -H -X -R"
;; ;;
*) *)
@ -352,7 +352,7 @@ if [[ "$#" -eq 0 ]]; then
read_conf read_conf
else else
parse_options $@ parse_options "$@"
if [[ $n_in -gt 0 && ( -z $BACKUP_DIR || ! -d $BACKUP_DIR ) ]]; then if [[ $n_in -gt 0 && ( -z $BACKUP_DIR || ! -d $BACKUP_DIR ) ]]; then
#If the backup directory is not set or doesn't exist, exit #If the backup directory is not set or doesn't exist, exit