Comments (2)
In my opinion it depends on how much data in /var/log
a user is willing to loose in case of a power loss.
It is possible to use a configuration file /etc/default/log2ram
and add an option to select at least between 2 variants - hourly and daily sync, by installing scripts both to /etc/cron.hourly
and /etc/cron.daily
and changing them like this:
#! /bin/sh
. /etc/default/log2ram
# for cron.daily
[ "$DAILY_SYNC" = true ] && /usr/local/bin/log2ram write
# for cron.hourly
[ "$DAILY_SYNC" != true ] && /usr/local/bin/log2ram write
from log2ram.
I just use hourly sync on my device. It saves my laptop's old harddrive from spinning down and up again every other minute.
Of course, on my other computer that has Gnome's Tracker (desktop indexer) enabled, the disk never spins down because it's always reindexing something.
You can check your write frequency and history by using things like iotop
or lsof
.
from log2ram.
Related Issues (20)
- Strange issue where hdd.log is on RAM and not syncing to SD HOT 5
- Feature request: rsync with remote server HOT 1
- Status appears to start & stop log2ram. Option to just show status?
- rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3] HOT 10
- log of log2ram in the specific directory
- Alignment with armbian ramlog HOT 2
- There is no log2ram job in cron.* HOT 2
- Has this been submitted to the Debian/Raspbian repositories? If not it should! HOT 4
- Debian 12 Bookworm support HOT 1
- RAM disk too small HOT 1
- Using log2ram for other ramdisk purposes? HOT 1
- Log2Ram won't start on RPi OS 64-bit HOT 2
- Buster repo missing HOT 5
- Changeing timer does not work HOT 2
- 500 Internal Server Error when attempting to download repo.gpg.key HOT 1
- Latest APT version (1.6.1) far behind Git repo HOT 3
- log2ram failed to update writes to disk at reboot HOT 3
- E: Unable to locate package log2ram HOT 1
- failed to update host HOT 7
- Logs not persisting reboot? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from log2ram.