solved bug

This commit is contained in:
Kevin Veen-Birkenbach 2020-10-12 11:56:53 +02:00
parent 6b3a161a06
commit 2bbf5bcf18

View File

@ -13,11 +13,11 @@ do
first_destination_path="$application_path""first""$source_path";
latest_destination_path="$application_path""latest""$source_path";
backup_dir_path="$application_path""diffs/$backup_time/$source_path"
if [ -d "$first_destination_path" ]
if [ -d "$native_backups_mount_prefix$first_destination_path" ]
then
echo "backup: $source_path"
destination_path="$latest_destination_path";
mkdir -p "$backup_dir_path";
mkdir -p "$native_backups_mount_prefix$backup_dir_path";
else
echo "first backup: $source_path"
destination_path="$first_destination_path";