mirror of
https://github.com/azlux/log2ram.git
synced 2023-10-10 13:37:24 +02:00
parent
31e4409fc3
commit
3efc8f35cf
4
log2ram
4
log2ram
@ -16,7 +16,7 @@ syncToDisk () {
|
|||||||
if [ "$USE_RSYNC" = true ]; then
|
if [ "$USE_RSYNC" = true ]; then
|
||||||
rsync -aXv --inplace --no-whole-file --delete-after $RAM_LOG/ $HDD_LOG/ 2>&1 | tee -a $LOG2RAM_LOG
|
rsync -aXv --inplace --no-whole-file --delete-after $RAM_LOG/ $HDD_LOG/ 2>&1 | tee -a $LOG2RAM_LOG
|
||||||
else
|
else
|
||||||
cp -rfup --preserve=context $RAM_LOG/ -T $HDD_LOG/ 2>&1 | tee -a $LOG2RAM_LOG
|
cp -rfup $RAM_LOG/ -T $HDD_LOG/ 2>&1 | tee -a $LOG2RAM_LOG
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ syncFromDisk () {
|
|||||||
if [ "$USE_RSYNC" = true ]; then
|
if [ "$USE_RSYNC" = true ]; then
|
||||||
rsync -aXv --inplace --no-whole-file --delete-after $HDD_LOG/ $RAM_LOG/ 2>&1 | tee -a $LOG2RAM_LOG
|
rsync -aXv --inplace --no-whole-file --delete-after $HDD_LOG/ $RAM_LOG/ 2>&1 | tee -a $LOG2RAM_LOG
|
||||||
else
|
else
|
||||||
cp -rfup --preserve=context $HDD_LOG/ -T $RAM_LOG/ 2>&1 | tee -a $LOG2RAM_LOG
|
cp -rfup $HDD_LOG/ -T $RAM_LOG/ 2>&1 | tee -a $LOG2RAM_LOG
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user