shell Use smbclient to copy files to NAS

// open smbclient
smbclient //10.7.7.3/Proxmox -U mjuffs

// enter the password when prompted

// enter the commands in interactive mode
recurse ON

// specify the local directory
lcd /mnt/deluge/completed

// specify the remote directoy
cd deluge

// check what is already in the directory
ls

// upload everything from local to remote
mput *

// you will then be prompted to enter Y for each file

// exist smbclient when done
exit

// remove the files when completed
rm -rf *
I use these commands to copy successful downloads from my Deluge LXC to my NAS. Thanks to https://stackoverflow.com/questions/38890480/smbclient-send-all-files-in-directory

Updated: Sunday 20th September 2026, 22:12pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.