|
|
@@ -18,6 +18,8 @@ syncToDisk () { |
|
|
|
isSafe |
|
|
|
|
|
|
|
if [ "$USE_RSYNC" = true ]; then |
|
|
|
# sort of confused as -a, --archive archive mode; equals -rlptgoD (no -H,-A,-X) |
|
|
|
# rsync -a $RAM_LOG/ $HDD_LOG/ 2>&1 | $LOG_OUTPUT ? |
|
|
|
rsync -aXWv --delete --links $RAM_LOG/ $HDD_LOG/ 2>&1 | $LOG_OUTPUT |
|
|
|
else |
|
|
|
cp -rfup $RAM_LOG/ -T $HDD_LOG/ 2>&1 | $LOG_OUTPUT |
|
|
@@ -38,6 +40,7 @@ syncFromDisk () { |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "$USE_RSYNC" = true ]; then |
|
|
|
# again ? |
|
|
|
rsync -aXWv --delete --links $HDD_LOG/ $RAM_LOG/ 2>&1 | $LOG_OUTPUT |
|
|
|
else |
|
|
|
cp -rfup $HDD_LOG/ -T $RAM_LOG/ 2>&1 | $LOG_OUTPUT |
|
|
|