Update sysadmin-bkp-edit.sh

include edited-by
This commit is contained in:
kneutron 2024-03-14 09:44:55 -06:00 committed by GitHub
parent 22ba44bad9
commit 9591943777
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@
# Backup critical file before editing (in current dir)
# 2024.Mar kneutron
cp -v "$1" "$1".bkp.$(date +%Y%m%d@%H%M%S)
cp -v "$1" "$1.bkp.$(date +%Y%m%d@%H%M%S)--edit-by-$(id -un)"
ls -lh "$1*"
echo "Backed up $1 - OK to edit - Press enter"