Advertisement
Guest User

Untitled

a guest
Apr 12th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. #I'm Nitin the DevOps guy and these instructions are for whoever chooses to follow...
  2.  
  3. #Some NAS require sec=ntlm or sec=ntlmv2 as an option for it to mount
  4. #Get catty with /proc/filesystem to check if cifs has been loaded after first use, them dmesg | tail to look for any other errors
  5.  
  6. #sudo mount -t cifs -o username=Administrator,password=Password123$ //192.168.1.53/e$ /mnt/53e/
  7.  
  8.  
  9. #Take a stab at auto-loading with the following in /etc/fstab and mount -a
  10. #Add the sec option if needed
  11.  
  12. #//192.168.1.53/e$ /mnt/53e cifs username=Administrator,password=Password123$ 0 0
  13.  
  14.  
  15. #Test on command line
  16.  
  17. rsync -rv /mnt/53e/Backup/BARCODE_EAN/ /volume1/Backup/ScannerDBs/PULLBARCODE_EAN
  18.  
  19.  
  20. #And finally get this into /etc/crontab to schedule it
  21.  
  22. #0 * * * * root rsync -rv /mnt/53e/Backup/BARCODE_EAN/ /volume1/Backup/ScannerDBs/PULLBARCODE_EAN
  23.  
  24.  
  25. #When the time comes, "ps aux" it
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement