Zum Inhalt springen
IoT 5 Aufrufe

QNAP SSH Befehle Neustart, Herunterfahren - Befehlssammlung

Christoph Purin Christoph Purin
QNAP SSH Befehle Neustart, Herunterfahren - Befehlssammlung

Kurze Befehlsübersicht für Qnap NAS Geräte
UPDATE - 05.03.2020

Neustarten

reboot

Ausschalten

shutdown

Services Neustarten:

/etc/init.d/services.sh restart

One of the most common ones is to restart smb:

/etc/init.d/smb.sh restart

Here’s a list of other common ones: (They’re all in /etc/init.d)
I believe they will all accept the restart option. They will accept start/stop options.

QMediaService.sh
Qthttpd.sh
StartMediaService.sh
bonjour.sh
crond.sh
ftp.sh
mysqld.sh
network.sh
opentftp.sh
qsyncman.sh
rsyncRR.sh
rsyncd.sh
rsyncd_srv.sh
rsyslog.sh
samba4.sh
services.sh
timemachine.sh
vpn_openvpn.sh
vpn_pptp.sh
webalizer.sh

QNAP Folder Structure

The QNAP has a set of default shares created e.g. Public, Multimedia, Photos. These can be accessed from within the SSH session at:

/share/Public
/share/Multimedia
/share/Download
/share/Web

Copying files from one folder to another on the QNAP using SSH

In this example we have some FLAC music files in Multimedia and all sub-folders that we want to COPY to Public. In this example we want just the FLAC files to be copied toa sub-folder called ripcaster within Public.

Use the following commands:

mkdir /share/Public/ripcaster
cp -rv /share/Multimedia/*.flac /share/Public/ripcaster

Alternative using rsync:

rsync -av --include="*/" --include="*.flac" --exclude="*" /share/Multimedia/ /share/Public/ripcaster/ 

Moving files from one folder to another on the QNAP using SSH

In this example we have some FLAC music files in Multimedia and sub-folders that we want to MOVE to a sub-folder ripcaster in Public.

Use the following command:

rsync -av --remove-source-files --include="*/" --include="*.flac" --exclude="*" /share/Multimedia/ /share/Public/ripcaster/ 

Teilen

Ähnliche Beiträge

Kommentare

Noch keine Kommentare. Sei der Erste!

Kommentar hinterlassen

Diese Website verwendet Cookies. Durch die Nutzung der Website stimmst du der Verwendung von Cookies zu. Datenschutzerklärung