QNAP: Difference between revisions

adds utility info
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
 
(2 intermediate revisions by one other user not shown)
Line 7: Line 7:
locally on the network, it uses DHCP, with two ethernet nics (dual-homed)
locally on the network, it uses DHCP, with two ethernet nics (dual-homed)
Access it via your network share (at 192.168.1.4  or 192.168.1.5) or externally at http://cloud.equality-tech.com
Access it via your network share (at 192.168.1.4  or 192.168.1.5) or externally at http://cloud.equality-tech.com
== Backups ==
{{ambox|
|text = There is no bash history on QNAP. All 'history' is lost after each session!}}
{{ambox|
|text = All content should go into user directories because subsequent upgrades could wipe data elsewhere. In other words, do NOT create a /backup folder!
<code>/share/CACHEDEV1_DATA/homes/greg/backups/</code> is the root for backups storage
}}
I've created rsync scripts in the 'admin' users home directory which will backup <kbd>eqt</kbd> and <kbd>greg-laptop</kbd>  nb: greg-laptop is ONLY the ''home'' directory, not the full disk.
There is also a Duplicity script in /share/CACHEDEV1_DATA/homes/greg/backups/backup_home_to_qnap_san.sh but that's '''not tested/operational'''


== Operating System ==
== Operating System ==
Line 18: Line 33:
Here is a script which generates a script, and then runs it.  Not sure why it's not just a plain script, but hey it's a neat trick.  If you want to just use the script it generates, see /tmp/nasreport after invoking this.
Here is a script which generates a script, and then runs it.  Not sure why it's not just a plain script, but hey it's a neat trick.  If you want to just use the script it generates, see /tmp/nasreport after invoking this.
<code>cat ./nas_report.sh </code>
<code>cat ./nas_report.sh </code>
<source lang="bash">
<syntaxhighlight lang="bash">
#!/bin/sh
#!/bin/sh
rm -f /tmp/nasreport
rm -f /tmp/nasreport
Line 80: Line 95:
mount | grep -v qpkg
mount | grep -v qpkg
echo " "
echo " "
#echo "Contents of \$(dirname \$(getcfg -f /etc/config/smb.conf Public path)):"
echo "Contents of \$(dirname \$(getcfg -f /etc/config/smb.conf Public path)):"
#echo " "
echo " "
#ls -lF \$(dirname \$(getcfg -f /etc/config/smb.conf Public path))/
ls -lF \$(dirname \$(getcfg -f /etc/config/smb.conf Public path))/
echo " "
echo " "
echo "Windows Shares:"  
echo "Windows Shares:"  
Line 90: Line 105:
   testparm -s -l --section-name="\$i" --parameter-name=path 2>/dev/null  
   testparm -s -l --section-name="\$i" --parameter-name=path 2>/dev/null  
done
done
#echo " "
echo " "
#echo "QNAP Media Scanner / Transcoder processes running: "
echo "QNAP Media Scanner / Transcoder processes running: "
#echo " "  
echo " "  
#/bin/ps | grep medialibrary | grep -v grep
/bin/ps | grep medialibrary | grep -v grep
#echo " "  
echo " "  
#echo -n "MediaLibrary Configuration file: "  
echo -n "MediaLibrary Configuration file: "  
#ls -alF /etc/config/medialibrary.conf
ls -alF /etc/config/medialibrary.conf
#echo " "  
echo " "  
#echo "/etc/config/medialibrary.conf:"
echo "/etc/config/medialibrary.conf:"
#cat /etc/config/medialibrary.conf
cat /etc/config/medialibrary.conf
echo " "
echo " "
echo "iTunes Music Store: \$(getcfg -f /etc/config/mt-daapd.conf general mp3_dir)"
echo "iTunes Music Store: \$(getcfg -f /etc/config/mt-daapd.conf general mp3_dir)"
Line 113: Line 128:
clear
clear
/tmp/nasreport
/tmp/nasreport
#done
</syntaxhighlight>
</source>


== Utilities ==
== Utilities ==
Line 137: Line 151:
* <code>ls -al /mnt/HDA_ROOT/usr/sbin </code>
* <code>ls -al /mnt/HDA_ROOT/usr/sbin </code>


 
[[Category:Company]]
[[Category:Company]] [[Category:Cloud]] [[Category:Network]] [[Category:NAS]] [[Category:Storage]] [[Category:Server]] [[Category:Backups]]
[[Category:Cloud]]
[[Category:Network]]
[[Category:NAS]]
[[Category:Storage]]
[[Category:Server]]
[[Category:Backups]]