Update sync_data.sh
Browse files- sync_data.sh +3 -3
sync_data.sh
CHANGED
|
@@ -73,10 +73,10 @@ except Exception as e:
|
|
| 73 |
|
| 74 |
if os.path.exists(backup_file_path):
|
| 75 |
if os.path.exists(CLOUDREVE_DATA_DIR):
|
| 76 |
-
print(f"Deleting existing data directory:
|
| 77 |
shutil.rmtree(CLOUDREVE_DATA_DIR)
|
| 78 |
os.makedirs(CLOUDREVE_DATA_DIR, exist_ok=True)
|
| 79 |
-
print(f"Extracting backup to:
|
| 80 |
try:
|
| 81 |
with tarfile.open(backup_file_path, 'r:gz') as tar:
|
| 82 |
tar.extractall(CLOUDREVE_DATA_DIR)
|
|
@@ -167,5 +167,5 @@ except Exception as e:
|
|
| 167 |
done
|
| 168 |
}
|
| 169 |
|
| 170 |
-
# 启动同步进程
|
| 171 |
sync_data &
|
|
|
|
| 73 |
|
| 74 |
if os.path.exists(backup_file_path):
|
| 75 |
if os.path.exists(CLOUDREVE_DATA_DIR):
|
| 76 |
+
print(f\"Deleting existing data directory: {CLOUDREVE_DATA_DIR}\")
|
| 77 |
shutil.rmtree(CLOUDREVE_DATA_DIR)
|
| 78 |
os.makedirs(CLOUDREVE_DATA_DIR, exist_ok=True)
|
| 79 |
+
print(f\"Extracting backup to: {CLOUDREVE_DATA_DIR}\")
|
| 80 |
try:
|
| 81 |
with tarfile.open(backup_file_path, 'r:gz') as tar:
|
| 82 |
tar.extractall(CLOUDREVE_DATA_DIR)
|
|
|
|
| 167 |
done
|
| 168 |
}
|
| 169 |
|
| 170 |
+
# 启动同步进程
|
| 171 |
sync_data &
|