Skip to content

Commit 44c2222

Browse files
committed
Release 2.2.3
1 parent 383a426 commit 44c2222

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mage-db-sync",
3-
"version": "2.2.2",
3+
"version": "2.2.3",
44
"description": "Database synchronizer for Magento, based on Magerun",
55
"license": "MIT",
66
"author": {

src/tasks/DownloadTask.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,8 @@ class DownloadTask {
11681168
// Build rsync command with compression
11691169
// Note: Using trailing slash on source to sync contents, not the folder itself
11701170
// Using --partial to keep partially transferred files, --ignore-errors to continue on errors
1171-
let rsyncCommand = `rsync -avz --compress-level=6 --progress --partial --ignore-errors -e "${sshCommand}" ${databaseUsername}@${databaseServer}:${escapedSource} ${escapedDestFolder}`;
1171+
// Exclude cache folders to avoid syncing generated files
1172+
let rsyncCommand = `rsync -avz --compress-level=6 --progress --partial --ignore-errors --exclude='catalog/cache' --exclude='product/cache' -e "${sshCommand}" ${databaseUsername}@${databaseServer}:${escapedSource} ${escapedDestFolder}`;
11721173

11731174
if (config.databases.databaseData.password) {
11741175
const escapedPassword = shellEscape(config.databases.databaseData.password);

0 commit comments

Comments
 (0)