|
|
|
@ -27,6 +27,9 @@ fi
|
|
|
|
|
|
|
|
|
|
if [ "$mode" == "files" ]; then
|
|
|
|
|
rsync -a --exclude-from=$exclude_file --password-file=$password_file $source $user@$ip::$destination
|
|
|
|
|
if [ $? -eq 0 ] && [ "$delete_archive" = true ]; then
|
|
|
|
|
rm -rf $source/*
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
mkdir -p $archive_dir
|
|
|
|
|
|
|
|
|
|