Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #I'm Nitin the DevOps guy and these instructions are for whoever chooses to follow...
- #Some NAS require sec=ntlm or sec=ntlmv2 as an option for it to mount
- #Get catty with /proc/filesystem to check if cifs has been loaded after first use, them dmesg | tail to look for any other errors
- #sudo mount -t cifs -o username=Administrator,password=Password123$ //192.168.1.53/e$ /mnt/53e/
- #Take a stab at auto-loading with the following in /etc/fstab and mount -a
- #Add the sec option if needed
- #//192.168.1.53/e$ /mnt/53e cifs username=Administrator,password=Password123$ 0 0
- #Test on command line
- rsync -rv /mnt/53e/Backup/BARCODE_EAN/ /volume1/Backup/ScannerDBs/PULLBARCODE_EAN
- #And finally get this into /etc/crontab to schedule it
- #0 * * * * root rsync -rv /mnt/53e/Backup/BARCODE_EAN/ /volume1/Backup/ScannerDBs/PULLBARCODE_EAN
- #When the time comes, "ps aux" it
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement