Can I move files direct to Nextcloud? - 🚧 Installation - Nextcloud community
root@truenas[/mnt/tank/cloud/unica]# scp root@192.168.0.53:/mnt/tank/cloud/ncadmin/files/db2_dmdb_export.tar.gz .
The authenticity of host '192.168.0.53 (192.168.0.53)' can't be established.
ECDSA key fingerprint is SHA256:kZ7V5MCM/lJTi528a8RaXC9RoH2J6Lqq7Cz4bQfgZKU.
No matching host key fingerprint found in DNS.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.53' (ECDSA) to the list of known hosts.
root@192.168.0.53's password:
db2_dmdb_export.tar.gz 100% 828MB 29.7MB/s 00:27
root@truenas[/mnt/tank/cloud/unica]# ls -l
total 839037
-rw-r--r-- 1 root www 868609712 May 26 23:04 db2_dmdb_export.tar.gz
root@truenas[/mnt/tank/cloud/unica]# ls -l
total 848293
drwxr-xr-x 2 www www 2 May 26 23:05 cache
-rw-r--r-- 1 root www 868609712 May 26 23:04 db2_dmdb_export.tar.gz
drwxr-xr-x 6 www www 10 May 26 23:05 files
root@truenas[/mnt/tank/cloud/unica]# cd files
root@truenas[/mnt/tank/cloud/unica/files]# ls -l
total 10202
drwxr-xr-x 2 www www 6 May 26 23:05 Documents
-rw-r--r-- 1 www www 3963036 May 26 23:05 Nextcloud intro.mp4
-rw-r--r-- 1 www www 5753008 May 26 23:05 Nextcloud Manual.pdf
-rw-r--r-- 1 www www 50598 May 26 23:05 Nextcloud.png
drwxr-xr-x 2 www www 11 May 26 23:05 Photos
-rw-r--r-- 1 www www 976625 May 26 23:05 Reasons to use Nextcloud.pdf
drwxr-xr-x 2 www www 2 May 26 23:05 Talk
drwxr-xr-x 2 www www 13 May 26 23:05 Templates
root@truenas[/mnt/tank/cloud/unica/files]# cd ..
root@truenas[/mnt/tank/cloud/unica]# ls -l
total 848293
drwxr-xr-x 2 www www 2 May 26 23:05 cache
-rw-r--r-- 1 root www 868609712 May 26 23:04 db2_dmdb_export.tar.gz
drwxr-xr-x 6 www www 10 May 26 23:05 files
root@truenas[/mnt/tank/cloud/unica]# mv db2* files
root@truenas[/mnt/tank/cloud/unica]# cd files
root@truenas[/mnt/tank/cloud/unica/files]# ls -l
total 858478
-rw-r--r-- 1 root www 868609712 May 26 23:04 db2_dmdb_export.tar.gz
drwxr-xr-x 2 www www 6 May 26 23:05 Documents
-rw-r--r-- 1 www www 3963036 May 26 23:05 Nextcloud intro.mp4
-rw-r--r-- 1 www www 5753008 May 26 23:05 Nextcloud Manual.pdf
-rw-r--r-- 1 www www 50598 May 26 23:05 Nextcloud.png
drwxr-xr-x 2 www www 11 May 26 23:05 Photos
-rw-r--r-- 1 www www 976625 May 26 23:05 Reasons to use Nextcloud.pdf
drwxr-xr-x 2 www www 2 May 26 23:05 Talk
drwxr-xr-x 2 www www 13 May 26 23:05 Templates
root@truenas[/mnt/tank/cloud/unica/files]# pwd
/mnt/tank/cloud/unica/files
root@truenas[/mnt/tank/cloud/unica/files]# chown www:www db2*
root@truenas[/mnt/tank/cloud/unica/files]# ls -l
total 858478
-rw-r--r-- 1 www www 868609712 May 26 23:04 db2_dmdb_export.tar.gz
drwxr-xr-x 2 www www 6 May 26 23:05 Documents
-rw-r--r-- 1 www www 3963036 May 26 23:05 Nextcloud intro.mp4
-rw-r--r-- 1 www www 5753008 May 26 23:05 Nextcloud Manual.pdf
-rw-r--r-- 1 www www 50598 May 26 23:05 Nextcloud.png
drwxr-xr-x 2 www www 11 May 26 23:05 Photos
-rw-r--r-- 1 www www 976625 May 26 23:05 Reasons to use Nextcloud.pdf
drwxr-xr-x 2 www www 2 May 26 23:05 Talk
drwxr-xr-x 2 www www 13 May 26 23:05 Templates
root@truenas[/mnt/tank/cloud/unica/files]# su -m www -c 'php /usr/local/www/nextcloud/occ files:scan --all'
zsh:1: command not found: php
root@truenas[/mnt/tank/cloud/unica/files]# id
uid=0(root) gid=0(wheel) groups=0(wheel)
root@truenas[/mnt/tank/cloud/unica/files]# iocage console nextcloud
Last login: Wed May 26 22:56:21 on pts/1
FreeBSD 12.2-RELEASE-p6 facd5d71c97(HEAD) TRUENAS
Welcome to FreeBSD!
Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories: https://www.FreeBSD.org/security/
FreeBSD Handbook: https://www.FreeBSD.org/handbook/
FreeBSD FAQ: https://www.FreeBSD.org/faq/
Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
FreeBSD Forums: https://forums.FreeBSD.org/
Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with: pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.
Show the version of FreeBSD installed: freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages: man man
FreeBSD directory layout: man hier
Edit /etc/motd to change this login announcement.
root@nextcloud:~ # su -m www -c 'php /usr/local/www/nextcloud/occ files:scan --all'
su -m www -c 'php /usr/local/www/nextcloud/occ files:scan --all'
root@nextcloud:~ # su -m www -c 'php /usr/local/www/nextcloud/occ files:scan --all'
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see https://www.php.net/manual/en/book.pcntl.php
Starting scan for user 1 out of 5 (irfan)
Home storage for user irfan not writable
Make sure you're running the scan command only as the user the web server runs as
Starting scan for user 2 out of 5 (masrudyn)
Starting scan for user 3 out of 5 (ncadmin)
Starting scan for user 4 out of 5 (rayhan)
Home storage for user rayhan not writable
Make sure you're running the scan command only as the user the web server runs as
Starting scan for user 5 out of 5 (unica)
+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 28 | 91 | 00:00:00 |
+---------+-------+--------------+