Browse Source

New Option

log2ram will now allow users to set it never to write back to the disk, thus allowing the /var/log folder to remain empty and untouched (on the disk). This will further reduce SSD/SD card writes.
pull/116/head
Isaac-D-Cohen 4 years ago
committed by GitHub
parent
commit
39579ec27d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      log2ram

+ 5
- 0
log2ram View File

@@ -34,6 +34,9 @@ remountOriginal() {
}

syncToDisk () {
if [ "$WRITE_TO_DISK" = true ]; then
isSafe
#INITIAL_STATE=$(remountRW)

@@ -43,6 +46,8 @@ syncToDisk () {
cp -rfup $RAM_LOG/ -T $HDD_LOG/ 2>&1 | tee -a $LOG2RAM_LOG
fi
#remountOriginal ${INITIAL_STATE}
fi
}

syncFromDisk () {


Loading…
Cancel
Save