Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit d35be16

Browse files
committed
fix: remove rm confirmation while cleaning lod DB backups
1 parent 26ccd60 commit d35be16

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

share/bin/index-db-backup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ BACKUP_FILE="$BACKUP_DIR/backup_$(date +%Y-%m-%d_%H-%M-%S).db"
1515
cp $DATABASE_FILE "$BACKUP_FILE"
1616

1717
# Find and remove backups older than 7 days
18-
find $BACKUP_DIR -type f -name "backup_*.db" -mtime +7 -exec rm {} \;
18+
find $BACKUP_DIR -type f -name "backup_*.db" -mtime +7 -exec rm -f {} \;
19+

share/bin/tracker-db-backup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ BACKUP_FILE="$BACKUP_DIR/tracker_backup_$(date +%Y-%m-%d_%H-%M-%S).db"
1515
cp $DATABASE_FILE "$BACKUP_FILE"
1616

1717
# Find and remove backups older than 7 days
18-
find $BACKUP_DIR -type f -name "tracker_backup_*.db" -mtime +7 -exec rm {} \;
18+
find $BACKUP_DIR -type f -name "tracker_backup_*.db" -mtime +7 -exec rm -f {} \;

0 commit comments

Comments
 (0)