mirror of
https://github.com/azlux/log2ram
synced 2024-11-23 13:56:30 +00:00
Compare commits
3 Commits
b8f42ba728
...
68a2ec1be9
Author | SHA1 | Date | |
---|---|---|---|
|
68a2ec1be9 | ||
83774d470b | |||
|
b0807f8c6b |
@ -19,10 +19,10 @@ _____
|
|||||||
6. [Uninstallation](#uninstallation-)
|
6. [Uninstallation](#uninstallation-)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
### Via APT (recommended)
|
### Via APT (recommended) (genericized)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
echo "deb [signed-by=/usr/share/keyrings/azlux-archive-keyring.gpg] http://packages.azlux.fr/debian/ bookworm main" | sudo tee /etc/apt/sources.list.d/azlux.list
|
echo "deb [signed-by=/usr/share/keyrings/azlux-archive-keyring.gpg] http://packages.azlux.fr/debian/ $(bash -c '. /etc/os-release; echo ${VERSION_CODENAME}') main" | sudo tee /etc/apt/sources.list.d/azlux.list
|
||||||
sudo wget -O /usr/share/keyrings/azlux-archive-keyring.gpg https://azlux.fr/repo.gpg
|
sudo wget -O /usr/share/keyrings/azlux-archive-keyring.gpg https://azlux.fr/repo.gpg
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install log2ram
|
sudo apt install log2ram
|
||||||
|
4
log2ram
4
log2ram
@ -46,7 +46,7 @@ sync_to_disk() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${NO_RSYNC}" ] && [ -x "$(command -v rsync)" ]; then
|
if [ -z "${NO_RSYNC}" ] && [ -x "$(command -v rsync)" ]; then
|
||||||
rsync -aXv --sparse --inplace --no-whole-file --delete-after "${optional_params[@]}" "$RAM_LOG"/ "$HDD_LOG"/ 2>&1 |
|
rsync -aAXv --sparse --inplace --no-whole-file --delete-after "${optional_params[@]}" "$RAM_LOG"/ "$HDD_LOG"/ 2>&1 |
|
||||||
tee -a "$LOG2RAM_LOG"
|
tee -a "$LOG2RAM_LOG"
|
||||||
else
|
else
|
||||||
cp -rfup --sparse=always "$RAM_LOG"/ -T "$HDD_LOG"/ 2>&1 | tee -a "$LOG2RAM_LOG"
|
cp -rfup --sparse=always "$RAM_LOG"/ -T "$HDD_LOG"/ 2>&1 | tee -a "$LOG2RAM_LOG"
|
||||||
@ -75,7 +75,7 @@ sync_from_disk() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${NO_RSYNC}" ] && [ -x "$(command -v rsync)" ]; then
|
if [ -z "${NO_RSYNC}" ] && [ -x "$(command -v rsync)" ]; then
|
||||||
rsync -aXv --sparse --inplace --no-whole-file --delete-after "$HDD_LOG"/ "$RAM_LOG"/ 2>&1 | tee -a "$LOG2RAM_LOG"
|
rsync -aAXv --sparse --inplace --no-whole-file --delete-after "$HDD_LOG"/ "$RAM_LOG"/ 2>&1 | tee -a "$LOG2RAM_LOG"
|
||||||
else
|
else
|
||||||
cp -rfup --sparse=always "$HDD_LOG"/ -T "$RAM_LOG"/ 2>&1 | tee -a "$LOG2RAM_LOG"
|
cp -rfup --sparse=always "$HDD_LOG"/ -T "$RAM_LOG"/ 2>&1 | tee -a "$LOG2RAM_LOG"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user