gravity-sync icon indicating copy to clipboard operation
gravity-sync copied to clipboard

find command in gs-backup.sh throws uncaught error

Open stetner opened this issue 5 years ago • 3 comments

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

stetner avatar Apr 30 '21 13:04 stetner

I am also having this issue.

Sub-lime-time avatar Jun 10 '21 10:06 Sub-lime-time

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.

vmstan avatar Sep 07 '21 17:09 vmstan

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.

stetner avatar Sep 17 '21 23:09 stetner