Hi,
I'm running 3004.388.6 and I have a custom backup script stored in /jffs/scripts.
The main part of my script:
After this I'm uploading the tar.gz with curl.
I have noticed that the output tar.gz is constantly growing. After some investigation I've realized that the file /jffs/.asdbk/main_checker.sh_bk was at the end 90MB...
Does somebody have an idea what is the purpose of this file and why is it growing? How can I avoid this?
Thanks in advance!
I'm running 3004.388.6 and I have a custom backup script stored in /jffs/scripts.
The main part of my script:
Bash:
# Saving NVRAM
echo "Saving NVRAM..."
nvram save /tmp/"$nvram_backup".cfg
nvram show > /tmp/"$nvram_backup".txt
# jffs tar
echo "Saving /jffs..."
tar -cf /tmp/$jffs_file -C /jffs .
if [ $? -ne 0 ]; then
echo "Error. Exiting..."
exit 1
fi
# tar.gz
echo "Creating archive..."
tar -czf /tmp/$archive_file -C /tmp $nvram_backup.cfg $nvram_backup.txt $jffs_file
if [ $? -ne 0 ]; then
echo "Error. Exiting..."
exit 1
fi
After this I'm uploading the tar.gz with curl.
I have noticed that the output tar.gz is constantly growing. After some investigation I've realized that the file /jffs/.asdbk/main_checker.sh_bk was at the end 90MB...
Does somebody have an idea what is the purpose of this file and why is it growing? How can I avoid this?
Thanks in advance!