Skip to content

Commit

Permalink
nc-backup-auto.sh: don't smash ncp.log
Browse files Browse the repository at this point in the history
append to log instead of clearing it
see #1232 (comment)
  • Loading branch information
schoetju authored and nachoparker committed Aug 9, 2021
1 parent fa1c0c7 commit 1d696f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ncp/BACKUPS/nc-backup-auto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fi
EOF
chmod +x /usr/local/bin/ncp-backup-auto

echo "0 3 */${BACKUPDAYS} * * root /usr/local/bin/ncp-backup-auto > /var/log/ncp.log 2>&1" > /etc/cron.d/ncp-backup-auto
echo "0 3 */${BACKUPDAYS} * * root /usr/local/bin/ncp-backup-auto >> /var/log/ncp.log 2>&1" > /etc/cron.d/ncp-backup-auto
chmod 644 /etc/cron.d/ncp-backup-auto
service cron restart

Expand Down

0 comments on commit 1d696f0

Please sign in to comment.