3.11.6 #2

Closed
jonny wants to merge 10 commits from 3.11.6 into master
Showing only changes of commit 3c67c10242 - Show all commits

View File

@ -8,16 +8,16 @@ dd if=/dev/zero of=/ramdisk/image.ext4 count=0 bs=1 seek=400M
echo -e 'Create filesystem on ramdisk file'
mkfs.ext4 /ramdisk/image.ext4
echo -e 'Mount the ramdisk file to /mnt/sonarr-ramdisk-mount'
mount /ramdisk/image.ext4 /mnt/db-ramdisk-mount
mount /ramdisk/image.ext4 /mnt/db-ramdisk-config
echo -e 'Initial copy of the config from the remote share to the ramdisk'
cp -fvp /perm-config/*.* /mnt/db-ramdisk-mount
cp -fvp /perm-config/*.* /mnt/db-ramdisk-config
echo -e 'Set up the filesystem freeze, copy, unfreeze loop'
while true; do
sleep 890
date
sync /mnt/db-ramdisk-mount/*.*
fsfreeze --freeze /mnt/db-ramdisk-mount
sync /mnt/db-ramdisk-config/*.*
fsfreeze --freeze /mnt/db-ramdisk-config
sleep 10
cp -fvp /mnt/db-ramdisk-mount/*.* /perm-config/
fsfreeze --unfreeze /mnt-ramdisk-mount
cp -fvp /mnt/db-ramdisk-config/*.* /perm-config/
fsfreeze --unfreeze /mnt-ramdisk-config
done