-
Notifications
You must be signed in to change notification settings - Fork 0
restore
Sean Akahane-Bryen edited this page Jul 26, 2020
·
4 revisions
Restores notes from a specified backup, such as to undo a recent find-replace operation. The notes in the backup directory are effectively overwrite-copied into the notes directory.
# Take a backup.
cp -pR "$KMVAR_Instance_Notes_Directory/" "$KMVAR_Instance_Backup_Directory/$(date "+%Y-%m-%d, %H.%M") - Before Backup Restoration/"
# Restore notes from the chosen backup.
cp -pR "$KMVAR_Instance_Backup_to_Restore"/* "$KMVAR_Instance_Notes_Directory"
# Fetch the folder name for the success notification.
echo "${KMVAR_Instance_Backup_to_Restore##*/}"
Version | Date | Changes |
---|---|---|
1.00 | 2020-07-26 | Initial commit |