Thank you. This is going to save me a lot of time. I have 3 TBs that I needed to transfer over to my NextCloud server. I tried to set it up with the sync client but that would have taken weeks. Now I can get it done in one night. Also thanks for the tip on using the IP address instead of the URL for the local sync. Looking forward to more videos on the Nextcloud apps. I've already set up calendar, tasks, and the news app and sync'd them with my phone, but there are so many others to dive into.
Great! Yes it would take ages with the client. I'm really surprised that nobody else has a video or blog post about this already but ah well, maybe not that many people need to sync terabytes of data. Cool! I try to get ONLYOFFICE running behind a reverse proxy - I think that would make for an interesting video :)
I did not know there is a command to make next cloud rescan the local filesystem for changes, thank you. For anyone's information, rsync is usually the best tool to use to copy files between machines (even though in this video scp was almost at the limit of the local network)
NC uses it's own implementation of WebDAV protocol written in PHP. So it's slow by design. Instead of SCp which is a file transfer over encrypted SSH you can install a Samba (windows share) and just use it for a local network transfer. But instead you may just configure a WebDAV module for the web server and it will work much faster than NC. Also you'll have an option: use encrypted HTTPS (e.g. TLS/SSL) when uploading from internet and use plain HTTP when uploading from local network. There is many mobile apps to sync folders over WebDAV. Personally I just removed NC and configured Lighttpd and mod_dav. This is enough for me. If you are working with large video files then this would be a good option.
This video saved my life :)'',,,, i saw it year ago, and today We had a bit of an issue in my nextcloud hardware.. so i setup a new nextcloud server and restorted our files as explained,,,, thank you very very very much
*Solution* For those with "permission denied" : It's normal that you get permission denied, don't change permissions or anything to keep security high. 1- Instead of moving data to the right directory ( with scp or rsync ), instead* copy them to your home dir, or any other dir where you have permissions. 2- Then move ( mv ) that directory with "sudo", or change to root ( sudo -s ) to the nextcloud directory /data 3- Go to the nextcloud root directory ( before the /data ), and change all files permissions to php/apache. sudo chown www-data:www-data -R * You're done.
Seu video é realmente MUITO IMPORTANTE. Talvez a maioria dos novos usuários que precissam migrar os dados para a núvel não sabem como fazê-lo de forma rápida porque o Nextcloud não permite simplesmente usar um disco externo com uma entrada usb e fazer essa mudança diretamente. Eu instalei o Nextcloud em docker no meu Qnap. No entanto uso Ubuntu e não WIndows e admito que até agora não consegui fazer o que vc fez tão rápido e simples. Acho que um segundo video mais auto-explicativo usando os comandos do terminal Ubuntu apenas agregava mais. Seu video continua a ser o unico que fala sobre o assunto. Eu também pergunto se não existe alternativas mais fáceis e rápidas sem o uso do terminal. Obrigado!
I have been looking for something like this for quite some time and finally found your videos. Thanks!! But I still have some questions such as, is there a way to add accounts and restrictions to folders using nextcloud? Like if I want to share a specific folder with a specific person. Once again, thanks for your content.
Appreciate it man! What did you search for when looking for this video? I should probably make this video easier to find ;) well as an admin you can simply add a new user. They will then have their completely own space and wont see any of your data. You can simply share any folder you'd like with that new user and it will appear on their space as shared folder. They can obviously move the folder wherever they want
@@TechGuides That's exactly what I wanted, to give family members their own personal folder so they can store their data, once again, thank you very much!!
What would you be interested in? I don't really run anything other than the password manager personally. I definitely want to get onlyoffice running tho
Hey thank you so much! Are you're talking about having a second nextcloud server somewhere else as backup? If so, I will be implementing this exact solution this spring - so there will definitely be a video about it :)
I am interested in knowing how to configure the extended storage o be the primary drive on nextcloud running on Digitalocean's droplet. Using Ubuntu 20.
Hi, I have a debian-based Q4OS linux distro and I need to connect 4 hard drives with windows and mac backups and I would like to create a server with raid sharing of all hard drives and including a continuous and incremental backup of smartphones too and ipad in the family ... I was thinking about nextcloud, openmediavault or seafile but there would probably be something else missing to perfect everything and for example the search for folders on different file systems and compatibility with android, ipados, mac and windows. also nvidia shield which can act as a nas if it would be enough and without paying plex. Advice? Thank you.
My company adquire this tool for us recently, why this has to be so complicated? I have enough work to do rather than learning all of this... This means for my company (CGI Production this isn't the right tool?)
Ive chosen "Sync everything from server" and sync all my files, but now, i want to add a new folder but with this method, but i dont have the "Add Folder Sync Connection" button (just the last files that were synced). Is it possible to add a folder with this method, even thou i selected "Sync Everyhing from server".? Maybe just copying the folder with scp, and then re scanning files with sudo nextcloud.occ files:scan?
zillion thanks for the scp commands/video. can't rename the main folder that was copied over to nextcloud....seen "OCP\Lock\LockedException" in the log. permissions?
Instead of cloud, Can you make a server video to run a woocommerce store. I know it's crazy but I wanna try these. 😂 I've seen previous videos of making pc installation of Ubuntu you can skip those.
Hello. I uploaded all my data from my external hard drive to my server using samba. Next, I adjusted all the ownership to www-data:www-data, 755 for folders and 644 for files, and ran the occ command to update everything. The process ended up well and all files and folders were available when accessing Nextcloud from the browser. However, when I ask to my Nextcloud client (running on MacOS) to sync folders with my Nextcloud, an upload of the whole amount of data starts. It seems like the files do not match and the Nexcloud Client try to update them. I am completely lost on this. Any help would be appreciated. Regards, Daniel.
Is there a reason why you wouldn't just have set part or all of your nextcloud directory as a samba share if you wanted to a quick way to do this on the local network? PS that was meant as a genuine question - this series has been really handy for understanding how to get to grips with a home server setup
@@TechGuides Thanks! Appreciate the content - following your guide ATM to convert an old laptop into a server for backups. The ACPI wasn't playing nice so I had to disable it completely to stop it spamming error messages but otherwise it's coming along!
have a freenas. managed to copy all my files in to the folder /mnt/...jails/...usr/local/www/nextcloud/..../mike/files...but i can't get nextcloud.occ function to work.keeps telling me command not found. I have been trying with ssh connection, tried via shell in freenas, tried with iocage console command...always doing the command in nextcloud folder and also tried out. do i need to install something to get nextcloud.occ to work? thanks
The command I show in this video is for nextcloud snap. I don't use freenas but I assume it installs nextcloud natively rather than using snap so you probably need to enter "sudo -u www-data php occ files:scan --all" instead
@@TechGuides Hello. Thanks for your reply. I tried that also, it can't find user www-data nor the command. Anything other advice? Wish it could work, its so convenient.
Thank you so much! A manager managed to delete 290GB directory inside a folder shared with 22 other users - many connected over wifi. The deletion populated all users in seconds requiring over 6TB of re-syncing. I used a reverse copy SCP command scp -rp root@10.200.10.253:"'/mnt/raid/nextcloud/data/jobs/files/jobs/progress images'" ./
What operating system are you running your nextcloud server from. I'm running inside a jail on TrueNAS. Did you have to make the directory that you're copying to an SMB share so that window will actually see it?
@@anhthynguyen2974 I basically had to sync one device with the files and nextcloud - then copy all files to each device (along with all file attributes including modified date etc). I reconnected nextcloud to to those devices and it recognized them as original files.
so when you do the copy command mnt/raid/nextcloud/data/jobs/files/jobs/progress images. Does that whole path actually show up on your window cmd? I asked because I do not know how to put in my destination directory. Running it off of a TrueNas system so I don't know if I actually have to make the folder I want an smb share.
Just setup a route on your gateway (edge) router, so that it knows that the public IP belongs to its local route, and the traffic will never leave your LAN. No need to use the local IP address.
Not sure what you mean. using local IP addresses hardly will make your traffic leave your LAN unless you are in a business environment (this is meant for the home user)
@@TechGuides - Yeah, poor English. I would solve this by using NAT or DNS, so that instead of the traffic going to the first router (your ISPs) the traffic turns before leaving your LAN. That way, you do not have to use the local IP address and the webservers certificates would still be valid.
I used this process to copy a 600GB folder to nextcloud, and in nextcloud the folder is appearing as 180GB. I followed the guide to a T but can't figure out what's going on there.
one question, is it with this thing possible to do like a backup from my local nas to a next-cloud server (like an backup), im planning to set up an pc as ubuntu server with nextcloud server running on it, to have a private cloud and backing up my files from my synology nas to my nextcloud-server, pls short reply if this working with nextcloud many thanks :)
You don't really need nextcloud for this and I even doubt its possible to backup to nextcloud from a NAS. You probably can however make backups of your NAS on a linux machine.
When I try the file scan it gives me the error “sudo: nextcloud.occ: command not found”. I’m running ssh from terminal in Mac. Does that make a difference?
@@TechGuides how do you even have the permission to write on the actually directory that nextcloud uses? I’m running nextcloud within a jail of truenas and was trying to copy a huge amount of data into the external storage directory. Any idea what the path for this might look like?
Well you will need to have permission in the directory that you write in. I have never used truenas so I'm not sure how permissions are handled there but I guess you still have a user and you could temporarly give this user access to your nextcloud data dir (chown : /path/to/nextcloud/) and then change it back to www-data
@@TechGuides Thanks. I ended up creating an smb share and give permission to a user on the truenas system. I then copy the file 1 small file over to test it. However, I cannot get nextcloud to show the new file I just added even with the command file:scan --all.
First, great video, will def save me a lot of time so thank you! But how do I know I have the correct user credentials? I have NextCloud 20.0.0 running on my raspberry pi 4, and when I try to use this method, it keeps saying "Permission denied, please try again" and eventually says "Permission denied (publickey,password). lost connection". So which user and pw is it expecting? Thank you! Windows 10 Pro w/ Nextcloud client 3.0.2 installed Pi 4 running the latest Pi OS Lite, and Nextcloud 20.0.0 Both on the same in-house network
@@TechGuides Having the same problems (Linux Mint on i5 pc). Tried my username and root. All don't seem to work. permission denied. Added my username to /etc/groups. Doesn't work. Target: /mnt/NextCloud/data/[Username] Your SCP method seems to be heaven send, because I need to transfer 6TB of data to the mounted NextCloud Data drive. Only I cannot get past the "Permission Denied"
Got it working... sort of... Added my useraccount to the "/etc/groups" www-data group. Then I added GROUP-WRITE permission to the target-folder. It's working, and @1Gb/s. 1000x faster as the WEBDAV solution. As this was working I needed it also for all the other directories in that container, so I also MASS-Changed the GROUP-WRITE for all subdirs: "sudo find /mnt/NextCloud/data/NCAdmin/files/_Photos/ -type d -exec chmod 775 {} \;" Done... (Probably opened up a can of Worms here)
I was saved by that File Scan. I did SCP before and files are not showing up in NC. Somehow when I tried to create a same-named folder through NC web GUI, it gave an error, and the uploaded files are there. Weird but now I know what exactly happened. 😂😂
How would you sync large files, if your server isnt in the same network? My problem is, that I need to sync 600 gig of data but the desktop client sync function is terrible slow. Is it also possible to copy data directly on the ubuntu server and after that sync with occ?
thanks for the fast response. :) Does the desktop sync function also recognize afterwards that there is nothing to sync? As I also tried uploading test data via WebDav and then sync it with the desktop client . It did not noticed that there is already every file on the cloud. Maybe there is a tiny difference uploading files via WebDav but in general it should be the same process?
As I show in this video, the client will recognize that the files are already synced and will not sync them again. You need to make sure to use the occ command first though!
Great Tutorials! Thank you. My only issue right now is with "scp" I get permission denied. Both using my username AND root. Any ideas on how to solve that?
I figured out the root user problem - ssh defaults to no root login. I changed that in /etc/ssh/sshd_config. However I still can't get it to work with a normal user.
Careful! You must never allow root to login via ssh! Add a sudo user instead: www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart and use that username/passwort when scp data to your server.
it is just linux scp, it is nothing about nextcloud. if cui can do everything, why do we need gui that called nextcloud, and we all know scp can be fast LAN, but hard to say in WAN, that is the fact scp is slower via WAN.
It is not about redis server on the linux instance. This information is just for Windows OS users. It is not on the Nextcloud server side; this information does not help users of linux or macOS. I thought he was going to tell us about configuring redis. Oh well.
@@TechGuides no, I don't think you can fastly transfer files encrypted with E2E even over LAN. you cannot even see media from web browser when on E2E.
The question is, why you have to make such amount of micro management to achieve the "normal" speed. There must be a reason why the nextcloud client is that slow (or is it f*cked like the mobile app :D). Why it can't use the full gigabit potential?
The narrator did NOT provides his viewers with a disclaimer that these instructions are ONLY AND SPECIFICALLY for someone using a machine running WindowsOS. What about other operating systems?
SCP is universal across Operating Systems. Requires SSH which you may need to install and either command line knowledge like he showed or any sftp browser to do this like a traditional folder copy/paste but over an established ssh connection to your server.
You need to be in the nextcloud directory to execute the occ command. Simply do "cd /var/www/nextcloud/" and then "sudo -u www-data php occ" followed by the occ command that you want to execute
@@TechGuides Thank you for your response, I ended up just doing it over the desktop client. 1TB took about a day, just let it run overnight and into the next day while I was at work and monitored it from a remote console so everything worked out. This will be useful for when I generate an ssl certificate though! Subbed :)
Thank you. This is going to save me a lot of time. I have 3 TBs that I needed to transfer over to my NextCloud server. I tried to set it up with the sync client but that would have taken weeks. Now I can get it done in one night. Also thanks for the tip on using the IP address instead of the URL for the local sync.
Looking forward to more videos on the Nextcloud apps. I've already set up calendar, tasks, and the news app and sync'd them with my phone, but there are so many others to dive into.
Great! Yes it would take ages with the client. I'm really surprised that nobody else has a video or blog post about this already but ah well, maybe not that many people need to sync terabytes of data. Cool! I try to get ONLYOFFICE running behind a reverse proxy - I think that would make for an interesting video :)
I did not know there is a command to make next cloud rescan the local filesystem for changes, thank you. For anyone's information, rsync is usually the best tool to use to copy files between machines (even though in this video scp was almost at the limit of the local network)
I watched in the last days all your ubuntu and nextcloud related videos, you're great!
NC uses it's own implementation of WebDAV protocol written in PHP. So it's slow by design. Instead of SCp which is a file transfer over encrypted SSH you can install a Samba (windows share) and just use it for a local network transfer. But instead you may just configure a WebDAV module for the web server and it will work much faster than NC. Also you'll have an option: use encrypted HTTPS (e.g. TLS/SSL) when uploading from internet and use plain HTTP when uploading from local network.
There is many mobile apps to sync folders over WebDAV.
Personally I just removed NC and configured Lighttpd and mod_dav. This is enough for me.
If you are working with large video files then this would be a good option.
You are an absolute Nextcloud Beast! Keep up the great work and thank you!
This video saved my life :)'',,,, i saw it year ago, and today We had a bit of an issue in my nextcloud hardware.. so i setup a new nextcloud server and restorted our files as explained,,,, thank you very very very much
*Solution* For those with "permission denied" :
It's normal that you get permission denied, don't change permissions or anything to keep security high.
1- Instead of moving data to the right directory ( with scp or rsync ), instead* copy them to your home dir, or any other dir where you have permissions.
2- Then move ( mv ) that directory with "sudo", or change to root ( sudo -s ) to the nextcloud directory /data
3- Go to the nextcloud root directory ( before the /data ), and change all files permissions to php/apache. sudo chown www-data:www-data -R *
You're done.
what are the exact commads for these steps?
Seu video é realmente MUITO IMPORTANTE. Talvez a maioria dos novos usuários que precissam migrar os dados para a núvel não sabem como fazê-lo de forma rápida porque o Nextcloud não permite simplesmente usar um disco externo com uma entrada usb e fazer essa mudança diretamente. Eu instalei o Nextcloud em docker no meu Qnap. No entanto uso Ubuntu e não WIndows e admito que até agora não consegui fazer o que vc fez tão rápido e simples. Acho que um segundo video mais auto-explicativo usando os comandos do terminal Ubuntu apenas agregava mais. Seu video continua a ser o unico que fala sobre o assunto. Eu também pergunto se não existe alternativas mais fáceis e rápidas sem o uso do terminal. Obrigado!
Great explaination, thank you
Glad you liked it!
Thanks. Good video. Did not know this. Super handy. I am new subscriber and many thumbs ups. Yes plugins is greate contents.
Awesome, thanks for watching!
Awesome, thank you. Works like a charm.
Great to hear!
at 4:12 minute my command is :>> sudo -u apache php occ files:scan -all
very nice...... thanks
Nice one 👌
Thanks bro :)
I have been looking for something like this for quite some time and finally found your videos. Thanks!!
But I still have some questions such as, is there a way to add accounts and restrictions to folders using nextcloud? Like if I want to share a specific folder with a specific person.
Once again, thanks for your content.
Appreciate it man! What did you search for when looking for this video? I should probably make this video easier to find ;) well as an admin you can simply add a new user. They will then have their completely own space and wont see any of your data. You can simply share any folder you'd like with that new user and it will appear on their space as shared folder. They can obviously move the folder wherever they want
@@TechGuides That's exactly what I wanted, to give family members their own personal folder so they can store their data, once again, thank you very much!!
can we make auto synchronization from raspberry to nextcloud? if possible what could be the process!! please explain!!!1
please how can i transfer my files from a hosting company to nextcloud without losing the host that i'm working with?
YES! Plugin tutorials!
What would you be interested in? I don't really run anything other than the password manager personally. I definitely want to get onlyoffice running tho
Great video !! Could you make a video of how to sync/mirror two different servers with Nextcloud?
Hey thank you so much! Are you're talking about having a second nextcloud server somewhere else as backup? If so, I will be implementing this exact solution this spring - so there will definitely be a video about it :)
@@TechGuides Not just as a "backup" but as a mirror with instant sync.
@@Maisonier That would be the ideal solution. So far I have found zero implementations like this though...
You just save my life, but what about having another SSH port rather than 22? Many thanks.
I am interested in knowing how to configure the extended storage o be the primary drive on nextcloud running on Digitalocean's droplet. Using Ubuntu 20.
Hi, I have a debian-based Q4OS linux distro and I need to connect 4 hard drives with windows and mac backups and I would like to create a server with raid sharing of all hard drives and including a continuous and incremental backup of smartphones too and ipad in the family ... I was thinking about nextcloud, openmediavault or seafile but there would probably be something else missing to perfect everything and for example the search for folders on different file systems and compatibility with android, ipados, mac and windows. also nvidia shield which can act as a nas if it would be enough and without paying plex. Advice? Thank you.
My company adquire this tool for us recently, why this has to be so complicated? I have enough work to do rather than learning all of this... This means for my company (CGI Production this isn't the right tool?)
Ive chosen "Sync everything from server" and sync all my files, but now, i want to add a new folder but with this method, but i dont have the "Add Folder Sync Connection" button (just the last files that were synced). Is it possible to add a folder with this method, even thou i selected "Sync Everyhing from server".? Maybe just copying the folder with scp, and then re scanning files with sudo nextcloud.occ files:scan?
could you make a video about making auto bakups for nextcloud
Do you mean for the entire nextcloud data directory or simply the webapp?
What about Activities, when you run the command prompt? Is it showing that new files have been added?
What do you mean? The files are added to the nextcloud library once your run the sync command
can do these steps in ubuntu?
Hi there, I am currently getting a 504 gateway timeout MOVE error with my Nextcloud installation... Can anyone help me with this?
I don't have a use case for this I'm afraid
zillion thanks for the scp commands/video.
can't rename the main folder that was copied over to nextcloud....seen "OCP\Lock\LockedException" in the log. permissions?
very nice, really helpful!
Hello, is it necessary to change directory's user remotely in www-data?
Instead of cloud, Can you make a server video to run a woocommerce store. I know it's crazy but I wanna try these. 😂 I've seen previous videos of making pc installation of Ubuntu you can skip those.
Hello. I uploaded all my data from my external hard drive to my server using samba. Next, I adjusted all the ownership to www-data:www-data, 755 for folders and 644 for files, and ran the occ command to update everything. The process ended up well and all files and folders were available when accessing Nextcloud from the browser. However, when I ask to my Nextcloud client (running on MacOS) to sync folders with my Nextcloud, an upload of the whole amount of data starts. It seems like the files do not match and the Nexcloud Client try to update them. I am completely lost on this. Any help would be appreciated.
Regards,
Daniel.
Is there a reason why you wouldn't just have set part or all of your nextcloud directory as a samba share if you wanted to a quick way to do this on the local network?
PS that was meant as a genuine question - this series has been really handy for understanding how to get to grips with a home server setup
That would definitely also work and it would probably be about equally fast - minus the setup required ;)
@@TechGuides Thanks! Appreciate the content - following your guide ATM to convert an old laptop into a server for backups.
The ACPI wasn't playing nice so I had to disable it completely to stop it spamming error messages but otherwise it's coming along!
have a freenas. managed to copy all my files in to the folder /mnt/...jails/...usr/local/www/nextcloud/..../mike/files...but i can't get nextcloud.occ function to work.keeps telling me command not found. I have been trying with ssh connection, tried via shell in freenas, tried with iocage console command...always doing the command in nextcloud folder and also tried out. do i need to install something to get nextcloud.occ to work? thanks
The command I show in this video is for nextcloud snap. I don't use freenas but I assume it installs nextcloud natively rather than using snap so you probably need to enter "sudo -u www-data php occ files:scan --all" instead
@@TechGuides Hello. Thanks for your reply.
I tried that also, it can't find user www-data
nor the command. Anything other advice?
Wish it could work, its so convenient.
@@aeiben8220 For me it´s the same can´t find user www-data
@tech Guides could you help us?
Thank you so much! A manager managed to delete 290GB directory inside a folder shared with 22 other users - many connected over wifi. The deletion populated all users in seconds requiring over 6TB of re-syncing. I used a reverse copy SCP command scp -rp root@10.200.10.253:"'/mnt/raid/nextcloud/data/jobs/files/jobs/progress images'" ./
Thats a big oof! Happy to hear that you could use the information from my video in your situation!
What operating system are you running your nextcloud server from. I'm running inside a jail on TrueNAS. Did you have to make the directory that you're copying to an SMB share so that window will actually see it?
@@anhthynguyen2974 I basically had to sync one device with the files and nextcloud - then copy all files to each device (along with all file attributes including modified date etc). I reconnected nextcloud to to those devices and it recognized them as original files.
so when you do the copy command mnt/raid/nextcloud/data/jobs/files/jobs/progress images. Does that whole path actually show up on your window cmd? I asked because I do not know how to put in my destination directory. Running it off of a TrueNas system so I don't know if I actually have to make the folder I want an smb share.
Great Video! Thank you! Plaese plugins!
Just setup a route on your gateway (edge) router, so that it knows that the public IP belongs to its local route, and the traffic will never leave your LAN. No need to use the local IP address.
Not sure what you mean. using local IP addresses hardly will make your traffic leave your LAN unless you are in a business environment (this is meant for the home user)
@@TechGuides - Yeah, poor English. I would solve this by using NAT or DNS, so that instead of the traffic going to the first router (your ISPs) the traffic turns before leaving your LAN. That way, you do not have to use the local IP address and the webservers certificates would still be valid.
Are you sure you're commenting on the right video? This was about syncing files from PC to the server - nothing leaves the local lan
permission denied in my mechine
thanks this is awesome! but will it automaticly encrypt the folder and its files?
No this is a simply sync from your device to the server
I used this process to copy a 600GB folder to nextcloud, and in nextcloud the folder is appearing as 180GB. I followed the guide to a T but can't figure out what's going on there.
Did you initiate a scan of the directory after copying the files manually?
good content
But Still My Upload Speed is Limited at 6MB/s. I have a Gigabit Connection and nextcloud is running on Azure
one question, is it with this thing possible to do like a backup from my local nas to a next-cloud server (like an backup), im planning to set up an pc as ubuntu server with nextcloud server running on it, to have a private cloud and backing up my files from my synology nas to my nextcloud-server, pls short reply if this working with nextcloud many thanks :)
You don't really need nextcloud for this and I even doubt its possible to backup to nextcloud from a NAS. You probably can however make backups of your NAS on a linux machine.
When I try the file scan it gives me the error “sudo: nextcloud.occ: command not found”. I’m running ssh from terminal in Mac. Does that make a difference?
You need to be in the /var/www/nextcloud directory
Thanks for the tips! , unfortunately however I would consider these workarounds for a client that does a pretty poor job of syncing
Well Nextcloud does an excellent job in keeping data in sync, but not really in transferring huge amounts of files to the server ;)
But this command how to work in docker?
Did you have to create an SMB share and give window permission to access the same folder that nextcloud is accessing?
No this simply moves the files over SSH
@@TechGuides how do you even have the permission to write on the actually directory that nextcloud uses? I’m running nextcloud within a jail of truenas and was trying to copy a huge amount of data into the external storage directory. Any idea what the path for this might look like?
Well you will need to have permission in the directory that you write in. I have never used truenas so I'm not sure how permissions are handled there but I guess you still have a user and you could temporarly give this user access to your nextcloud data dir (chown : /path/to/nextcloud/) and then change it back to www-data
@@TechGuides Thanks. I ended up creating an smb share and give permission to a user on the truenas system. I then copy the file 1 small file over to test it. However, I cannot get nextcloud to show the new file I just added even with the command file:scan --all.
First, great video, will def save me a lot of time so thank you! But how do I know I have the correct user credentials? I have NextCloud 20.0.0 running on my raspberry pi 4, and when I try to use this method, it keeps saying "Permission denied, please try again" and eventually says "Permission denied (publickey,password). lost connection". So which user and pw is it expecting?
Thank you!
Windows 10 Pro w/ Nextcloud client 3.0.2 installed
Pi 4 running the latest Pi OS Lite, and Nextcloud 20.0.0
Both on the same in-house network
Thanks! It expects your Linux username/password, not the one from Nextcloud
@@TechGuides Having the same problems (Linux Mint on i5 pc). Tried my username and root. All don't seem to work. permission denied. Added my username to /etc/groups. Doesn't work.
Target: /mnt/NextCloud/data/[Username]
Your SCP method seems to be heaven send, because I need to transfer 6TB of data to the mounted NextCloud Data drive.
Only I cannot get past the "Permission Denied"
Got it working... sort of...
Added my useraccount to the "/etc/groups" www-data group. Then I added GROUP-WRITE permission to the target-folder.
It's working, and @1Gb/s. 1000x faster as the WEBDAV solution.
As this was working I needed it also for all the other directories in that container, so I also MASS-Changed the GROUP-WRITE for all subdirs:
"sudo find /mnt/NextCloud/data/NCAdmin/files/_Photos/ -type d -exec chmod 775 {} \;"
Done... (Probably opened up a can of Worms here)
ayudame a instalarlo en mi ubunto porfas
I was saved by that File Scan. I did SCP before and files are not showing up in NC. Somehow when I tried to create a same-named folder through NC web GUI, it gave an error, and the uploaded files are there.
Weird but now I know what exactly happened. 😂😂
Yeah always need to do a file scan when you manipulate the directories directly ;)
How would you sync large files, if your server isnt in the same network? My problem is, that I need to sync 600 gig of data but the desktop client sync function is terrible slow. Is it also possible to copy data directly on the ubuntu server and after that sync with occ?
Yes you got the solution already!
thanks for the fast response. :)
Does the desktop sync function also recognize afterwards that there is nothing to sync? As I also tried uploading test data via WebDav and then sync it with the desktop client . It did not noticed that there is already every file on the cloud. Maybe there is a tiny difference uploading files via WebDav but in general it should be the same process?
As I show in this video, the client will recognize that the files are already synced and will not sync them again. You need to make sure to use the occ command first though!
@@TechGuides Thanks very much, i will try that out!
Great Tutorials! Thank you.
My only issue right now is with "scp" I get permission denied. Both using my username AND root. Any ideas on how to solve that?
I figured out the root user problem - ssh defaults to no root login. I changed that in /etc/ssh/sshd_config. However I still can't get it to work with a normal user.
Careful! You must never allow root to login via ssh! Add a sudo user instead: www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart
and use that username/passwort when scp data to your server.
@@TechGuides Hi, having the same problem, unfortunately, a sudo user still doesn't help, any other ideas?
Same issue. Access denied even when using root. Help!
What if I already have the client installed? Would this still work?
Sure! You can simply add another folder sync connection in your nextcloud client after you have copied all your files to the server
what is the name of the program you are using in 4:09
Mobaxterm
what about the other way? not one video anywhere showing the other way
What other way do you mean? You can also simply use the client but it will take forever if you have a couple of TB
@@TechGuides i have no idea what was i talking about. Im just trying to do bare metal backups over wan.
it is just linux scp, it is nothing about nextcloud. if cui can do everything, why do we need gui that called nextcloud, and we all know scp can be fast LAN, but hard to say in WAN, that is the fact scp is slower via WAN.
It is not about redis server on the linux instance. This information is just for Windows OS users. It is not on the Nextcloud server side; this information does not help users of linux or macOS. I thought he was going to tell us about configuring redis. Oh well.
Wrong video dude, here is the one about Redis: ruclips.net/video/8JVhRtArovg/видео.html
@@TechGuides oh, 👍 thanks.
It keeps telling me "Permission denied" after I do the scp command
Did you enter the correct linux username and password? Does that user have permission to write to the folder you're writing to?
@@TechGuides Yes, I just had to changs the permissions and now it works. Thank you for this tutorial!
How to do this over internet securely.
scp means secure copy. And he using it
Hello! I know of another solution for own cloud building. Clarabot Nano
I made my own cloud from an old, average PC with that, and it works great.
Title should say "Not E2EE "
Wym?
@@TechGuides it does not work with end to end encryption and it's very important
I see, yes this is only possible over the local network
@@TechGuides no, I don't think you can fastly transfer files encrypted with E2E even over LAN.
you cannot even see media from web browser when on E2E.
The question is, why you have to make such amount of micro management to achieve the "normal" speed. There must be a reason why the nextcloud client is that slow (or is it f*cked like the mobile app :D). Why it can't use the full gigabit potential?
Good question! No clue why its that slow...
@@TechGuides ok thanks for your response :)
@@gamingoutloud293 The reason is that NC uses it's own implementation of WebDAV protocol written in PHP. So it's slow by design
The narrator did NOT provides his viewers with a disclaimer that these instructions are ONLY AND SPECIFICALLY for someone using a machine running WindowsOS. What about other operating systems?
SCP is universal across Operating Systems. Requires SSH which you may need to install and either command line knowledge like he showed or any sftp browser to do this like a traditional folder copy/paste but over an established ssh connection to your server.
command not found: nextcloud.occ
havent been able to find a work around for this
You need to be in the nextcloud directory to execute the occ command. Simply do "cd /var/www/nextcloud/" and then "sudo -u www-data php occ" followed by the occ command that you want to execute
@@TechGuides Thank you for your response, I ended up just doing it over the desktop client. 1TB took about a day, just let it run overnight and into the next day while I was at work and monitored it from a remote console so everything worked out.
This will be useful for when I generate an ssl certificate though! Subbed :)
Great to hear! Welcome :)