{"action":"created","issue":{"url":"https://api.github.com/repos/spatie/laravel-backup/issues/573","repository_url":"https://api.github.com/repos/spatie/laravel-backup","labels_url":"https://api.github.com/repos/spatie/laravel-backup/issues/573/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-backup/issues/573/comments","events_url":"https://api.github.com/repos/spatie/laravel-backup/issues/573/events","html_url":"https://github.com/spatie/laravel-backup/issues/573","id":274900767,"number":573,"title":"Error: not cleaning the backups","user":{"login":"schonhose","id":16422,"avatar_url":"https://avatars2.githubusercontent.com/u/16422?v=4","gravatar_id":"","url":"https://api.github.com/users/schonhose","html_url":"https://github.com/schonhose","followers_url":"https://api.github.com/users/schonhose/followers","following_url":"https://api.github.com/users/schonhose/following{/other_user}","gists_url":"https://api.github.com/users/schonhose/gists{/gist_id}","starred_url":"https://api.github.com/users/schonhose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schonhose/subscriptions","organizations_url":"https://api.github.com/users/schonhose/orgs","repos_url":"https://api.github.com/users/schonhose/repos","events_url":"https://api.github.com/users/schonhose/events{/privacy}","received_events_url":"https://api.github.com/users/schonhose/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-11-17T15:28:54Z","updated_at":"2017-12-28T15:33:13Z","closed_at":null,"author_association":"NONE","body":"I am using laravel-backup on Laravel 5.1 using `\"spatie/laravel-backup\": \"^3.0.0\",` in my composer.json.\r\n\r\nIn my settings I have the following:\r\n\r\n`/*\r\n             * The amount of days that all backups must be kept.\r\n             */\r\n            'keepAllBackupsForDays' => 5,`\r\n\r\n`/*\r\n             * The amount of days that all daily backups must be kept.\r\n             */\r\n            'keepDailyBackupsForDays' => 5,`\r\n\r\nWith my understanding these settings will keep the last 5 daily backups. Backups are run daily using the Laravel scheduler. However, the amount of days mentioned in the above settings are not respected as backups are continuously added to the folder."},"comment":{"url":"https://api.github.com/repos/spatie/laravel-backup/issues/comments/354306400","html_url":"https://github.com/spatie/laravel-backup/issues/573#issuecomment-354306400","issue_url":"https://api.github.com/repos/spatie/laravel-backup/issues/573","id":354306400,"user":{"login":"schonhose","id":16422,"avatar_url":"https://avatars2.githubusercontent.com/u/16422?v=4","gravatar_id":"","url":"https://api.github.com/users/schonhose","html_url":"https://github.com/schonhose","followers_url":"https://api.github.com/users/schonhose/followers","following_url":"https://api.github.com/users/schonhose/following{/other_user}","gists_url":"https://api.github.com/users/schonhose/gists{/gist_id}","starred_url":"https://api.github.com/users/schonhose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schonhose/subscriptions","organizations_url":"https://api.github.com/users/schonhose/orgs","repos_url":"https://api.github.com/users/schonhose/repos","events_url":"https://api.github.com/users/schonhose/events{/privacy}","received_events_url":"https://api.github.com/users/schonhose/received_events","type":"User","site_admin":false},"created_at":"2017-12-28T15:33:13Z","updated_at":"2017-12-28T15:33:13Z","author_association":"NONE","body":"I think I managed to fix it, although I am not sure what is the actual fix since I applied multiple.\r\n\r\nFirst, I changed the running times fifteen minutes later (e.g. 1:15 and 2:15). Should not have made a large difference, but you never know.\r\n\r\nSecond, I changed the code in the Kernel.php file to add a parameter (-n : do  not ask interactive question):\r\n`\r\n$schedule->command('backup:clean -n')->daily()->at('01:15');\r\n$schedule->command('backup:run -n')->daily()->at('02:15');\r\n`\r\nThird,  I cleared the application cache using `php artisan cache:clear`.\r\n\r\nAnd the last thing I did was adding the following code as the first statement in Kernel.php\r\n'\r\n$schedule->command('inspire')->hourly();\r\n'\r\n\r\nFunny thing is that I, from what I have read, should see hourly quotes in the log. I do not see them, but the backups work."}}
{"actor":{"display_login":"schonhose"}}