find command in gs-backup.sh throws uncaught error
Issue Description
If there are no current backups in the gravity-sync/backup/ directory, the find command in the gs-backup.sh script throws an error.
find: ‘/home/stetner/gravity-sync/backup/*.backup’: No such file or directory
Configuration Details
Your branch is up to date with 'origin/master'.
Please apply this diff
stetner 79 $ diff gravity-sync/includes/gs-backup.sh gs-backup.sh 106c106 < find ${LOCAL_FOLDR}/${BACKUP_FOLD}/*.backup -mtime +${BACKUP_RETAIN} -type f -delete
find ${LOCAL_FOLDR}/${BACKUP_FOLD}/ -name \*.backup -mtime +${BACKUP_RETAIN} -type f -delete
I am also having this issue.
The backup cleanup component shouldn't run unless there has been a backup ran in the same job. I've added logic in 3.4.6 to let all backups be deleted as well. Please test on that version once it has been published and let me know.
Although I cannot be sure of the chain that led to the initial error, my testing after installing 3.4.6 shows no issues, so I assume it is fixed.
Thanks! Doug
On 8 Sep 2021, at 03:21, Michael Stanclift @.***> wrote:
The backup cleanup component shouldn't run unless there has been a backup ran in the same job. I've added logic in 3.4.6 to let all backups be deleted as well. Please test on that version once it has been published and let me know.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vmstan/gravity-sync/issues/203#issuecomment-914485911, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACF6Y6BJOXFVPGSCUG7UW3TUAZCZXANCNFSM434IQFRQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.