Spaces:
Paused
Paused
Update sync_data.sh
Browse files- sync_data.sh +1 -1
sync_data.sh
CHANGED
|
@@ -67,7 +67,7 @@ def download_latest_backup(token, repo_id, extract_path):
|
|
| 67 |
)
|
| 68 |
if filepath and os.path.exists(filepath):
|
| 69 |
with tarfile.open(filepath, 'r:gz') as tar:
|
| 70 |
-
tar.extractall(extract_path)
|
| 71 |
print(f"已成功恢复备份: {latest_backup}")
|
| 72 |
except Exception as e:
|
| 73 |
print(f"下载备份出错: {str(e)}")
|
|
|
|
| 67 |
)
|
| 68 |
if filepath and os.path.exists(filepath):
|
| 69 |
with tarfile.open(filepath, 'r:gz') as tar:
|
| 70 |
+
tar.extractall(extract_path, filter='data')
|
| 71 |
print(f"已成功恢复备份: {latest_backup}")
|
| 72 |
except Exception as e:
|
| 73 |
print(f"下载备份出错: {str(e)}")
|