PHP Backup Utility - Creates and encrypts database and file backups, syncs your backups to other servers or cloud services and assists you monitor your backup process
Good day!
Cleanup does not work correctly when using synchronization on Yandex Disk.
In the arhitector/yandex library, which is used to work with Yandex.Disk, method Disk::getResource($path, $limit = 20, $offset = 0) has a default limit of 20. Because of this, an incomplete list of backups is returned.
The Yandex Disk client is used here, to get the full list, you can pass $limit = -1$items = $this→disk→getResource($this→path→getPathThatIsNotChanging(), -1);
Good day! Cleanup does not work correctly when using synchronization on Yandex Disk.
In the arhitector/yandex library, which is used to work with Yandex.Disk, method
Disk::getResource($path, $limit = 20, $offset = 0)
has a default limit of 20. Because of this, an incomplete list of backups is returned.The Yandex Disk client is used here, to get the full list, you can pass
$limit = -1
$items = $this→disk→getResource($this→path→getPathThatIsNotChanging(), -1);
Example of my config:
My Yandex disk state (47 files):
List of files to delete (wrong result):
List of files to delete with limit -1 (correct result):
Thank you.