Thanks, who can tell me how to download files stored in nextCloud using commands? What was the order? thank you !
curl -u $USER:$PASSWD -X GET โ$WEBDEV$DOWNLOAD_FILEโ --output $SAVE_FILE
I only thought of this one way, but I havenโt thought of how to download the files in the entire directory.sorry.
If you have access to the command line on your Nextcloud server you can use the following to download the entire Nextcloud data folder.
ON SERVER
- create backup folder
- cd into parent folder containing data folder (normally /var/www/)
- Compress entire data folder.
sudo mkdir backups
cd /var/www/
sudo tar -czvf ~/backups/filename.tar.gz DATA_FOLDER_NAME
Download compressed data file to your machine
ON PERSONAL MACHINE
- cd into receiving folder where file will be downloaded to
- transfer compressed data file
- change owner of compressed data file to personal computer user
cd RECEIVING_FOLDER
sudo scp -r -i ~/.ssh/SERVER_Key server_user@192.168.###.###:~/backups/fielname.tar.gz .
sudo chown newuser:newgroup filename.tar.gz
Decompress data file
sudo tar -xzvf FILENAME.tar.gz /DESTINATION_FOLDER
That will get all of the data files from Nextcloud.
Warning: Be aware that you may need a lot of available room on the Nextcloud server because you are basically duplicating the data folder when creating the compressed file.