Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTP stepwise cleanup not working #333

Open
cccaballero opened this issue Dec 20, 2022 · 0 comments
Open

FTP stepwise cleanup not working #333

cccaballero opened this issue Dec 20, 2022 · 0 comments

Comments

@cccaballero
Copy link

Hello, I have configured PHPBU to synchronize the backup files via FTP, and I have configured a cleanup on the FTP server in the following way:

"syncs": [
  {
    "type": "ftp",
    "options": {
      "host": "adapter:yii2:sync.host",
      "user": "adapter:yii2:sync.user",
      "password": "adapter:yii2:sync.password",
      "path": "adapter:yii2:sync.path",
      "passive": "adapter:yii2:sync.passive",
      "cleanup.type": "stepwise",
      "cleanup.daysToKeepAll": 0,
      "cleanup.daysToKeepDaily": 14,
      "cleanup.weeksToKeepWeekly": 0,
      "cleanup.monthToKeepMonthly": 12,
      "cleanup.yearsToKeepYearly": 5
    }
  }
]

The backups run daily and my goal is to have the last 14 backups and keep one monthly for the last 12 months and one yearly for the last 5 years.

That setting in the local cleanup seemed to be working fine, but moving it to FTP seems to be ignored and no files are being deleted on the FTP.

In case it's useful, I'm doing the local cleanup this way, so that no files remain:

"cleanup": {
  "type": "capacity",
  "options": {
    "size": "0B",
    "deleteTarget": "true"
  }
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant