mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-11-21 16:01:03 +01:00
solved bug
This commit is contained in:
parent
6b3a161a06
commit
2bbf5bcf18
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user